summaryrefslogtreecommitdiffstats
path: root/extra/proftpd/Pkgfile
blob: 2ab70bb7df455b8de3ec101f8cb22a059ff518e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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

}