[Lunar-commits] <moonbase-other> pure-ftpd: readd it to the moonbase.
Florin Braescu
florin at lunar-linux.org
Sun Jul 15 10:27:44 CEST 2012
commit e8a8e02bd6566fc993f8ce5f726bbb39fc0d7346
Author: Florin Braescu <florin at lunar-linux.org>
Date: Sun, 15 Jul 2012 01:27:44 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/e8a8e02bd6566fc993f8ce5f726bbb39fc0d7346
pure-ftpd: readd it to the moonbase.
---
ftp/pure-ftpd/BUILD +19/-0
ftp/pure-ftpd/CONFIGURE +13/-0
ftp/pure-ftpd/CONFLICTS +4/-0
ftp/pure-ftpd/DEPENDS +3/-0
ftp/pure-ftpd/DETAILS +20/-0
ftp/pure-ftpd/POST_INSTALL +4/-0
ftp/pure-ftpd/init.d/pure-ftpd +24/-0
ftp/pure-ftpd/pam.d/pure-ftpd +7/-0
ftp/pure-ftpd/services +2/-0
ftp/pure-ftpd/xinetd.d/pure-ftpd +14/-0
10 files changed, 110 insertions (+), 0 deletions (-)
--- /dev/null
+++ b/ftp/pure-ftpd/BUILD
@@ -0,0 +1,19 @@
+(
+
+ if module_installed Linux-PAM; then
+ OPTS+=" --with-pam"
+ fi
+
+ ./configure --sysconfdir=/etc \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --with-everything \
+ $OPTS &&
+ default_make &&
+ gather_docs *.conf &&
+ if [ ! -f /etc/ftpusers ]; then
+ cp pam/ftpusers /etc
+ fi
+
+) > $C_FIFO 2>&1
--- /dev/null
+++ b/ftp/pure-ftpd/CONFIGURE
@@ -0,0 +1,13 @@
+if ! grep -q CONFIGURED $MODULE_CONFIG; then
+
+ if query "Do you want to disable banner? " y
+ then OPTS=$OPTS" --without-banner"
+ fi
+
+ if query "Do you want to enable large file support? " y
+ then OPTS=$OPTS" --with-largefile"
+ fi
+
+ echo 'CONFIGURED="y"' >> $MODULE_CONFIG
+ echo 'OPTS='\"$OPTS\" >> $MODULE_CONFIG
+fi
--- /dev/null
+++ b/ftp/pure-ftpd/CONFLICTS
@@ -0,0 +1,4 @@
+conflicts wu-ftpd
+conflicts vsftpd
+conflicts proftpd
+
--- /dev/null
+++ b/ftp/pure-ftpd/DEPENDS
@@ -0,0 +1,3 @@
+optional_depends "mysql" "--with-mysql" "--without-mysql" "for MySQL user auth"
+optional_depends "kcmpureftpd" "" "" "for KDE Kcontrol based server configuration"
+optional_depends "openssl" "--with-tls" "" "for SSL/TLS support"
--- /dev/null
+++ b/ftp/pure-ftpd/DETAILS
@@ -0,0 +1,20 @@
+ MODULE=pure-ftpd
+ VERSION=1.0.35
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE_URL[0]=ftp://ftp.pureftpd.org/pub/$MODULE/releases
+ SOURCE_URL[1]=$SFORGE_URL/pureftpd
+ SOURCE_URL[2]=http://sunsite.rediris.es/sites/ftp.fr.pureftpd.org/pub/$MODULE/releases
+ SOURCE_VFY=sha1:e470bd886af68903ffba61832002fe90611f5756
+ WEB_SITE=http://www.pureftpd.org
+ ENTERED=20010922
+ UPDATED=20111204
+ SHORT="An efficient, lightweight, and secure FTP server"
+
+cat << EOF
+Pure FTP Server is a fast, production quality, standards-conformant FTP server
+based on Troll-FTPd. It has no known buffer overflows, is trivial to set up,
+and is especially designed for modern kernels. Features include PAM support,
+IPv6, chroot()ed home directories, virtual domains, built-in 'ls', FXP protocol,
+anti-warez system, bandwidth throttling, bounded ports for passive downloads,
+an LDAP backend, XML output, and more.
+EOF
--- /dev/null
+++ b/ftp/pure-ftpd/POST_INSTALL
@@ -0,0 +1,4 @@
+if [ -x /etc/init.d/pure-ftpd.sh ]; then
+ rm /etc/init.d/pure-ftpd.sh
+fi
+
--- /dev/null
+++ b/ftp/pure-ftpd/init.d/pure-ftpd
@@ -0,0 +1,24 @@
+#!/bin/bash
+#
+# Startup script for the pure-ftpd FTP Server
+#
+# chkconfig: 345 85 15
+# description: Pure-FTPd is an FTP server daemon based upon Troll-FTPd
+# processname: pure-ftpd
+# pidfile: /var/run/pure-ftpd.pid
+
+PURE_PID=/var/run/pure-ftpd.pid
+
+case $1 in
+ start|restart) echo "$1ing pure-ftpd, ftp daemon.."
+ [ -e "$PURE_PID" ] && kill `cat $PURE_PID`
+ pure-ftpd -b -B
+ ;;
+
+ stop) echo "$1ping pure-ftpd."
+ [ -e "$PURE_PID" ] && kill `cat $PURE_PID`
+ ;;
+
+ *) echo "Usage: $0 {start|stop|restart}"
+ ;;
+esac
--- /dev/null
+++ b/ftp/pure-ftpd/pam.d/pure-ftpd
@@ -0,0 +1,7 @@
+#%PAM-1.0
+auth requisite pam_listfile.so item=user sense=deny file=/etc/ftplockout onerr=succeed
+auth sufficient pam_ftp.so
+auth requisite pam_shells.so
+auth include system-auth
+account include system-auth
+session include system-auth
--- /dev/null
+++ b/ftp/pure-ftpd/services
@@ -0,0 +1,2 @@
+ftp-data 20/tcp
+ftp 21/tcp
--- /dev/null
+++ b/ftp/pure-ftpd/xinetd.d/pure-ftpd
@@ -0,0 +1,14 @@
+service ftp
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = root
+ disable = no
+ server = /usr/sbin/pure-ftpd
+ server_args = -b
+ per_source = 8
+ log_type = FILE /var/log/xinetd/pure-ftpd
+ log_on_success = PID HOST USERID EXIT DURATION
+ log_on_failure = USERID ATTEMPT
+}
More information about the Lunar-commits
mailing list