aboutsummaryrefslogtreecommitdiffstats
path: root/community/tinc-pre/APKBUILD
blob: 573ed700767327a34ccc6d5a59829eb8b244effa (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=tinc-pre
_realver="1.1pre14"
pkgver=${_realver/pre/.}
pkgrel=2
pkgdesc="Virtual Private Network (VPN) daemon (pre-release)"
url="http://tinc-vpn.org/"
arch="all"
license="GPLv2"
depends=""
options="!check"
makedepends="linux-headers ncurses-dev readline-dev
	zlib-dev lzo-dev libressl-dev texinfo"
install=""
subpackages="$pkgname-doc $pkgname-gui::noarch"
source="http://tinc-vpn.org/packages/tinc-$_realver.tar.gz
	tinc-1.1-fix-paths.patch
	$pkgname.initd
	$pkgname.confd
	$pkgname.networks
	"
builddir="$srcdir/tinc-$_realver"

build() {
        cd "$builddir"
	./configure \
                --build=$CBUILD \
                --host=$CHOST \
                --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info \
                --localstatedir=/var \
                --enable-jumbograms \
                --enable-lzo \
                --enable-zlib \
		--without-systemd \
		--enable-legacy-protocol
        make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/tincd
	install -Dm644 "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/tincd
	install -Dm644 "$srcdir"/$pkgname.networks \
		"$pkgdir"/etc/conf.d/tinc.networks
}

gui() {
	# needs wxpython
	pkgdesc="$pkgdesc (Python GUI)"
	depends="python3"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/tinc-gui \
		"$subpkgdir"/usr/bin/
}

sha512sums="dfc54a91fd40826b108e9cbae43da42462eb51bb7ad16ac040cb1b262b5510eb6884b1f1dbe0541a3b1631213f70cc678593d1ba51ebdf150c3f6968030b9291  tinc-1.1pre14.tar.gz
55bd0e61a1d10a89d879d5113082f0cdb5ff6bf1d1fb3f618c459eb2658836bf602f72fe27ac03ec78746e300a3a5178db053eef6f08d3cb34b11410dbeb05de  tinc-1.1-fix-paths.patch
59811c3e5241d08ebdfbd539556b7cee0dfaab89727ad503512c98f1a696fae143ecdf2682a652c5d71d077ed254ffe2e1c442b1c305c7e7ea94d9af9a1d385e  tinc-pre.initd
f8d9354af5ebc07420ced98059262751bffef434b61c6333964338f327e2ac01ae676e375954efa794a1bccf8b939c78387b9fb7261f675f1237b0d946b529c9  tinc-pre.confd
f7cb459c170898e51176bd92c642335386db90b7bca2abb3f6eb2514546efbd74e5fd2c8845060111dd48a0dd2cc1890717a03315c9b86185047c259cdc27135  tinc-pre.networks"