blob: e4b2b77f47352abb44e256116636441e346e996e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Bernhard Tittelbach <xro -at- realraum -dot- at>
pkgname="uanytun"
pkgver="0.3.1"
pkgrel=2
pkgdesc="tiny secure anycast tunneling protocol implementation for flexible and fault-tolerant VPNs"
arch=("i686" "x86_64")
url="http://www.anytun.org/"
license=('GPL3')
groups=()
depends=(openssl glibc)
#depends=(libgcrypt glibc)
makedepends=(make asciidoc gcc)
provides=()
conflicts=()
replaces=()
backup=()
options=(docs zipman ccache distcc)
install=uanytun.install
source=("http://www.anytun.org/download/$pkgname-$pkgver.tar.gz" "examples.patch")
noextract=()
md5sums=('7923882da9b97559d5f2074f5d5f8dee'
'6b99e9299fdf81ef647bf4fe958f8779')
build() {
local sharedir="/usr/share/${pkgname}-${pkgver}-${pkgrel}"
local docdir="/usr/share/doc/${pkgname}-${pkgver}-${pkgrel}"
local examplesdir=${docdir}/etc-examples
msg "Building Source ..."
cd "${srcdir}/${pkgname}-${pkgver}/src" || return 1
./configure --prefix=/usr --sysconfdir=/etc --use-ssl-crypto || return 1 # use libssl
#./configure --prefix=/usr --sysconfdir=/etc || return 1 # use libgcrypt
make || return 1
msg "Building Manpages ..."
make manpage || return 1
msg "Tweaking example for Arch ..."
patch -p0 -d ../etc/uanytun/ < ${srcdir}/examples.patch
msg "Installing ${pkgname} ..."
install -Dm 755 uanytun ${pkgdir}/usr/sbin/uanytun
make install-man DESTDIR="${pkgdir}"
mkdir -p ${pkgdir}/etc/uanytun &>/dev/null
install -Dm 755 ../etc/init.d/uanytun ${pkgdir}/etc/rc.d/uanytun
install -Dm 644 ../README ${pkgdir}${docdir}/README
install -Dm 644 ../ChangeLog ${pkgdir}${docdir}/ChangeLog
install -Dm 644 ../AUTHORS ${pkgdir}${docdir}/AUTHORS
mkdir -p ${pkgdir}${examplesdir}
cp -a ../etc/uanytun ${pkgdir}${examplesdir}/
}
|