43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'mDNSResponder'
|
|
pkgname=mDNSResponder
|
|
version=567
|
|
revision=1
|
|
hostmakedepends="flex"
|
|
short_desc="Implements the Bonjour/Zeroconf protocol"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="Apache-2.0, 3-clause-BSD"
|
|
homepage="http://opensource.apple.com/"
|
|
distfiles="http://opensource.apple.com/tarballs/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=3239d9bb1e1e017be1ae12cff90802194b6e0312de628a1f324530b00b833018
|
|
|
|
conf_files="/etc/nss_mdns.conf"
|
|
conflicts="nss-mdns>=0"
|
|
|
|
do_build() {
|
|
sed -i "s,cc ,$CC ,g" Clients/Makefile
|
|
cd mDNSPosix
|
|
sed -i 's,/var/run,/run,g' Makefile
|
|
make os=linux HAVE_IPV6=1 CC=$CC LD="$CC -shared $LDFLAGS" CFLAGS_DEBUG="$CFLAGS $CPPFLAGS" STRIP=echo
|
|
}
|
|
do_install() {
|
|
cd mDNSPosix
|
|
# nss_mdns
|
|
vconf nss_mdns.conf
|
|
vman nss_mdns.conf.5
|
|
vman libnss_mdns.8
|
|
vinstall build/prod/libdns_sd.so 755 usr/lib
|
|
vinstall build/prod/libnss_mdns-0.2.so 755 usr/lib
|
|
ln -s libnss_mdns-0.2.so ${DESTDIR}/usr/lib/libnss_mdns.so.2
|
|
# mdnsd
|
|
vbin build/prod/mdnsd
|
|
# dnsextd
|
|
vbin build/prod/dnsextd
|
|
vman ${wrksrc}/mDNSShared/dnsextd.8
|
|
# dns-sd
|
|
vbin ${wrksrc}/Clients/build/dns-sd
|
|
vman ${wrksrc}/mDNSShared/dns-sd.1
|
|
# runit services
|
|
vsv mdnsd
|
|
vsv dnsextd
|
|
}
|