aboutsummaryrefslogtreecommitdiffstats
path: root/main/s6-networking/APKBUILD
blob: 2c34eb9e7652d809953e3a47a7c7cb0820761766 (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
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: John Regan <john@jrjrtech.com>
pkgname=s6-networking
pkgver=2.2.0.0
pkgrel=1
pkgdesc="skarnet.org's UCSPI Unix and TCP tools, access control tools, and network time management utilities."
url="http://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
depends="skalibs execline s6 s6-dns"
depends_dev="skalibs-dev execline-dev s6-dev s6-dns-dev"
makedepends="skalibs-dev execline-dev s6-dev s6-dns-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--prefix=/usr \
		--libexecdir="/usr/lib/$pkgname" \
		--with-dynlib=/lib \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/doc"
	cp -a "$_builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}

md5sums="5f45aa8839bd0486a2a55e41fa3cb1a3  s6-networking-2.2.0.0.tar.gz"
sha256sums="457d956bb6463ee029af4ce74aa68a88cf238ecfe2123eef50ad5d11502a6e3d  s6-networking-2.2.0.0.tar.gz"
sha512sums="34979d486404d43cdfdc5e7a496898c04449c00f735a1d7b052b6beb4b3cc5a005d5aea94b99a28d9e0feb02fd150994603883c5ba8c508598b3ffb6bd655efb  s6-networking-2.2.0.0.tar.gz"