aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipsec-tools/APKBUILD
blob: cb5d7eae6b2afc443cddf2a60aade97f20b16917 (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
68
69
70
71
72
73
74
75
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ipsec-tools
pkgver=0.8.2
pkgrel=8
pkgdesc="User-space IPsec tools for various IPsec implementations"
url="http://ipsec-tools.sourceforge.net/"
arch="all"
license="BSD"
depends=""
makedepends="linux-headers bsd-compat-headers openssl-dev bison flex
	autoconf automake libtool"
subpackages="$pkgname-doc $pkgname-dev"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	racoon.initd
	racoon.confd
	20-grekey-support.patch
	50-reverse-connect.patch
	70-defer-isakmp-ident-handling.patch
	75-racoonctl-rcvbuf.patch
	90-dead-on-initial-contact.patch
	musl-cdefs.patch
	fix-yywrap.patch
	ipsec-tools-openssl-1.1.patch
	disable-Werror.patch
	"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	default_prepare
	touch AUTHORS
	autoreconf -vif -I.
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var/lib \
		--with-kernel-headers=/usr/include \
		--disable-security-context \
		--enable-adminport \
		--enable-dpd \
		--enable-frag \
		--enable-hybrid \
		--enable-ipv6 \
		--enable-natt
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	install -D -m755 ../racoon.initd "$pkgdir"/etc/init.d/racoon
	install -D -m644 ../racoon.confd "$pkgdir"/etc/conf.d/racoon
}

sha512sums="6cf4f1da7b461127e75f87fba8349f46b879f8bca179ae1cb27b2e011045753460c5edddbe8ba5892d6a28a021a0a01a9ff9fdb0f5da451519859570d748b9f2  ipsec-tools-0.8.2.tar.gz
2a5e723779be12dce45fc315a948b440fbf7fba9547b7c0a019d31a529a52d694b09ab823af8bd36aa15b6ad5c059fdd7650620ed6647f1b730fdf6a105b7ca6  racoon.initd
61c285e63a21e4162efa058d91cc061ad0a8387a7e6f654151f31bac757cdd250247c1be6776e1f04edea223dfb56d015285459ab5bbfd6218bfe3e51b861576  racoon.confd
22b79d5906dd4c5e740655303fe88fbdc2596cfbd057347cc303f8cfdd22f83fe61098613127d78030e3098335be83f46fe6d4dd5c2ebc8dd93ed94b7904812c  20-grekey-support.patch
2e111e0388a5e94ffa87483eac8c0b38fff1ba44d79c3db7438b3d03010db6334861acffecf044ebd3953f062230b528c34a05d38cf6831f5ebece0a307fb776  50-reverse-connect.patch
00ea3fb4b2ac91a550aaaffe53a29cc22f37f713052e2c5aee1bada6bcbc55b55ebe577f3df1ab09b314e99a45fd322152c2858263173cff17ff17993007b042  70-defer-isakmp-ident-handling.patch
b65fbb7b8af6863f6dcb0b1cf5a6c856deb62a50f2b19455740340c4c453f5800335bc3b89509de06fc9bc21aa8db16f9eff579aa10b0762bb649ab891a06bfb  75-racoonctl-rcvbuf.patch
9719f7854ff5d37cb927fc6dd23241ade2c031ae7f3eaf14b41613c3f2139c7a237c739cc1df50a954b349f1c75e0992302cce6a7a551c139f4b9c5fcd376b1b  90-dead-on-initial-contact.patch
3794055d05883ea4c0cb4822248373c2e1e37e871ef8cd9ede07ad3d212422342e9ebefb4684e312793f0c509b9e35c0ad7c6453baadc33fbd5fc01e5fc96de9  musl-cdefs.patch
568e64288e4c15fc0b1221ce9fa2e88c234e36d5c1e366b8c52b39171aa319d99843817c1d3c0b8517b638474289e4a113220903f319806a6365115585feffc0  fix-yywrap.patch
60c50aa09753d22c6572661058b42dca8bbb43dc3f64519ef9ad808b8b3d4a5bcfc31d5e0af70e3d71e89c589c901c1da07ad96a2663bdb21557dad7b5aa732d  ipsec-tools-openssl-1.1.patch
45cd7c76e2b8ded08fc0e3d73e14ed12fdac02be091db9a9ea25d753d655c40c3facc4ce7376bfc4316fc921bd979c686114c31c77a8465aa38f55c2edff775b  disable-Werror.patch"