# Maintainer: Natanael Copa pkgname=tinc pkgver=1.0.16 pkgrel=0 pkgdesc="tinc is a Virtual Private Network (VPN) daemon" url="http://www.tinc-vpn.org/" arch="all" 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="f1c7ed94878725fb2cf4efb02bf160da tinc-1.0.16.tar.gz 89d104d38bab84d6f92d27464e48628d tincd.initd 96d8778284637fa7790a4c6239a72070 tincd.lo.initd 475d64d9aa410ec7e91f5b079800abc9 tinc.networks"