blob: 5bab3868862e4827b66a86d0f74d5177a3bc26d9 (
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
|
# Maintainer: Gabor Pali <pali.gabor@gmail.com>
pkgname='mDNSResponder'
pkgver=1790.60.25
pkgrel=0
pkgdesc='Bonjour (zero-configuration networking) by Apple'
arch="x86_64"
url='https://opensource.apple.com/tarballs/mDNSResponder/'
license="APACHE-2.0 BSD3"
makedepends="musl-nscd-dev mbedtls-dev"
depends=
install=
options="!check !strip"
source="https://github.com/apple-oss-distributions/mDNSResponder/archive/refs/tags/$pkgname-$pkgver.tar.gz
mdnsresponderposix.initd
mdnsresponderposix.confd"
_srcdir="$srcdir"/"$pkgname"-"$pkgname"-"$pkgver"
_bins="mDNSResponderPosix"
build() {
make -j 1 -C "$_srcdir"/mDNSPosix os=linux SAResponder
}
package() {
mkdir -p \
"$pkgdir"/usr/bin \
"$pkgdir"/etc/conf.d \
"$pkgdir"/etc/init.d
cd "$_srcdir"/mDNSPosix/build/prod
for i in $_bins; do
install -m755 "$i" "$pkgdir"/usr/bin/"$i" || return 1
strip "$pkgdir"/usr/bin/"$i" || return 1
done
cd "$srcdir"
for i in *.initd; do
install -m755 "$i" "$pkgdir"/etc/init.d/"${i%.*}" || return 1
done
for i in *.confd; do
install -m644 "$i" "$pkgdir"/etc/conf.d/"${i%.*}" || return 1
done
}
sha512sums="
b2f9c6c79c6e8855a326379f97b1c7efe3fd971e28357035a85482e441d9024a3deb0bd34818749ac3bd3768dc4ce0da733617fe70209449d4ffa6e8db37acc4 mDNSResponder-1790.60.25.tar.gz
d2f8359164f4aa1d4c881a5ad4b9a53a44df71ab6c7a57adbeda42cfd7339a7d1f860850df894d9a1f74d1989d012c83733ebfb9a891bdf410cd45fcf47ec1a6 mdnsresponderposix.initd
b53af6a0a1351bd328a54fc8826350340371ad3134fc4131d3a8d1b0e016cf074141a89e515054b2119dc0eff84c609a0b7c422669c3fa00a17d2460140bc24f mdnsresponderposix.confd
"
|