Commit f7460473 authored by Natanael Copa's avatar Natanael Copa

extra/djbdns: new style install scripts

parent 3080bd24
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=djbdns
pkgver=1.05
pkgrel=23
pkgrel=24
pkgdesc="Excellent high-performance DNS services"
url="http://cr.yp.to/djbdns.html"
license="public-domain"
......@@ -13,10 +13,10 @@ source="http://cr.yp.to/djbdns/$pkgname-$pkgver.tar.gz
dnstracesort.patch
$pkgver-errno.patch
$pkgver-response.patch
tinydns.install
tinydns.pre-install
tinydns.initd
tinydns.confd
dnscache.install
dnscache.pre-install
dnscache.initd
dnscache.confd
"
......@@ -45,7 +45,7 @@ build() {
tinydns() {
pkgdesc="A small and secure DNS server"
install=tinydns.install
install=tinydns.pre-install
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/etc/tinydns \
"$subpkgdir"/var/cache/tinydns
mv "$pkgdir"/usr/bin/tinydns* "$subpkgdir"/usr/bin
......@@ -57,7 +57,7 @@ tinydns() {
dnscache() {
pkgdesc="A recursive resolver"
install=dnscache.install
install=dnscache.pre-install
mkdir -p "$subpkgdir"/usr/bin \
"$subpkgdir"/etc/dnscache/ip \
"$subpkgdir"/etc/dnscache/servers
......@@ -78,9 +78,9 @@ dfd675b2775efcbb604413a84db8bf1a dnsroots.patch
6fe7f473233f1c86b76261afd8345bf0 dnstracesort.patch
c7be73fe2fb4ae02d5096fa2c1f55a68 1.05-errno.patch
1292500c04baba3995d9753fe40fdc94 1.05-response.patch
2e1cd0923248120f8d066967781538be tinydns.install
7695bf50559c09798ec852b578ac8698 tinydns.pre-install
d7be449f5f90457ba785aebb1cadbf88 tinydns.initd
7dcf6674c07d46c736b3c25d9c92384a tinydns.confd
6f42e0c25d35ccf7b0af5f26aea04f55 dnscache.install
e09c3a6ba6917e16f4736ab5c070dbe9 dnscache.pre-install
e368a86ddc320937d663dd47684ba410 dnscache.initd
e2938593277d7a87806e70e145a90c3f dnscache.confd"
#!/bin/sh
case "$1" in
pre_install)
adduser -h /etc/dnscache -g dnscache -s /bin/false -H -D \
dnscache 2>/dev/null
;;
esac
exit 0
#!/bin/sh
adduser -h /etc/dnscache -g dnscache -s /bin/false -H -D dnscache 2>/dev/null
exit 0
#!/bin/sh
case "$1" in
pre_install)
adduser -h /etc/tinydns -g tinydns -s /bin/false -H -D \
tinydns 2>/dev/null
;;
esac
exit 0
#!/bin/sh
adduser -h /etc/tinydns -g tinydns -s /bin/false -H -D tinydns 2>/dev/null
exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment