1 # Contributor: Bernhard Tittelbach <xro -at- realraum -dot- at>
5 pkgdesc="tiny secure anycast tunneling protocol implementation for flexible and fault-tolerant VPNs"
7 url="http://www.anytun.org/"
10 depends=(openssl glibc)
11 #depends=(libgcrypt glibc)
12 makedepends=(make gcc)
17 options=(docs zipman ccache distcc)
18 install=uanytun.install
19 source=("http://www.anytun.org/download/$pkgname-$pkgver.tar.gz" "examples.patch")
21 md5sums=('ca39dab02e91b0737e2b3f0839e74f6a'
22 '6b99e9299fdf81ef647bf4fe958f8779')
25 local sharedir="/usr/share/${pkgname}-${pkgver}-${pkgrel}"
26 local docdir="/usr/share/doc/${pkgname}-${pkgver}-${pkgrel}"
27 local examplesdir=${docdir}/etc-examples
29 msg "Building Source ..."
30 cd "${srcdir}/${pkgname}-${pkgver}/src" || return 1
31 ./configure --prefix=/usr --sysconfdir=/etc --use-ssl-crypto --examplesdir=${examplesdir} || return 1 # use libssl
32 #./configure --prefix=/usr --sysconfdir=/etc --examplesdir=${examplesdir} || return 1 # use libgcrypt
35 #msg "Building Manpages ..."
36 #make manpage || return 1
38 msg "Tweaking example for Arch ..."
39 patch -p0 -d ../etc/uanytun/ < ${srcdir}/examples.patch
41 msg "Installing ${pkgname} ..."
42 make install DESTDIR="${pkgdir}"
43 mv ${pkgdir}/etc/init.d/ ${pkgdir}/etc/rc.d/
44 install -Dm 644 ../README ${pkgdir}${docdir}/README
45 install -Dm 644 ../ChangeLog ${pkgdir}${docdir}/ChangeLog
46 install -Dm 644 ../AUTHORS ${pkgdir}${docdir}/AUTHORS