aboutsummaryrefslogtreecommitdiffstats
path: root/main/tinc/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-12-10 20:04:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-10 20:04:19 +0000
commitb70d422361400cc6a43c322e9f446dc2b3791504 (patch)
tree08a86d44c040996449053eaf8f01c1a3754bd3f5 /main/tinc/APKBUILD
parent0cfedfd014e9681c080967c74baac1290365ae46 (diff)
downloadaports-b70d422361400cc6a43c322e9f446dc2b3791504.tar.bz2
aports-b70d422361400cc6a43c322e9f446dc2b3791504.tar.xz
main/tinc: renamed
Diffstat (limited to 'main/tinc/APKBUILD')
-rw-r--r--main/tinc/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/tinc/APKBUILD b/main/tinc/APKBUILD
new file mode 100644
index 0000000000..1ae15310e4
--- /dev/null
+++ b/main/tinc/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=tinc
+pkgver=1.0.13
+pkgrel=0
+pkgdesc="tinc is a Virtual Private Network (VPN) daemon"
+url="http://www.tinc-vpn.org/"
+license="GPL-2"
+depends=
+makedepends="zlib-dev lzo-dev openssl-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz
+ tincd.initd
+ tincd.lo.initd
+ tinc.networks"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-jumbograms \
+ --enable-lzo \
+ --enable-zlib
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+
+ mkdir "$pkgdir"/etc/tinc
+ install -m755 -D "$srcdir"/tincd.initd "$pkgdir"/etc/init.d/tincd
+ install -m755 -D "$srcdir"/tincd.lo.initd \
+ "$pkgdir"/etc/init.d/tincd.lo
+ install -m644 -D "$srcdir"/tinc.networks \
+ "$pkgdir"/etc/conf.d/tinc.networks
+}
+
+md5sums="86263994d38c750431efd17e9a91a248 tinc-1.0.13.tar.gz
+89d104d38bab84d6f92d27464e48628d tincd.initd
+96d8778284637fa7790a4c6239a72070 tincd.lo.initd
+475d64d9aa410ec7e91f5b079800abc9 tinc.networks"