Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#2711 - bind utilities should be independent of bind

Attached to Project: Arch Linux
Opened by Mario Vazquez (darkcoder) - Friday, 06 May 2005, 22:35 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 08 May 2005, 12:25 GMT
Task Type Feature Request
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Right now if the user need any of the bind related tools like nslookup, host, or dig, it must install the complete bind package, adding a daemon that probably will never use. I made some changes to the current bind-9.3.1-1 PKGBUILD and separate the bind dig utilities from the main daemon.

A new patch that removes dig folder from the Makefile.in is included.

#------------ bind pkgbuild revised --------------
pkgname=bind
pkgver=9.3.1
pkgrel=1
pkgdesc="Berkeley Internet Name Domain - BIND DNS server"
backup=(etc/named.conf etc/logrotate.d/named /etc/rndc.key)
depends=('openssl' 'bind-tools')
provides=('dns-server')
install=bind.install
source=(ftp://ftp.isc.org/isc/bind9/$pkgver/$pkgname-$pkgver.tar.gz \
named.conf localhost.zone 127.0.0.zone named root.hint named.logrotate \ notools.patch)
md5sums=('9ff3204eea27184ea0722f37e43fc95d' 'e0c36a680fed2ffcc2d2b16aa03be456'\
'ab5beef0b41eb6376c7f1f4ee233172b' 'bdbdfe4990b0903984306dd14f98b951'\
'e13658e2143ad323845b6d73ddd110b1' 'c7202ed4c5afa91b0a25f05e93b33ba6'\
'2ba26270bf2078a2d259977ea7d222df' '90983c6f667ee9e4eefd2693aabc668e')

build() {
cd $startdir/src/$pkgname-$pkgver
patch -p1 -i ../notools.patch
./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --with-libtool --enable-shared \
--disable-threads --with-openssl=yes
make || return 1
make DESTDIR=$startdir/pkg install
install -D -m755 ../named $startdir/pkg/etc/rc.d/named
install -D -m644 ../named.conf $startdir/pkg/etc/named.conf
install -D -m600 ../127.0.0.zone $startdir/pkg/var/named/127.0.0.zone
install -D -m600 ../localhost.zone $startdir/pkg/var/named/localhost.zone
install -D -m600 ../root.hint $startdir/pkg/var/named/root.hint
install -D -m600 ../named.logrotate $startdir/pkg/etc/logrotate.d/named
# adjust ownerships (our named user will be uid/gid 40/40)
chown -R 40.40 $startdir/pkg/var/named
install -d -m755 -o40 -g40 $startdir/pkg/var/run/named
}


notoos.path as needed by this new pkgbuild
-------cut from here--------------------------------
--- bind-9.3.1/bin/Makefile.in.orig 2005-05-06 01:52:36.000000000 -0400
+++ bind-9.3.1/bin/Makefile.in 2005-05-06 01:53:24.000000000 -0400
@@ -19,7 +19,7 @@
VPATH = @srcdir@
top_srcdir = @top_srcdir@

-SUBDIRS = named rndc dig dnssec tests nsupdate check
+SUBDIRS = named rndc dnssec tests nsupdate check
TARGETS =

@BIND9_MAKE_RULES@
------to here---------------------------------------


----------------------------------------------------
Files below this point are from bind-tools
----------------------------------------------------
bind-tools pkgbuild
# Contributor: mario <mario_vazq@hotmail.com>
pkgname=bind-tools
pkgver=9.3.1
pkgrel=1
pkgdesc="Berkeley Internet Name Domain (BIND) utilities dig host nslookup"
backup=()
depends=('')
provides=('')
install=
source=(ftp://ftp.isc.org/isc/bind9/$pkgver/bind-$pkgver.tar.gz \
tools-only.patch)
md5sums=('9ff3204eea27184ea0722f37e43fc95d' '329f7e15b8c45d3efefdf5b559bb878a')

build() {
cd $startdir/src/bind-$pkgver
patch -p1 -i ../tools-only.patch || return 1
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
cd bin/dig
mkdir -p $startdir/pkg/usr/{bin,man/man1}
gzip dig.1 host.1 nslookup.1
install -m755 {dig,host,nslookup} $startdir/pkg/usr/bin
install -m644 {dig.1.gz,host.1.gz,nslookup.1.gz} $startdir/pkg/usr/man/man1
}


tools-only.patch
------cut from here -------------------------
--- bind-9.3.1/bin/Makefile.in.orig 2005-05-06 01:52:36.000000000 -0400
+++ bind-9.3.1/bin/Makefile.in 2005-05-06 01:53:24.000000000 -0400
@@ -19,7 +19,7 @@
VPATH = @srcdir@
top_srcdir = @top_srcdir@

-SUBDIRS = named rndc dig dnssec tests nsupdate check
+SUBDIRS = dig nsupdate
TARGETS =

@BIND9_MAKE_RULES@
--- bind-9.3.1/lib/Makefile.in.orig 2005-05-06 02:05:12.000000000 -0400
+++ bind-9.3.1/lib/Makefile.in 2005-05-06 02:05:35.000000000 -0400
@@ -23,7 +23,7 @@
# Attempt to disable parallel processing.
.NOTPARALLEL:
.NO_PARALLEL:
-SUBDIRS = isc isccc dns isccfg bind9 lwres tests
+SUBDIRS = isc dns isccfg bind9 lwres
TARGETS =

@BIND9_MAKE_RULES@
----------- up to here --------------------------
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 04 November 2005, 13:32 GMT
Reason for closing:  Implemented
Additional comments about closing:  Implemented. The bind-tools package is named dnsutils however, since they're common dns utils.

Loading...