summaryrefslogtreecommitdiffstats
path: root/config/zfs-build.m4
diff options
context:
space:
mode:
authorKyle Fuller <[email protected]>2011-07-10 16:57:33 +0100
committerBrian Behlendorf <[email protected]>2011-07-11 14:12:23 -0700
commit615ab66d18f74b3f4979c06192e1aa1082523dd3 (patch)
tree9a6fb994cb4fd03b08741ab1e35c3873a65efed2 /config/zfs-build.m4
parent057e8eee35d4cc06cc4edd6e8239d28a4122cf71 (diff)
Provide a rc.d script for archlinuxzfs-0.6.0-rc5
Unlike most other Linux distributions archlinux installs its init scripts in /etc/rc.d insead of /etc/init.d. This commit provides an archlinux rc.d script for zfs and extends the build infrastructure to ensure it get's installed in the correct place. Signed-off-by: Brian Behlendorf <[email protected]> Closes #322
Diffstat (limited to 'config/zfs-build.m4')
-rw-r--r--config/zfs-build.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
index e048596de..5215463f0 100644
--- a/config/zfs-build.m4
+++ b/config/zfs-build.m4
@@ -196,6 +196,8 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
VENDOR=ubuntu ;
elif test -f /etc/lunar.release ; then
VENDOR=lunar ;
+ elif test -f /etc/arch-release ; then
+ VENDOR=arch ;
else
VENDOR= ;
fi
@@ -218,6 +220,15 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
AC_MSG_RESULT([$DEFAULT_PACKAGE])
AC_SUBST(DEFAULT_PACKAGE)
+ AC_MSG_CHECKING([default init directory])
+ case "$VENDOR" in
+ arch) DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
+ *) DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
+ esac
+
+ AC_MSG_RESULT([$DEFAULT_INIT_DIR])
+ AC_SUBST(DEFAULT_INIT_DIR)
+
AC_MSG_CHECKING([default init script type])
case "$VENDOR" in
redhat) DEFAULT_INIT_SCRIPT=redhat ;;
@@ -228,6 +239,7 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
slackware) DEFAULT_INIT_SCRIPT=lsb ;;
gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
lunar) DEFAULT_INIT_SCRIPT=lunar ;;
+ arch) DEFAULT_INIT_SCRIPT=arch ;;
*) DEFAULT_INIT_SCRIPT=lsb ;;
esac