APKBUILD 1.45 KB
Newer Older
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
Natanael Copa's avatar
Natanael Copa committed
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
3
pkgname=vsftpd
Natanael Copa's avatar
Natanael Copa committed
4 5
pkgver=2.3.2
pkgrel=0
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
6 7
pkgdesc="Very secure ftpd"
url="http://vsftpd.beasts.org"
Natanael Copa's avatar
Natanael Copa committed
8
arch="x86 x86_64"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
9
license="GPL"
10
depends=
Natanael Copa's avatar
Natanael Copa committed
11
makedepends="openssl-dev libcap-dev"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
12 13
subpackages="$pkgname-doc"
source="ftp://vsftpd.beasts.org/users/cevans/vsftpd-${pkgver}.tar.gz
Natanael Copa's avatar
Natanael Copa committed
14 15 16
	vsftpd-enable-ssl.patch
	vsftpd.initd
	vsftpd.confd"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
17

18 19 20 21
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd $_builddir
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
22 23
	#Enable SSL support 
	patch -p0 -i "$srcdir"/vsftpd-enable-ssl.patch || return 1
Natanael Copa's avatar
Natanael Copa committed
24 25
	# we dont have libnsl
	sed -i -e '/-lnsl/d' vsf_findlibs.sh || return 1 
26 27 28
	# Let abuild control stripping
	sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile
}
Natanael Copa's avatar
Natanael Copa committed
29

30 31
build() {
	cd $_builddir
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
32
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
33 34 35 36
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
37 38 39 40 41 42 43 44 45
	install -m755 -D vsftpd "$pkgdir"/usr/sbin/vsftpd
	install -m644 -D vsftpd.8 "$pkgdir"/usr/share/man/man8/vsftpd.8
	install -m644 -D vsftpd.conf.5 "$pkgdir"/usr/share/man/man5/vsftpd.conf.5
	install -m644 -D vsftpd.conf "$pkgdir"/etc/vsftpd.conf
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	mkdir -p "$pkgdir"/usr/share/empty
}

Natanael Copa's avatar
Natanael Copa committed
46
md5sums="bad7b117d737a738738836041edc00db  vsftpd-2.3.2.tar.gz
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
47
f3cbaf364cd3c46a2a03b00de9d7e184  vsftpd-enable-ssl.patch
48
1a56bcc7698dba6490f0007f37c75e9b  vsftpd.initd
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
49
431dfe7403323e247a88b97beade5d78  vsftpd.confd"