diff options
author | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
commit | bdea7e6c6a535e57a07d376a3139d0788efaaa41 (patch) | |
tree | 1a7334c99fa39b1ad1a7a35c113b18cb0d92413c /pure-ftpd | |
download | opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.gz opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.xz |
create branch for 2.2
Diffstat (limited to 'pure-ftpd')
-rw-r--r-- | pure-ftpd/.footprint | 33 | ||||
-rw-r--r-- | pure-ftpd/.md5sum | 3 | ||||
-rw-r--r-- | pure-ftpd/Pkgfile | 29 | ||||
-rw-r--r-- | pure-ftpd/pure-ftpd | 40 | ||||
-rw-r--r-- | pure-ftpd/pure-ftpd.conf | 19 |
5 files changed, 124 insertions, 0 deletions
diff --git a/pure-ftpd/.footprint b/pure-ftpd/.footprint new file mode 100644 index 000000000..4adc68e05 --- /dev/null +++ b/pure-ftpd/.footprint @@ -0,0 +1,33 @@ +drwxr-xr-x root/root etc/ +-rw-r--r-- root/root etc/pure-ftpd.conf +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/pure-ftpd +drwxr-xr-x root/root etc/ssl/ +drwxr-xr-x root/root etc/ssl/certs/ +-rw------- root/root etc/ssl/certs/pure-ftpd.pem (EMPTY) +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/pure-pw +-rwxr-xr-x root/root usr/bin/pure-pwconvert +-rwxr-xr-x root/root usr/bin/pure-statsdecode +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/pure-authd.8.gz +-rw-r--r-- root/root usr/man/man8/pure-ftpd.8.gz +-rw-r--r-- root/root usr/man/man8/pure-ftpwho.8.gz +-rw-r--r-- root/root usr/man/man8/pure-mrtginfo.8.gz +-rw-r--r-- root/root usr/man/man8/pure-pw.8.gz +-rw-r--r-- root/root usr/man/man8/pure-pwconvert.8.gz +-rw-r--r-- root/root usr/man/man8/pure-quotacheck.8.gz +-rw-r--r-- root/root usr/man/man8/pure-statsdecode.8.gz +-rw-r--r-- root/root usr/man/man8/pure-uploadscript.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/pure-authd +-rwxr-xr-x root/root usr/sbin/pure-ftpd +-rwxr-xr-x root/root usr/sbin/pure-ftpwho +-rwxr-xr-x root/root usr/sbin/pure-mrtginfo +-rwxr-xr-x root/root usr/sbin/pure-quotacheck +-rwxr-xr-x root/root usr/sbin/pure-uploadscript +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/log/ +-rw-r--r-- root/root var/log/pure-ftpd.log (EMPTY) diff --git a/pure-ftpd/.md5sum b/pure-ftpd/.md5sum new file mode 100644 index 000000000..c521d06c4 --- /dev/null +++ b/pure-ftpd/.md5sum @@ -0,0 +1,3 @@ +ad1738ef0302bbb6153b2c3de832fec7 pure-ftpd +ca8a8dbec0cd9c8ea92fc4c37ea9c410 pure-ftpd-1.0.21.tar.bz2 +306d1de5a60a29ad8b9b664bd272941f pure-ftpd.conf diff --git a/pure-ftpd/Pkgfile b/pure-ftpd/Pkgfile new file mode 100644 index 000000000..8fd9dbbb5 --- /dev/null +++ b/pure-ftpd/Pkgfile @@ -0,0 +1,29 @@ +# Description: Fast, secure, production-quality and standard-conformant FTP server +# URL: http://pureftpd.sourceforge.net +# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de +# Depends on: openssl + +name=pure-ftpd +version=1.0.21 +release=1 +source=(ftp://ftp.pureftpd.org/pub/$name/releases/$name-$version.tar.bz2 \ + pure-ftpd pure-ftpd.conf) + +build () { + cd $name-$version + sed -i 's|/etc/ssl/private|/etc/ssl/certs|' src/ftpd.h + ./configure --prefix=/usr \ + --with-everything \ + --with-tls \ + --without-pam + make + make DESTDIR=$PKG install + + install -d $PKG/{var/log,etc/{rc.d,ssl/certs}} + touch $PKG/var/log/pure-ftpd.log + touch $PKG/etc/ssl/certs/pure-ftpd.pem + chmod 0600 $PKG/etc/ssl/certs/pure-ftpd.pem + + install -m 755 $SRC/pure-ftpd $PKG/etc/rc.d + install -m 644 $SRC/pure-ftpd.conf $PKG/etc +} diff --git a/pure-ftpd/pure-ftpd b/pure-ftpd/pure-ftpd new file mode 100644 index 000000000..1980c3d56 --- /dev/null +++ b/pure-ftpd/pure-ftpd @@ -0,0 +1,40 @@ +#!/bin/sh +# +# /etc/rc.d/pure-ftpd: start/stop pure-ftpd daemon +# + +CONF=/etc/pure-ftpd.conf +ARGS=$(sed -e '/^\s*$/d' -e '/^#/d' $CONF) +CRT=/etc/ssl/certs/pure-ftpd.pem + +make_cert() { + FQDN=$(hostname -f) || FQDN=localhost + echo "Creating SSL certificate $CRT for host $FQDN" + INFO=".\n.\n.\n.\n.\n$FQDN\nroot@$FQDN" + OPTS="req -new -nodes -x509 -days 365 -newkey rsa:1024" + echo -e $INFO | openssl $OPTS -out $CRT -keyout $CRT 2> /dev/null + chmod 0600 $CRT +} + + +case $1 in +start) + if [ ! -s $CRT ]; then + make_cert + fi + /usr/sbin/pure-ftpd $ARGS + ;; +stop) + killall -q /usr/sbin/pure-ftpd + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file
\ No newline at end of file diff --git a/pure-ftpd/pure-ftpd.conf b/pure-ftpd/pure-ftpd.conf new file mode 100644 index 000000000..b6af4230e --- /dev/null +++ b/pure-ftpd/pure-ftpd.conf @@ -0,0 +1,19 @@ +# +# /etc/pure-ftpd.conf +# +# Put the commandline options for pure-ftpd in this file. +# Use the same syntax as calling pure-ftpd directly from +# the commandline, also include the dashes. +# Blank lines and lines beginning by a pound-sign, which +# are considered comments, are ignored. +# + +--daemonize +--chrooteveryone +--anonymousonly +--anonymouscantupload +--syslogfacility none +--altlog clf:/var/log/pure-ftpd.log +--tls=1 + +# End of file
\ No newline at end of file |