summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-01-07 18:21:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-10 10:45:26 +0100
commit6b29d8e781bd88aedc19b4780adf706cfd1ba5d1 (patch)
treed054cec21814dcb153440fea14e15c60db2cf44a /package
parent4d925af2857b24d3576b5804884fb006e1ab6504 (diff)
proftp: ship some /etc/ftpusers
Taken from gentoo's ftpbase-package. Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Diffstat (limited to 'package')
-rw-r--r--package/proftpd/Makefile6
-rw-r--r--package/proftpd/files/ftpusers37
-rw-r--r--package/proftpd/files/proftpd.conffiles1
3 files changed, 44 insertions, 0 deletions
diff --git a/package/proftpd/Makefile b/package/proftpd/Makefile
index 6cfa849ac..2fea241aa 100644
--- a/package/proftpd/Makefile
+++ b/package/proftpd/Makefile
@@ -13,6 +13,9 @@ PKG_URL:= http://www.proftpd.org/
PKG_SITES:= ftp://ftp.proftpd.org/distrib/source/
PKG_NOPARALLEL:= 1
+PKG_FLAVOURS:= WITH_FTPUSERS
+PKGFD_WITH_FTPUSERS:= install /etc/ftpusers along with proftpd
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,PROFTPD,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
@@ -29,5 +32,8 @@ post-install:
$(IDIR_PROFTPD)/usr/bin/
$(INSTALL_BIN) $(WRKINST)/usr/sbin/{ftpshut,proftpd} \
$(IDIR_PROFTPD)/usr/sbin/
+ifeq (${ADK_PACKAGE_PROFTPD_WITH_FTPUSERS},y)
+ ${INSTALL_DATA} ./files/ftpusers ${IDIR_PROFTPD}/etc/
+endif
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/proftpd/files/ftpusers b/package/proftpd/files/ftpusers
new file mode 100644
index 000000000..4bc8872dc
--- /dev/null
+++ b/package/proftpd/files/ftpusers
@@ -0,0 +1,37 @@
+# Provided by ftpbase (dont remove this line!)
+# /etc/ftpusers: list of users disallowed FTP access
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpbase/files/ftpusers,v 1.1 2005/06/28 14:52:26 uberlord Exp $
+
+halt
+operator
+root
+shutdown
+sync
+bin
+daemon
+adm
+lp
+mail
+postmaster
+news
+uucp
+man
+games
+at
+cron
+www
+named
+squid
+gdm
+mysql
+postgres
+guest
+nobody
+alias
+qmaild
+qmaill
+qmailp
+qmailq
+qmailr
+qmails
+postfix
diff --git a/package/proftpd/files/proftpd.conffiles b/package/proftpd/files/proftpd.conffiles
index 9796c366f..3ff0fb2e3 100644
--- a/package/proftpd/files/proftpd.conffiles
+++ b/package/proftpd/files/proftpd.conffiles
@@ -1 +1,2 @@
/etc/proftpd.conf
+/etc/ftpusers