1 # Maintainer: Christian Hammerl <info@christian-hammerl.de>
4 pkgname=${_pkgname}-sqlquota
7 pkgdesc="A high-performance, scalable FTP server (with mod_quotatab_sql enabled)"
9 url="http://www.proftpd.org"
13 depends=('glibc' 'pam' 'ncurses' 'libcap' 'libldap'
14 'libmysqlclient' 'postgresql-libs')
15 backup=('etc/proftpd.conf' 'etc/conf.d/proftpd')
16 source=(ftp://ftp.proftpd.org/distrib/source/${_pkgname}-${pkgver}.tar.bz2
17 'proftpd' 'proftpd.logrotate' 'proftpd.conf.d')
18 md5sums=('acc49b6589bc8c9fdf1dce9000bebdbd'
19 '99f6f9a989e70e3fa50809fc2bbbbb0a'
20 'ddb09eb13131becdf0e081eef413116b'
21 '71d5932b0461c318ed68c2c0c2660736')
22 sha1sums=('b347aa72d12e41fe8f43e8d91a7a4eeaac6f472f'
23 'b7819d725817e55b69c73e2572c21a05db48cc86'
24 '83c38ec40efb7cc09d9824b98e65cd948a195cc6'
25 'f34f60cb4fb1f4af7be7aca427cbad3cad22bbb9')
28 cd "${srcdir}/${_pkgname}-${pkgver}"
30 ./configure --prefix=/usr --mandir=/usr/share/man --disable-pam \
31 --with-modules=mod_quotatab:mod_quotatab_file:mod_quotatab_sql:mod_tls:mod_ldap:mod_sql:mod_sql_mysql:mod_sql_postgres \
32 --sysconfdir=/etc --localstatedir=/var/run --enable-ctrls --enable-ipv6 \
33 --with-includes=/usr/include/mysql:/usr/include/postgresql \
34 --with-libraries=/usr/lib/mysql:/usr/lib/postgresql --enable-nls
39 cd "${srcdir}/${_pkgname}-${pkgver}"
41 make DESTDIR="${pkgdir}" install
42 install -Dm644 ../proftpd.logrotate "${pkgdir}/etc/logrotate.d/proftpd"
43 install -Dm644 ../proftpd.conf.d "${pkgdir}/etc/conf.d/proftpd"
44 install -Dm755 ../proftpd "${pkgdir}/etc/rc.d/proftpd"
45 install -Dm755 contrib/xferstats.holger-preiss \
46 "${pkgdir}/usr/bin/ftpstats"
48 sed -i 's|nogroup|nobody|g' proftpd.conf
49 rmdir "${pkgdir}/usr/libexec"