blob: b12b56d0f140041047921d409bc6c295ae8db698 (
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
|
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=fastd
pkgver=18
pkgrel=1
pkgdesc="Fast and Secure Tunneling Daemon"
url="https://projects.universe-factory.net/projects/fastd"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev cmake doxygen bison bsd-compat-headers
linux-headers libsodium-dev libcap-dev libuecc-dev json-c-dev"
install=""
subpackages="$pkgname-doc"
source="http://git.universe-factory.net/${pkgname}/snapshot/${pkgname}-${pkgver}.tar
fastd.conf
fastd.initd"
builddir="$srcdir/${pkgname}-${pkgver}"
build() {
mkdir "$builddir"/build && cd "$builddir"/build
cmake \
-D CMAKE_AR=/usr/bin/ar \
-D CMAKE_RANLIB=/usr/bin/ranlib \
-D CMAKE_NM=/usr/bin/nm \
-D CMAKE_INSTALL_PREFIX=/usr \
-D ENABLE_SYSTEMD=OFF \
-D WITH_CIPHER_AES128_CTR_NACL=OFF \
..
make || return 1
}
package() {
cd "$builddir"
make -C build install DESTDIR="$pkgdir" || return 1
install -Dm644 COPYRIGHT \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
install -Dm644 doc/fastd.1 \
"$pkgdir"/usr/share/man/man1/fastd.1
install -dm700 "$pkgdir"/etc/fastd/peers/
install -Dm600 "$srcdir"/fastd.conf \
"$pkgdir"/etc/fastd/fastd.conf || return 1
install -Dm755 "$srcdir"/fastd.initd \
"$pkgdir"/etc/init.d/fastd || return 1
}
sha512sums="b732e8c083a5a35b7995f511673a3637d1f2b4893824867338dbeb06a73d8b7fd5658a7e459d1f44f1f247f06850c7720e2674c5a78a6b188334b35be352b2d0 fastd-18.tar
3e6c3a77f93a1e670e8f018833c499e8ec57b8240a6f472da03254ad9a7e6fed2c3459fa47b06c97e42afcfe6f0adfaaec39bce6b6a286a1ce7ef3585853b118 fastd.conf
e64b0c548cf063624ac0b632bac672c5f204586aa03aa9b06afc46f48645f1458e2400e98ee993c74aa5da3a9e86c4151e2e29c634ee59941cd81a216cea308a fastd.initd"
|