summaryrefslogtreecommitdiffstats
path: root/testing/proftpd/APKBUILD
blob: 1da57603f38c22279db638bf500f5e609eedccac (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
# Contributor: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
# Maintainer: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
pkgname=proftpd
pkgver=1.3.4c
pkgrel=0
pkgdesc="Highly configurable GPL-licensed FTP server software"
url="http://www.proftpd.org/"
arch="all"
license="GPLv2"
depends=""
depends_dev="ncurses-dev openssl-dev gettext-dev"
makedepends="$depends_dev libtool"
install=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
source="ftp://ftp.proftpd.org/distrib/source/proftpd-${pkgver}.tar.gz
	mempcpy.patch
	proftpd.initd
	proftpd.confd"

_builddir="$srcdir"/"$pkgname"-"$pkgver"

prepare() {
	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			\
		--enable-openssl	\
		--enable-facl		\
		--enable-dso		\
		--enable-ipv6		\
		--enable-ctrls		\
		--with-modules=mod_quotatab:mod_quotatab_file:mod_tls	\
		--prefix=/usr		\
		--sysconfdir=/etc	\
		--mandir=/usr/share/man	\
		--localstatedir=/var/run
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

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

md5sums="65f61e953bea249f8377e681594143a5  proftpd-1.3.4c.tar.gz
cee983fba72533440d1a95c87bbbefc3  mempcpy.patch
175ce0cef2fb410d0ac8929ad421f941  proftpd.initd
aab5852ac574e87781f1c9c4942e699b  proftpd.confd"
sha256sums="fb80dd422969b8c900920a30a56f5e272862275d244d3857a980f5f2386ea912  proftpd-1.3.4c.tar.gz
8d6167cf16551df61139e0410309303721fa58d3898fe9243648c319b61b7135  mempcpy.patch
afcc8971c7ddba740979117f62a01b70453e53b36806c2b2328ca32f47a5964d  proftpd.initd
36677336553d5b6bc96b36be766d9eadcc42946a25cb38c0824ff509ede31955  proftpd.confd"
sha512sums="8482217075412cc5c578822124f866b0eec502172e49407d962198010a575d914664cb580bc7f2ffa7c4da0d60a4156959135f56f50013543bf00f6cf6fbb7b3  proftpd-1.3.4c.tar.gz
50973de4bb234d455d8ec076c80b692b694a179f07a3903f821887bf75adce1f0672f62c97840c08e0d99bfce05f5b710aa15818031580b3f768ed7c77d2971e  mempcpy.patch
a2aedcfe4c1e78c7591a21943e63f4880eb461935130ed93d4037a80374e7f70b42f37959c23bd82bf965e67b8c9fab6488d84d01628d23231a5c65270b06a74  proftpd.initd
ea06653f14484b6e3b4267cd964a37d3218c5bcff141c6a33a2e1b46c1f43eaa2996f0d9c3c3eb40c8a8ae9534be09803f53979c37d5fb760d7231a5d3003977  proftpd.confd"