-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept udev and dracut paths specified by ./configure
There are two common locations where udev and dracut components are commonly installed. When building packages using the 'make rpm|deb' targets check those common locations and pass them to rpmbuild. For non-standard configurations these values can be provided by the the following configure options: --with-udevdir=DIR install udev helpers [default=check] --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]] --with-dracutdir=DIR install dracut helpers [default=check] When rebuilding using the source packages the per-distribution default values specified in the spec file will be used. This is the preferred way to build packages for a distribution but the ability to override the defaults is provided as a convenience. Signed-off-by: Turbo Fredriksson <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2310 Closes #1680
- Loading branch information
1 parent
7f6884f
commit 2ee4e7d
Showing
4 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
AC_DEFUN([ZFS_AC_CONFIG_USER_DRACUT], [ | ||
AC_ARG_WITH(dracutdir, | ||
AC_MSG_CHECKING(for dracut directory) | ||
AC_ARG_WITH([dracutdir], | ||
AC_HELP_STRING([--with-dracutdir=DIR], | ||
[install dracut helpers [[EPREFIX/lib/dracut]]]), | ||
dracutdir=$withval, dracutdir='${exec_prefix}/lib/dracut') | ||
[install dracut helpers @<:@default=check@:>@]), | ||
[dracutdir=$withval], | ||
[dracutdir=check]) | ||
AS_IF([test "x$dracutdir" = xcheck], [ | ||
path1=/usr/share/dracut | ||
path2=/usr/lib/dracut | ||
default=$path2 | ||
AS_IF([test -d "$path1"], [dracutdir="$path1"], [ | ||
AS_IF([test -d "$path2"], [dracutdir="$path2"], | ||
[dracutdir="$default"]) | ||
]) | ||
]) | ||
AC_SUBST(dracutdir) | ||
AC_MSG_RESULT([$dracutdir]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
AC_DEFUN([ZFS_AC_CONFIG_USER_UDEV], [ | ||
AC_MSG_CHECKING(for udev directories) | ||
AC_ARG_WITH(udevdir, | ||
AC_HELP_STRING([--with-udevdir=DIR], | ||
[install udev helpers [[EPREFIX/lib/udev]]]), | ||
udevdir=$withval, udevdir='${exec_prefix}/lib/udev') | ||
[install udev helpers @<:@default=check@:>@]), | ||
[udevdir=$withval], | ||
[udevdir=check]) | ||
AS_IF([test "x$udevdir" = xcheck], [ | ||
path1=/lib/udev | ||
path2=/usr/lib/udev | ||
default=$path2 | ||
AS_IF([test -d "$path1"], [udevdir="$path1"], [ | ||
AS_IF([test -d "$path2"], [udevdir="$path2"], | ||
[udevdir="$default"]) | ||
]) | ||
]) | ||
AC_ARG_WITH(udevruledir, | ||
AC_HELP_STRING([--with-udevruledir=DIR], | ||
[install udev rules [[UDEVDIR/rules.d]]]), | ||
udevruledir=$withval, udevruledir='${udevdir}/rules.d') | ||
[udevruledir=$withval], | ||
[udevruledir="${udevdir}/rules.d"]) | ||
AC_SUBST(udevdir) | ||
AC_SUBST(udevruledir) | ||
AC_MSG_RESULT([$udevdir;$udevruledir]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters