summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-05-02 15:39:59 -0700
committerBrian Behlendorf <[email protected]>2011-05-02 15:59:13 -0700
commit712f8bd87b2d3799107e102652875996fa59647b (patch)
tree7accb1ffa17551954bc9b7dbb3451e4efdb94527 /config
parent5f35b190071048f25d66db81ce9763ecd0c1760e (diff)
Add Gentoo/Lunar/Redhat Init Scripts
Every distribution has slightly different requirements for their init scripts. Because of this the zfs package contains several init scripts for various distributions. These scripts have been contributed by, and are supported by, the larger zfs community. Init scripts for Gentoo/Lunar/Redhat have been contributed by: Gentoo - devsk <[email protected]> Lunar - Jean-Michel Bruenn <[email protected]> Redhat - Fajar A. Nugraha <[email protected]>
Diffstat (limited to 'config')
-rw-r--r--config/zfs-build.m414
1 files changed, 10 insertions, 4 deletions
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
index 3ea77abd6..d281b4dcf 100644
--- a/config/zfs-build.m4
+++ b/config/zfs-build.m4
@@ -188,6 +188,8 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
VENDOR=slackware ;
elif test -f /etc/gentoo-release ; then
VENDOR=gentoo ;
+ elif test -f /etc/lunar.release ; then
+ VENDOR=lunar ;
else
VENDOR= ;
fi
@@ -196,12 +198,14 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
AC_MSG_CHECKING([default package type])
case "$VENDOR" in
- fedora) DEFAULT_PACKAGE=rpm ;;
redhat) DEFAULT_PACKAGE=rpm ;;
- sles) DEFAULT_PACKAGE=rpm ;;
+ fedora) DEFAULT_PACKAGE=rpm ;;
ubuntu) DEFAULT_PACKAGE=deb ;;
debian) DEFAULT_PACKAGE=deb ;;
+ sles) DEFAULT_PACKAGE=rpm ;;
slackware) DEFAULT_PACKAGE=tgz ;;
+ gentoo) DEFAULT_PACKAGE=tgz ;;
+ lunar) DEFAULT_PACKAGE=tgz ;;
*) DEFAULT_PACKAGE=rpm ;;
esac
@@ -210,12 +214,14 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
AC_MSG_CHECKING([default init script type])
case "$VENDOR" in
+ redhat) DEFAULT_INIT_SCRIPT=redhat ;;
fedora) DEFAULT_INIT_SCRIPT=fedora ;;
- redhat) DEFAULT_INIT_SCRIPT=fedora ;;
- sles) DEFAULT_INIT_SCRIPT=lsb ;;
ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
debian) DEFAULT_INIT_SCRIPT=lsb ;;
+ sles) DEFAULT_INIT_SCRIPT=lsb ;;
slackware) DEFAULT_INIT_SCRIPT=lsb ;;
+ gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
+ lunar) DEFAULT_INIT_SCRIPT=lunar ;;
*) DEFAULT_INIT_SCRIPT=lsb ;;
esac