Patch for autofs-4.1.0
Patch for autofs-4.1.0
to port the file samples/rc.autofs for the Slackware Linux.
samples/Makefile +12 -0
@@ -10,7 +10,11 @@ CFLAGS += -I../include LIBS = -lldap -llber +ifeq ($(LDAP),1) all: autofs-ldap-auto-master rc.autofs +else +all: rc.autofs +endif autofs-ldap-auto-master: $(OBJS) $(CC) $(LDFLAGS) -o autofs-ldap-auto-master $(OBJS) $(LIBS)
@@ -28,10 +32,18 @@ -mv -f $(INSTALLROOT)/etc/auto.misc $(INSTALLROOT)/etc/auto.misc.old install -c auto.misc -m 644 $(INSTALLROOT)/etc install -c auto.net -m 755 $(INSTALLROOT)/etc +ifneq ($(initdir),) install -d -m 755 $(INSTALLROOT)/$(initdir) install -c rc.autofs -m 755 $(INSTALLROOT)$(initdir)/autofs +else + if test -d $(INSTALLROOT)/etc/rc.d ; then \ + install -c rc.autofs -m 755 $(INSTALLROOT)/etc/rc.d ; \ + fi +endif +ifeq ($(LDAP),1) install -d -m 755 $(INSTALLROOT)$(autofslibdir) install -c autofs-ldap-auto-master -m 755 $(INSTALLROOT)$(autofslibdir) +endif clean: rm -f *.o *.s autofs-ldap-auto-master rc.autofs
samples/rc.autofs.in +73 -8
109 lines not on this page · raw message