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