# # Apps Packages for Chakra, part of chakra-project.org # # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa # include global config pkgname=proftpd pkgver=1.3.3d pkgrel=2 pkgdesc="A high-performance, scalable FTP server" arch=('i686' 'x86_64') url="http://www.proftpd.org" license=('GPL') depends=('glibc' 'pam' 'ncurses' 'libcap' 'libldap' 'libmysqlclient' 'postgresql-libs') backup=('etc/proftpd.conf' 'etc/conf.d/proftpd') source=(ftp://ftp.proftpd.org/distrib/source/${pkgname}-${pkgver}.tar.bz2 'proftpd' 'proftpd.logrotate' 'proftpd.conf.d') md5sums=('69650e91e05b3a10fa3ac54ee261679b' '03434e92fbf9250275bfb510a68f66bc' '719421d0d004b771488931c3bc7c9b0d' '2a1a9bab12655bd8694ac49d48c6f0e4') build() { cd ${srcdir}/${pkgname}-${pkgver} ./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 } package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -Dm644 ../proftpd.logrotate ${pkgdir}/etc/logrotate.d/proftpd install -Dm644 ../proftpd.conf.d ${pkgdir}/etc/conf.d/proftpd install -Dm755 ../proftpd ${pkgdir}/etc/rc.d/proftpd install -Dm755 contrib/xferstats.holger-preiss \ ${pkgdir}/usr/bin/ftpstats cd ${pkgdir}/etc sed -i 's|nogroup|nobody|g' proftpd.conf rmdir ${pkgdir}/usr/libexec }