aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/s6-networking/template
blob: 133dc65c5697a65297232746e54285785c2027ee (plain) (blame)
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
# Template file for 's6-networking'
pkgname=s6-networking
version=2.5.1.3
revision=1
build_style=configure
configure_args="--libdir=/usr/lib $(vopt_if libtls --enable-ssl=libtls)
 $(vopt_if bearssl --enable-ssl=bearssl)
 --with-sysdeps=${XBPS_CROSS_BASE}/usr/lib/skalibs/sysdeps
 --with-lib=${XBPS_CROSS_BASE}/usr/lib --bindir=/usr/bin
 $(vopt_if static --enable-static-libc)"
makedepends="execline-devel $(vopt_if libtls libtls-devel) skalibs-devel
 s6-devel s6-dns-devel $(vopt_if bearssl bearssl-devel)"
short_desc="Suite of small network utilities for Unix systems"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://skarnet.org/software/s6-networking"
changelog="https://skarnet.org/software/s6-networking/upgrade.html"
distfiles="${homepage}/${pkgname}-${version}.tar.gz"
checksum=a09e43c959ff9e0caa8ff4002608e73c0f57f87f04a8d9c24e6c9afefe45e977

build_options="bearssl libtls static"
build_options_default="bearssl"
desc_option_bearssl="Use BearSSL as SSL library"
desc_option_libtls="Use LibreSSL as SSL library"
vopt_conflict bearssl libtls

case "$XBPS_TARGET_MACHINE" in
	*-musl)
		makedepends+=" nsss-devel"
		configure_args+=" --enable-nsss --with-include=${XBPS_CROSS_BASE}/usr/include/nsss"
		;;
esac

post_install() {
	vlicense COPYING
	vdoc README
	vcopy "doc/*" usr/share/doc/${pkgname}
}

s6-networking-doc_package() {
	short_desc+=" - documentation"
	depends="${sourcepkg}>=${version}_${revision} s6-networking-man-pages"
	pkg_install() {
		vmove usr/share/doc
	}
}
s6-networking-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision} skalibs-devel
	 $(vopt_if libtls libtls-devel) $(vopt_if bearssl bearssl-devel)"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
	}
}