aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pure-ftpd/APKBUILD
blob: d8d022079ed9b027400d1c02216a6c6cc341a2f4 (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
# Contributor: Douglas Haber <me@douglashaber.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pure-ftpd
pkgver=1.0.42
pkgrel=0
pkgdesc="Pure FTPD FTP daemon"
url="http://pureftpd.org"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://download.pureftpd.org/pub/pure-ftpd/releases/$pkgname-$pkgver.tar.gz
	pure-ftpd.initd
	pure-ftpd.confd"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--without-humor \
		--without-unicode \
		--with-minimal \
		--with-throttling  \
		--with-puredb \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
        install -m755 -D ../$pkgname.initd \
                "$pkgdir"/etc/init.d/$pkgname || return 1

        install -m644 -D ../$pkgname.confd \
                "$pkgdir"/etc/conf.d/$pkgname || return 1
}

md5sums="4195af8f0e5ee2a798b1014071dae3a3  pure-ftpd-1.0.42.tar.gz
522c1c05dee2e6ea392d3a168139c94d  pure-ftpd.initd
85eec24d205663fbc0a3b37fdbe08e84  pure-ftpd.confd"
sha256sums="7be73a8e58b190a7054d2ae00c5e650cb9e091980420082d02ec3c3b68d8e7f9  pure-ftpd-1.0.42.tar.gz
e16bd8f6899a8bcdd317c6fd0a4ca4b9a756e217cdea40ca61208061e0f06f34  pure-ftpd.initd
6b67379efa91a6168bd4cebee56ba09dfa77830a4843b25edb7a85f1bb88e5fa  pure-ftpd.confd"
sha512sums="c112ba5b11df4026ffe26267df9a1b9b24d8fdde1d6b724c995ec872187783b4057370cd90a8ba230d9c912387dd7345653b7c30cfc38fd2f3849b76ae1e061d  pure-ftpd-1.0.42.tar.gz
fde2e979410779cc0044e1190b88fe2f0956166b68e2d7fb94520bc0803a3ec85814f66e09a7fdae4ebead872c9a48d973cf7ef3d2818f2298b22ac629cfcf25  pure-ftpd.initd
a5cc8e59178a5d0f7b5909d09009ef6ace1f8e6874bd733e21bc30f4899447e70b020a0369077132751ceb28afa971588efedcce3dea83e9b043b1545caf3393  pure-ftpd.confd"