aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pptpclient/APKBUILD
blob: 31adae3ce8bd053f5d573c882bf29ce225422c06 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pptpclient
pkgver=1.7.2
pkgrel=1
pkgdesc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP."
url="http://pptpclient.sourceforge.net/"
license="GPL"
depends="ppp iproute2"
makedepends="perl"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/pptp-$pkgver.tar.gz
	pptpclient-uclibc.patch"

prepare() {
	cd "$srcdir"/pptp-$pkgver
	patch -p1 -i "$srcdir"/pptpclient-uclibc.patch || return 1
	sed -i '/CFLAGS/d' Makefile
	sed -i 's|\/bin\/ip|\/usr\/sbin\/ip|g' routing.c
}

build() {
	cd "$srcdir"/pptp-$pkgver
	make || return 1
}

package() {
	cd "$srcdir"/pptp-$pkgver
	make DESTDIR="$pkgdir" install
}
md5sums="4c3d19286a37459a632c7128c92a9857  pptp-1.7.2.tar.gz
34b643e4e4224e723f6a768018b46015  pptpclient-uclibc.patch"