diff options
Diffstat (limited to 'testing/pptpd/APKBUILD')
-rw-r--r-- | testing/pptpd/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/pptpd/APKBUILD b/testing/pptpd/APKBUILD new file mode 100644 index 0000000000..3a0082d94c --- /dev/null +++ b/testing/pptpd/APKBUILD @@ -0,0 +1,49 @@ +# 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="" +depends_dev="" +makedepends="$depends_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" |