blob: 544b9493ddafaa69224f05c7e271cac69c45af93 (
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
|
# $Id: PKGBUILD 148035 2012-01-30 08:08:56Z eric $
# Maintainer:
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=proftpd
pkgver=1.3.4a
pkgrel=3
epoch=1
pkgdesc="A high-performance, scalable FTP server"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.proftpd.org"
license=('GPL')
depends=('libldap' 'libmysqlclient' 'postgresql-libs')
backup=('etc/proftpd.conf' 'etc/conf.d/proftpd')
source=(ftp://ftp.proftpd.org/distrib/source/${pkgname}-${pkgver}.tar.bz2{,.asc}
'proftpd' 'proftpd.logrotate' 'proftpd.conf.d')
sha1sums=('18ea33d8b9f858b6e735cc81af900f0eebee8d25'
'195b06e28e503f5e5ef355c3332884cc5e7954a9'
'b7819d725817e55b69c73e2572c21a05db48cc86'
'83c38ec40efb7cc09d9824b98e65cd948a195cc6'
'f34f60cb4fb1f4af7be7aca427cbad3cad22bbb9')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--disable-pam \
--with-modules=mod_quotatab:mod_quotatab_sql: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
sed -i 's|nogroup|nobody|g' "${pkgdir}/etc/proftpd.conf"
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"
}
|