2015-02-24 14:38:40 +01:00
|
|
|
# Template file for 'mDNSResponder'
|
|
|
|
pkgname=mDNSResponder
|
|
|
|
version=561.1.1
|
2015-02-24 16:28:28 +01:00
|
|
|
revision=3
|
2015-02-24 14:38:40 +01:00
|
|
|
hostmakedepends="flex"
|
|
|
|
short_desc="Implements the Bonjour/Zeroconf protocol"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="Apache-2.0, 3-clause-BSD"
|
|
|
|
homepage="http://opensource.apple.com/"
|
|
|
|
distfiles="http://opensource.apple.com/tarballs/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
|
|
checksum=217ca717149b999a34c568913e4721beef96ac7ab93db8a012e68ffe816530d9
|
|
|
|
|
|
|
|
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-24 14:48:44 +01:00
|
|
|
make os=linux HAVE_IPV6=1 CC=$CC LD="$CC -shared" CFLAGS_DEBUG="$CFLAGS" STRIP=echo
|
2015-02-24 14:38:40 +01:00
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
cd mDNSPosix
|
|
|
|
vman nss_mdns.conf.5
|
|
|
|
vman libnss_mdns.8
|
2015-02-24 16:28:28 +01:00
|
|
|
for f in mdnsd dnsextd; do
|
2015-02-24 14:38:40 +01:00
|
|
|
vbin build/prod/$f
|
|
|
|
done
|
|
|
|
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
|
|
|
|
# runit services
|
|
|
|
vsv mdnsd
|
|
|
|
vsv dnsextd
|
|
|
|
}
|