summaryrefslogtreecommitdiffstats
path: root/main/openvpn/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-02-03 10:11:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-02-03 10:11:11 +0000
commit9f750544a956d862d37472e9b8f406d613cc381a (patch)
tree857b032d5e0323d5a22af96468963b8f43d29aff /main/openvpn/APKBUILD
parent49900c76bb6afaddf29553c0e8b9b7b4708a2122 (diff)
downloadaports-9f750544a956d862d37472e9b8f406d613cc381a.tar.bz2
aports-9f750544a956d862d37472e9b8f406d613cc381a.tar.xz
main/openvpn: upgrade to 2.1.1 (moved from testing)
Diffstat (limited to 'main/openvpn/APKBUILD')
-rw-r--r--main/openvpn/APKBUILD24
1 files changed, 10 insertions, 14 deletions
diff --git a/main/openvpn/APKBUILD b/main/openvpn/APKBUILD
index a8f1e18ff..bd751f311 100644
--- a/main/openvpn/APKBUILD
+++ b/main/openvpn/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openvpn
-pkgver=2.0.9
-pkgrel=2
+pkgver=2.1.1
+pkgrel=0
pkgdesc="A robust, and highly configurable VPN (Virtual Private Network)"
url="http://openvpn.sourceforge.net/"
license="custom"
@@ -10,17 +10,12 @@ depends="iproute2"
makedepends="openssl-dev lzo-dev"
install=
source="http://$pkgname.net/release/$pkgname-$pkgver.tar.gz
- openvpn-2.0.9-persistent.patch
openvpn.initd
"
+_builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$srcdir"/$pkgname-$pkgver
- for i in ../*.patch; do
- msg "Applying $i..."
- patch -p1 < $i || return 1
- done
-
+ cd "$_builddir"
./configure --prefix=/usr \
--mandir=/usr/share/man \
--enable-ssl \
@@ -29,10 +24,13 @@ build() {
--enable-iproute2
make || return 1
-
cd plugin/down-root
make || return 1
cd ../..
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
@@ -54,8 +52,6 @@ build() {
# install init.d
install -Dm755 ../openvpn.initd "$pkgdir"/etc/init.d/openvpn
-
}
-md5sums="60745008b90b7dbe25fe8337c550fec6 openvpn-2.0.9.tar.gz
-a9075ceb8552980519132cc27fda85ac openvpn-2.0.9-persistent.patch
-793184e36ad09b22cdb19b4294131508 openvpn.initd"
+md5sums="b273ed2b5ec8616fb9834cde8634bce7 openvpn-2.1.1.tar.gz
+020376f1e7ed6b4adbe20cf5ff774856 openvpn.initd"