summaryrefslogtreecommitdiffstats
path: root/extra/proftpd/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/proftpd/Pkgfile')
-rw-r--r--extra/proftpd/Pkgfile32
1 files changed, 32 insertions, 0 deletions
diff --git a/extra/proftpd/Pkgfile b/extra/proftpd/Pkgfile
new file mode 100644
index 000000000..2ab70bb7d
--- /dev/null
+++ b/extra/proftpd/Pkgfile
@@ -0,0 +1,32 @@
+# Description: Serveur FTP de très grande performance
+# URL: http://www.proftpd.org/
+# Maintainer: Cobex4
+# Packager: cobex4 at gmail dot com
+# Depends on: libldap, libmysql, libpostgresql
+
+name=proftpd
+version=1.3.3c
+release=1
+source=ftp://ftp.proftpd.org/distrib/source/$name-$version.tar.gz
+
+build() {
+ cd $name-$version
+ ./configure --prefix=/usr --mandir=/usr/share/man --disable-pam \
+ --with-modules=mod_quotatab:mod_quotatab_file:mod_tls:mod_ldap:mod_sql:mod_sql_mysql:mod_sql_postgres \
+ --sysconfdir=/etc --localstatedir=/var/run --enable-ctrls --enable-ipv6 \
+ --with-includes=/usr/include/mysql:/usr/include/postgresql \
+ --with-libraries=/usr/lib/mysql:/usr/lib/postgresql --enable-nls
+
+ make
+ make prefix=$PKG/usr install
+
+# Controle du service
+ mkdir -v -p $PKG/etc/rc.d/rc{0,1,3,4,5,6}.d
+ ln -svf ../init.d/proftpd $PKG/etc/rc.d/rc3.d/S90proftpd
+ ln -svf ../init.d/proftpd $PKG/etc/rc.d/rc5.d/S90proftpd
+ ln -svf ../init.d/proftpd $PKG/etc/rc.d/rc4.d/S90proftpd
+ ln -svf ../init.d/proftpd $PKG/etc/rc.d/rc0.d/K10proftpd
+ ln -svf ../init.d/proftpd $PKG/etc/rc.d/rc1.d/K10proftpd
+ ln -svf ../init.d/proftpd $PKG/etc/rc.d/rc6.d/K10proftpd
+
+}