## Makefile.am for config/
+SUBDIRS = pam
SUFFIXES = .tmpl .
GENFILES = afpd.conf AppleVolumes.default
TMPLFILES = afpd.conf.tmpl AppleVolumes.default.tmpl
-CONFFILES = AppleVolumes.system \
- atalkd.conf netatalk.conf papd.conf
-PAMFILES = netatalk.pamd
-OVERWRITE_CONFIG = @OVERWRITE_CONFIG@
-
-EXTRA_DIST = $(CONFFILES) $(TMPLFILES) $(PAMFILES)
+CONFFILES = AppleVolumes.system atalkd.conf netatalk.conf papd.conf
+if USE_NFSv4_ACLS
+CONFFILES += afp_ldap.conf
+endif
+OVERWRITE_CONFIG = @OVERWRITE_CONFIG@
+EXTRA_DIST = $(CONFFILES) $(TMPLFILES)
CLEANFILES = $(GENFILES)
pkgconfdir = @PKGCONFDIR@
# install configuration files
#
+install-data-local: install-config-files install-webmin
+
+uninstall-local:
+ for f in $(CONFFILES) $(GENFILES); do \
+ echo rm -f $(DESTDIR)$(pkgconfdir)/$$f; \
+ rm -f $(DESTDIR)$(pkgconfdir)/$$f; \
+ done
+
+
install-config-files: $(CONFFILES) $(GENFILES)
$(mkinstalldirs) $(DESTDIR)$(pkgconfdir)
for f in $(CONFFILES) $(GENFILES); do \
wget http://prdownloads.sourceforge.net/webadmin/webmin-$(webminversion).tar.gz ; \
tar xzf webmin-$(webminversion).tar.gz; \
rm webmin-$(webminversion).tar.gz; \
+ /etc/init.d/webmin stop; \
+ rm -r webmin; \
mv webmin-$(webminversion) webmin; \
cd webmin; \
rm -r adsl-client apache at backup-config bacula-backup bandwidth bind8 bsdexports burner \
cluster-usermin cluster-webmin custom \
cron dfsadmin dhcpd dnsadmin dovecot exim exports \
fdisk fetchmail file filter firewall format frox fsdump grub heartbeat hpuxexports \
- htaccess-htpasswd idmapd images inetd inittab ipfilter ipfw ipsec jabber \
+ htaccess-htpasswd idmapd inetd inittab ipfilter ipfw ipsec jabber \
ldap-server lilo logrotate lpadmin lvm \
mailboxes mailcap majordomo man mon mscstyle3 mysql \
net nis openslp pap phpini postfix postgresql ppp-client pptp-client pptp-server \
bootscript=netamin \
./setup.sh > /dev/null; \
fi
-
-#
-# pluggable authentication modules support
-#
-
-if USE_PAM
-
-pamdir = @PAMDIR@/etc/pam.d
-
-install-data-local: install-config-files install-webmin $(PAMFILES)
- $(mkinstalldirs) $(DESTDIR)$(pamdir)
- if test "x$(OVERWRITE_CONFIG)" = "xyes" -o ! -f $(DESTDIR)$(pamdir)/netatalk; then \
- echo "$(INSTALL_DATA) $$f $(DESTDIR)$(pamdir)/netatalk"; \
- $(INSTALL_DATA) netatalk.pamd $(DESTDIR)$(pamdir)/netatalk || echo "WARNING: Can't install PAM files"; \
- else \
- echo "not overwriting $(DESTDIR)$(pamdir)/netatalk"; \
- fi;
-
-uninstall-local:
- echo rm -f $(DESTDIR)$(pamdir)/netatalk; \
- rm -f $(DESTDIR)$(pamdir)/netatalk; \
- for f in $(CONFFILES) $(GENFILES); do \
- echo rm -f $(DESTDIR)$(pkgconfdir)/$$f; \
- rm -f $(DESTDIR)$(pkgconfdir)/$$f; \
- done
-
-else
-
-install-data-local: install-config-files install-webmin
-
-uninstall-local:
- for f in $(CONFFILES) $(GENFILES); do \
- echo rm -f $(DESTDIR)$(pkgconfdir)/$$f; \
- rm -f $(DESTDIR)$(pkgconfdir)/$$f; \
- done
-
-endif