blob: 0f050c8ddd48d5dcddbdc5a4d3578ba648d742cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Laszlo Malina <laszlo.malina@processnet.hu>
# Contributor: Laszlo Malina <laszlo.malina@processnet.hu>
# Contributor: Immae <ismael.bouya@normalesup.org>
# Contributor: fila pruda.com
# Contributor: tuxce <tuxce.net@gmail.com>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: BlueRaven <blue@ravenconsulting.it>
# Contributor: dorphell <dorphell@archlinux.org>
pkgname=pure-ftpd-db
_srcname=pure-ftpd
pkgver=1.0.52
pkgrel=1
pkgdesc="A fast, production quality, standards-conformant FTP server. Compiled with mysql and pgsql."
arch=('i686' 'x86_64')
url="http://www.pureftpd.org/"
license=('custom')
provides=('pure-ftpd')
conflicts=('pure-ftpd')
depends=('openssl' 'mariadb-libs' 'postgresql-libs' 'libsodium' 'libldap')
backup=('etc/pure-ftpd/pure-ftpd.conf')
# https://download.pureftpd.org/pub/pure-ftpd/releases/
source=(
"ftp://pureftpd.org/pub/${_srcname}/releases/${_srcname}-${pkgver}.tar.bz2"
'pure-ftpd.service'
'welcome.msg'
'pure-ftpd.logrotate'
)
build() {
cd ${srcdir}/${_srcname}-${pkgver}
./configure \
--prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--with-puredb \
--with-pam \
--with-pgsql \
--with-mysql \
--with-ldap \
--with-extauth \
--with-altlog \
--with-cookie \
--with-diraliases \
--with-ftpwho \
--with-peruserlimits \
--with-quotas \
--with-ratios \
--with-rfc2640 \
--with-throttling \
--with-virtualhosts \
--with-virtualchroot \
--with-tls
make
}
package() {
cd ${srcdir}/${_srcname}-${pkgver}
make DESTDIR=${pkgdir} install
install -Dm644 pure-ftpd.conf ${pkgdir}/etc/pure-ftpd/pure-ftpd.conf
install -Dm644 ${srcdir}/pure-ftpd.service ${pkgdir}/usr/lib/systemd/system/pure-ftpd.service
install -Dm644 ${srcdir}/pure-ftpd.logrotate ${pkgdir}/etc/logrotate.d/pure-ftpd
install -Dm644 -t ${pkgdir}/etc/pure-ftpd/ pure-ftpd.conf ${srcdir}/welcome.msg
install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${_srcname}/LICENSE
install -d ${pkgdir}/usr/share/doc/${_srcname}/
install -Dm644 -t ${pkgdir}/usr/share/doc/${_srcname}/ README* pureftpd-*.conf pureftpd.schema ChangeLog
rm -f ${pkgdir}/etc/pure-ftpd.conf
sed -i 's|#PIDFile\s.*/var/run/pure-ftpd.pid|PIDFile /run/pure-ftpd.pid|' ${pkgdir}/etc/pure-ftpd/pure-ftpd.conf
sed -i 's|NoAnonymous\s.*no|NoAnonymous yes|' ${pkgdir}/etc/pure-ftpd/pure-ftpd.conf
sed -i 's|#PIDFile\s.*/var/run/pure-ftpd.pid|PIDFile /run/pure-ftpd.pid|' ${pkgdir}/etc/pure-ftpd/pure-ftpd.conf
sed -i 's|# AltLog\s.*clf:/var/log/pureftpd.log|AltLog clf:/var/log/pureftpd.log|' ${pkgdir}/etc/pure-ftpd/pure-ftpd.conf
sed -i 's|# TLS\s.*1|TLS 1|' ${pkgdir}/etc/pure-ftpd/pure-ftpd.conf
sed -i 's|# TLSCipherSuite\s.*HIGH|TLSCipherSuite -S:HIGH:MEDIUM:+TLSv1|' ${pkgdir}/etc/pure-ftpd/pure-ftpd.conf
}
sha256sums=('b3b879468275e0344555458c8e62465dcf525205ecf9ad78c3f208557d0c1947'
'9be7c746d579ea83f17b21f58a4d0055caa370c7bfe543993b1d81ba91672d96'
'7c20f36c26c5a5cc469f376f6d047a8dc082ed1c34e55f318993aa0f2f4a0646'
'cabbdf0c1b9fb4651c6f30eea95438b1f4f2b6872e0a62a92cda99afb1b6f6c3')
|