]> arthur.barton.de Git - netatalk.git/commitdiff
added options for redhat and cobalt sysv scripts to install properly
authorrufustfirefly <rufustfirefly>
Fri, 10 Nov 2000 15:46:32 +0000 (15:46 +0000)
committerrufustfirefly <rufustfirefly>
Fri, 10 Nov 2000 15:46:32 +0000 (15:46 +0000)
configure.in
distrib/initscripts/Makefile.am

index 0c7d03b8094fb30055963d98e5681546a4cfd467..7b6a2f23c265690226f5b393d5f94993497c4a10 100644 (file)
@@ -187,7 +187,7 @@ AC_ARG_ENABLE(force2GB,
        [  --enable-force2GB           enable force 2GB max reported volume size],
        if test "x$enableval" = "xyes"; then 
                AC_DEFINE(FORCE_2GB, 1)
-               AC_MSG_RESULT([enable forge 2GB])
+               AC_MSG_RESULT([enable force 2GB])
        fi
 )
 
@@ -271,6 +271,22 @@ AC_ARG_WITH(tcp-wrappers,
        )
 )
 
+AC_ARG_ENABLE(redhat,
+       [  --enable-redhat     use redhat-style sysv configuration ],
+    if test "$enableval" = "yes"; then
+               sysv_style=redhat
+       fi
+       AC_MSG_RESULT([enabling redhat-style sysv support])
+)
+
+AC_ARG_ENABLE(cobalt,
+       [  --enable-cobalt     use cobalt-style sysv configuration ],
+    if test "$enableval" = "yes"; then
+               sysv_style=cobalt
+       fi
+       AC_MSG_RESULT([enabling cobalt-style sysv support])
+)
+
 AC_ARG_WITH(uams-path,
        [  --with-uams-path=path   path to UAMs [default=/etc/atalk/uams]],
        uams_path="$withval",
@@ -415,6 +431,8 @@ AC_SUBST(LIBS)
 AC_SUBST(CFLAGS)
 AM_CONDITIONAL(USE_DHX, test x$compile_dhx = xyes)
 AM_CONDITIONAL(USE_PAM, test x$compile_pam = xyes)
+AM_CONDITIONAL(USE_COBALT, test x$sysv_style = xcobalt)
+AM_CONDITIONAL(USE_REDHAT, test x$sysv_style = xredhat)
 
 dnl --------------------- generate files
 
index 587be55db251e5f6bd06723a311d0200b19e4b8d..694addd555e2e2ce459044ef9ebabace317fdc03 100644 (file)
@@ -8,8 +8,34 @@ SUFFIXES = .tmpl .
            -e s@:ETCDIR:@${CONFIG_DIR}@ \
            <$^ >$@
 
-sysvdir        = /etc/rc.d/init.d/
-sysv_SCRIPTS = rc.atalk.redhat
+sysvdir        = /etc/rc.d/init.d
 
-CLEANFILES = rc.atalk.redhat
+CLEANFILES = rc.atalk.redhat atalk
 
+#
+# checking for "redhat" style sysv scripts:
+#
+
+if USE_REDHAT
+
+sysv_SCRIPTS = atalk
+
+atalk: rc.atalk.redhat
+       cp -f rc.atalk.redhat atalk
+       chmod a+x atalk
+
+endif
+
+#
+# checking for "cobalt" style sysv scripts:
+#
+
+if USE_COBALT
+
+sysv_SCRIPTS = atalk
+
+atalk: rc.atalk.cobalt
+       cp -f rc.atalk.cobalt atalk
+       chmod a+x atalk
+
+endif