mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
59 lines
1.8 KiB
Bash
59 lines
1.8 KiB
Bash
# Contributions from AUR: https://aur.archlinux.org/packages/proftpd/
|
|
|
|
pkgname=proftpd
|
|
pkgver=1.3.5.b
|
|
_pkgver=1.3.5b
|
|
pkgrel=1
|
|
pkgdesc="A high-performance, scalable FTP server"
|
|
arch=('x86_64')
|
|
url="http://www.proftpd.org"
|
|
license=('GPL')
|
|
depends=('libldap' 'libmariadbclient' 'postgresql-libs')
|
|
backup=('etc/proftpd.conf' 'etc/conf.d/proftpd')
|
|
categories=('network')
|
|
install=proftpd.install
|
|
source=("ftp://ftp.proftpd.org/distrib/source/${pkgname}-${_pkgver}.tar.gz"
|
|
'proftpd.service'
|
|
'proftpd.logrotate'
|
|
'proftpd.tmpfiles')
|
|
md5sums=('f7b8e3a383b34a894c2502db74ccccde'
|
|
'2bf74515d84036cb0acd60406fcd25b0'
|
|
'ddb09eb13131becdf0e081eef413116b'
|
|
'907b149a120b046f05647c73502e23c9')
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${_pkgver}
|
|
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--libexecdir=/usr/lib \
|
|
--disable-pam \
|
|
--with-modules=mod_quotatab:mod_quotatab_file:mod_tls:mod_ldap:mod_sql:mod_sql_mysql:mod_sql_postgres \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/run/proftpd \
|
|
--enable-ctrls \
|
|
--enable-ipv6 \
|
|
--with-includes=/usr/include/mysql:/usr/include/postgresql \
|
|
--with-libraries=/usr/lib/mysql:/usr/lib/postgresql \
|
|
--enable-nls \
|
|
--with-systemd
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${_pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
sed -i 's|nogroup|nobody|g' "${pkgdir}/etc/proftpd.conf"
|
|
|
|
install -Dm644 ../proftpd.logrotate "${pkgdir}/etc/logrotate.d/proftpd"
|
|
install -Dm755 contrib/xferstats.holger-preiss "${pkgdir}/usr/bin/ftpstats"
|
|
|
|
install -d "${pkgdir}/usr/lib/systemd/system/"
|
|
install -m644 "${srcdir}"/proftpd.service "${pkgdir}/usr/lib/systemd/system/"
|
|
install -Dm644 "${srcdir}"/proftpd.tmpfiles \
|
|
"${pkgdir}"/usr/lib/tmpfiles.d/proftpd.conf
|
|
|
|
# /run is tmpfs
|
|
rmdir "${pkgdir}"/run/{proftpd,}
|
|
}
|