summaryrefslogtreecommitdiffstats
path: root/testing/proftpd/APKBUILD
blob: feb883f69287c96e7e39d8b2440950cc28228858 (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: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
# Maintainer: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
pkgname=proftpd
pkgver=1.3.4b
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="0871e0b93c9c3c88ca950b6d9a04aed2  proftpd-1.3.4b.tar.gz
cee983fba72533440d1a95c87bbbefc3  mempcpy.patch
175ce0cef2fb410d0ac8929ad421f941  proftpd.initd
aab5852ac574e87781f1c9c4942e699b  proftpd.confd"