1 # Maintainer: Mark Constable <markc@renta.net>
6 pkgdesc="ProFTPD server (Debian layout) built with all modules plus SQLite"
8 url="http://www.proftpd.org"
12 backup=(etc/proftpd/proftpd.conf etc/proftpd/modules.conf)
13 depends=(glibc pam ncurses postgresql-libs libmysqlclient sqlite3)
15 ftp://ftp.proftpd.org/distrib/source/proftpd-$pkgver.tar.gz
16 http://www.castaglia.org/proftpd/modules/proftpd-mod-sql-sqlite-0.2.tar.gz
26 cd $srcdir/proftpd-$pkgver
27 cp $srcdir/mod_sql_sqlite/mod_sql_sqlite.c contrib
28 patch -Np2 -i $srcdir/mod_sql_mysql.c.patch || return 1
29 patch -Np2 -i $srcdir/add_timer.patch || return 1
30 ./configure LIBS=-lcrypto \
32 --mandir=/usr/share/man \
33 --sysconfdir=/etc/proftpd \
34 --localstatedir=/var/run \
35 --libexecdir=/usr/lib/proftpd \
36 --enable-sendfile --enable-facl --enable-dso --disable-pam --enable-ipv6 --enable-ctrls \
37 --with-includes=$(pg_config --includedir) --enable-autoshadow --with-modules=mod_readme \
38 --with-shared=mod_quotatab:mod_sql:mod_sql_sqlite:mod_sql_mysql:mod_sql_postgres:mod_quotatab_sql:mod_ldap:mod_quotatab_ldap:mod_ratio:mod_tls:mod_rewrite:mod_radius:mod_wrap:mod_quotatab_file:mod_facl:mod_ctrls_admin:mod_ifsession
40 make DESTDIR=$pkgdir install
42 install -D -m644 ../proftpd.logrotate $pkgdir/etc/logrotate.d/proftpd
43 mkdir -p $pkgdir/{etc/rc.d,etc/proftpd,var/log/proftpd,usr/lib/proftpd}
44 install -m755 proftpd $pkgdir/etc/rc.d
45 install -m755 proftpd.conf modules.conf $pkgdir/etc/proftpd
46 install -m644 modules/*.o $pkgdir/usr/lib/proftpd
48 md5sums=('e017918f5dcbb58b1de159a162fc796a'
49 'f1905d0db906eccc07e0ab07aa91c6d3'
50 '66b1993aa80fe3fe6c063ee1e7cc1250'
51 'ddb09eb13131becdf0e081eef413116b'
52 'dc700279119eddb10748435ee20b4f83'
53 '3597fd7e5cc5d2a93f13df96d2203038'
54 '949094c52275cd63a5d5e5e96cf25bfc'
55 '382329db665f3e28cbba8334a4de9a74')