aboutsummaryrefslogblamecommitdiffstats
path: root/main/tinc/APKBUILD
blob: c3a1017f692a4e9aa4013bf6462d0e0e2adaa6f1 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   

             

                                                        
          

               
                                          




































                                                                         
                                                             


                                                
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tinc
pkgver=1.0.21
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="d7bc9ca38672c9da08d74ff2a3e8e36d  tinc-1.0.21.tar.gz
89d104d38bab84d6f92d27464e48628d  tincd.initd
96d8778284637fa7790a4c6239a72070  tincd.lo.initd
475d64d9aa410ec7e91f5b079800abc9  tinc.networks"