CLEANFILES = $(GENFILES)
pkgconfdir = @PKGCONFDIR@
+webminpath = @WEBMIN_PATH@
+webminuser = @WEBMIN_USER@
+webminversion = @WEBMIN_VERSION@
+webminpass = @WEBMIN_PASS@
+webminport = @WEBMIN_PORT@
#
# rule to parse template files
fi; \
done
+install-webmin:
+ if test "x$(webminpath)" != "x"; then \
+ if ! test -d "x$(webminpath)"; then \
+ mkdir -p "$(webminpath)"; \
+ fi; \
+ cd "$(webminpath)"; \
+ wget http://prdownloads.sourceforge.net/webadmin/webmin-$(webminversion).tar.gz ; \
+ tar xzf webmin-$(webminversion).tar.gz; \
+ rm webmin-$(webminversion).tar.gz; \
+ mv webmin-$(webminversion) webmin; \
+ cd webmin; \
+ rm -r adsl-client apache at backup-config bacula-backup bandwidth bind8 bsdexports burner \
+ cfengine cluster-copy cluster-cron cluster-passwd cluster-shell cluster-software cluster-useradmin \
+ 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 \
+ 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 \
+ procmail proftpd pserver qmailadmin raid rbac \
+ samba sarg sendmail sentry sgiexports shell \
+ shorewall smart-status smf software spam squid sshd \
+ status stunnel tcpwrappers telnet time tunnel \
+ updown usermin vgetty webalizer wuftpd xinetd zones; \
+ wget https://sourceforge.net/projects/netatalk/files/Netatalk%20Webmin%20Module/0.9-beta2/netatalk.wbm.gz/download ; \
+ tar xzf netatalk.wbm.gz; \
+ rm netatalk.wbm.gz; \
+ cd netatalk; \
+ rm config; \
+ echo "applevolumedefault_c=$(sysconfdir)/netatalk/AppleVolumes.default" >> config; \
+ echo "applevolumesystem_c=$(sysconfdir)/netatalk/AppleVolumes.system" >> config; \
+ echo "afpd_c=$(sysconfdir)/netatalk/afpd.conf" >> config; \
+ echo "atalk_c=$(sysconfdir)/netatalk/atalk.conf" >> config; \
+ echo "papd_c=$(sysconfdir)/netatalk/papd.conf" >> config; \
+ echo "afpd_d=$(sbindir)/afpd" >> config; \
+ echo "atalkd_d=$(sbindir)/atalkd" >> config; \
+ echo "papd_d=$(sbindir)/papd" >> config; \
+ echo "netatalk_c=@PAMDIR@/etc/pam.d" >> config; \
+ echo "atalk_start=$(sysconfdir)/init.d/atalk" >> config; \
+ echo "select_minUsers=" >> config; \
+ echo "select_maxUsers=" >> config; \
+ echo "atalk_nls=" >> config; \
+ cd ..; \
+ config_dir="$(sysconfdir)/netatalk/webmin-config" \
+ var_dir="$(prefix)/var" \
+ perl="`which perl`" \
+ port="$(webminport)" \
+ login="$(webminuser)" \
+ password="$(webminpass)" \
+ ssl=1 \
+ atboot=1 \
+ bootscript=netamin \
+ ./setup.sh > /dev/null; \
+ fi
+
#
# pluggable authentication modules support
#
pamdir = @PAMDIR@/etc/pam.d
-install-data-local: install-config-files $(PAMFILES)
+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"; \
else
-install-data-local: install-config-files
+install-data-local: install-config-files install-webmin
uninstall-local:
for f in $(CONFFILES) $(GENFILES); do \
--- /dev/null
+dnl $Id: webmin.m4,v 1.1 2009-10-22 08:36:30 franklahm Exp $
+dnl Autoconf macro to install webmin + netatalk webmin module
+
+AC_DEFUN([NETATALK_WEBMIN],[
+ AC_ARG_WITH(webmin,
+ [ --with-webmin=PATH path where webmin is installed [[$PKGCONFDIR/webmin]]],
+ if test "x$withval" = "xyes"; then
+ webminpath="$PKGCONFDIR"
+ elif test "x$withval" = "xno"; then
+ webminpath=""
+ else
+ webminpath="$withval"
+ fi
+ )
+
+ AC_ARG_WITH(webminuser,
+ [ --with-webminuser=NAME name for the webmin admin user],
+ if test "x$withval" = "xyes"; then
+ webminuser=""
+ elif test "x$withval" = "xno"; then
+ webminuser=""
+ else
+ webminuser="$withval"
+ fi
+ )
+
+ AC_ARG_WITH(webminversion,
+ [ --with-webminversion=VERSION Webmin version to fetch from sf.net [[1.490]]],
+ if test "x$withval" = "xyes"; then
+ webminversion="1.490"
+ elif test "x$withval" = "xno"; then
+ webminversions="1.490"
+ else
+ webminversion="$withval"
+ fi
+ )
+
+ AC_ARG_WITH(webminpass,
+ [ --with-webminpass=PASSWORD password for the webmin admin user],
+ if test "x$withval" = "xyes"; then
+ webminpass=""
+ elif test "x$withval" = "xno"; then
+ webminpass=""
+ else
+ webminpass="$withval"
+ fi
+ )
+
+ AC_ARG_WITH(webminport,
+ [ --with-webminport=PORT TCP port for webmin],
+ if test "x$withval" = "xyes"; then
+ webminport=""
+ elif test "x$withval" = "xno"; then
+ webminport=""
+ else
+ webminport="$withval"
+ fi
+ )
+
+ AC_MSG_CHECKING([if webmin administration shall be installed])
+ if test "x$webminpath" != "x" &&
+ test "x$webminuser" != "x" &&
+ test "x$webminpass" != "x" &&
+ test "x$webminport" != "x" &&
+ test "x$webminversion" != "x"; then
+ AC_MSG_RESULT([yes])
+ AC_MSG_CHECKING([if neccessary Perl module 'Net::SSLeay' is installed])
+ $ac_cv_path_PERL -e 'use Net::SSLeay' >/dev/null 2>/dev/null
+ if test "$?" != "0" ; then
+ AC_MSG_RESULT([no])
+ webminpath=""
+ else
+ AC_MSG_RESULT([yes])
+ AC_MSG_NOTICE([Installing Webmin in "$webminpath/webmin"])
+ fi
+ else
+ AC_MSG_RESULT([no])
+ fi
+
+ AC_SUBST(WEBMIN_PATH, $webminpath)
+ AC_SUBST(WEBMIN_VERSION, $webminversion)
+ AC_SUBST(WEBMIN_USER, $webminuser)
+ AC_SUBST(WEBMIN_PASS, $webminpass)
+ AC_SUBST(WEBMIN_PORT, $webminport)
+])
\ No newline at end of file