aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pptpd/APKBUILD
blob: 265e13939322b529aac32bcf70b49d3ce74e5b5d (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
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Maintainer:
pkgname=pptpd
pkgver=1.3.4
pkgrel=0
pkgdesc="PoPToP - PPTP Daemon, Linux as Microsoft VPN Server"
url="http://www.poptop.org/"
arch="all"
license="GPL v2 or later"
depends=""
makedepends="ppp-dev"
install=""
subpackages="$pkgname-doc"
source="saveas-http://sourceforge.net/projects/poptop/files/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz/download/$pkgname-$pkgver.tar.gz pptpd.patch pptpd.confd pptpd.initd options.pptp pptpd.conf"

_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 --sysconfdir=/etc || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
	install -Dm755 "$srcdir"/pptpd.initd "$pkgdir"/etc/init.d/pptpd
	install -Dm644 "$srcdir"/pptpd.confd "$pkgdir"/etc/conf.d/pptpd
	install -Dm644 "$srcdir"/options.pptp "$pkgdir"/etc/ppp/options.pptp
	install -Dm644 "$srcdir"/pptpd.conf "$pkgdir"/etc/
}

md5sums="b38df9c431041922c997c1148bedf591  pptpd-1.3.4.tar.gz
5a6da6f9d62c9db58033267f0578e79f  pptpd.patch
bff575819b8997e7bbe743b95cb134cb  pptpd.confd
184b6c9cc04e1efc830e39da6c3bfefc  pptpd.initd
95f1efd9f4f896bf3b7aef1940c58e79  options.pptp
0a7af8968a964ebccf12ad512be9bba5  pptpd.conf"