mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
51 lines
1.7 KiB
Bash
51 lines
1.7 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
|
|
pkgname=proftpd
|
|
pkgver=1.3.3e
|
|
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=('acc49b6589bc8c9fdf1dce9000bebdbd'
|
|
'03434e92fbf9250275bfb510a68f66bc'
|
|
'2022dae1483868569299396777d3694a'
|
|
'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
|
|
} |