2015-02-24 14:38:40 +01:00
|
|
|
# Template file for 'mDNSResponder'
|
|
|
|
pkgname=mDNSResponder
|
2015-03-18 07:16:56 +01:00
|
|
|
version=567
|
|
|
|
revision=1
|
2015-02-24 14:38:40 +01:00
|
|
|
hostmakedepends="flex"
|
|
|
|
short_desc="Implements the Bonjour/Zeroconf protocol"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2015-02-24 14:38:40 +01:00
|
|
|
license="Apache-2.0, 3-clause-BSD"
|
|
|
|
homepage="http://opensource.apple.com/"
|
|
|
|
distfiles="http://opensource.apple.com/tarballs/${pkgname}/${pkgname}-${version}.tar.gz"
|
2015-03-18 07:16:56 +01:00
|
|
|
checksum=3239d9bb1e1e017be1ae12cff90802194b6e0312de628a1f324530b00b833018
|
2015-02-24 14:38:40 +01:00
|
|
|
|
2015-02-25 09:16:45 +01:00
|
|
|
conf_files="/etc/nss_mdns.conf"
|
2015-02-24 14:38:40 +01:00
|
|
|
conflicts="nss-mdns>=0"
|
|
|
|
|
|
|
|
do_build() {
|
2015-02-24 14:48:44 +01:00
|
|
|
sed -i "s,cc ,$CC ,g" Clients/Makefile
|
2015-02-24 14:38:40 +01:00
|
|
|
cd mDNSPosix
|
2015-02-25 09:16:45 +01:00
|
|
|
sed -i 's,/var/run,/run,g' Makefile
|
2015-03-05 10:00:22 +01:00
|
|
|
make os=linux HAVE_IPV6=1 CC=$CC LD="$CC -shared $LDFLAGS" CFLAGS_DEBUG="$CFLAGS $CPPFLAGS" STRIP=echo
|
2015-02-24 14:38:40 +01:00
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
cd mDNSPosix
|
2015-02-25 10:19:24 +01:00
|
|
|
# nss_mdns
|
2015-02-25 09:16:45 +01:00
|
|
|
vconf nss_mdns.conf
|
2015-02-24 14:38:40 +01:00
|
|
|
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
|
2015-02-25 10:19:24 +01:00
|
|
|
# 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
|
2015-02-24 14:38:40 +01:00
|
|
|
# runit services
|
|
|
|
vsv mdnsd
|
|
|
|
vsv dnsextd
|
|
|
|
}
|