OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael van Elst Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src openpkg-web openpkg$ Date: 29-Jan-2003 13:09:03 Branch: HEAD Handle: 2003012912090002 Added files: openpkg-re/vcheck vc.djbdns openpkg-src/djbdns djbdns.patch djbdns.spec djbdnssetup rc.djbdns Modified files: openpkg-web news.txt Log: initial release, requires the gorgeous DJB environment to run Summary: Revision Changes Path 1.1 +9 -0 openpkg-re/vcheck/vc.djbdns 1.1 +31 -0 openpkg-src/djbdns/djbdns.patch 1.1 +131 -0 openpkg-src/djbdns/djbdns.spec 1.1 +29 -0 openpkg-src/djbdns/djbdnssetup 1.1 +25 -0 openpkg-src/djbdns/rc.djbdns 1.3093 +1 -0 openpkg-web/news.txt ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-re/vcheck/vc.djbdns ============================================================================ $ cvs diff -u -r0 -r1.1 vc.djbdns --- /dev/null 2003-01-29 13:09:01.000000000 +0100 +++ vc.djbdns 2003-01-29 13:09:01.000000000 +0100 @@ -0,0 +1,9 @@ +config = { +} + +prog djbdns = { + version = 1.05 + url = http://cr.yp.to/djbdns/install.html + regex = djbdns-(__VER__)\.tar\.gz +} + @@ . patch -p0 <<'@@ .' Index: openpkg-src/djbdns/djbdns.patch ============================================================================ $ cvs diff -u -r0 -r1.1 djbdns.patch --- /dev/null 2003-01-29 13:09:02.000000000 +0100 +++ djbdns.patch 2003-01-29 13:09:02.000000000 +0100 @@ -0,0 +1,31 @@ +--- hier.c.orig Thu Dec 28 16:35:18 2000 ++++ hier.c Thu Dec 28 16:35:49 2000 +@@ -2,7 +2,7 @@ + + void hier() + { +- c("/","etc","dnsroots.global",-1,-1,0644); ++ c(auto_home,"etc/djbdns","dnsroots.global",-1,-1,0644); + + h(auto_home,-1,-1,02755); + d(auto_home,"bin",-1,-1,02755); +--- dnscache-conf.c.orig Thu Dec 28 16:36:17 2000 ++++ dnscache-conf.c Thu Dec 28 16:38:03 2000 +@@ -89,13 +89,13 @@ + if (chdir(auto_home) == -1) + strerr_die4sys(111,FATAL,"unable to switch to ",auto_home,": "); + +- fdrootservers = open_read("/etc/dnsroots.local"); ++ fdrootservers = open_read("etc/djbdns/dnsroots.local"); + if (fdrootservers == -1) { + if (errno != error_noent) +- strerr_die2sys(111,FATAL,"unable to open /etc/dnsroots.local: "); +- fdrootservers = open_read("/etc/dnsroots.global"); ++ strerr_die4sys(111,FATAL,"unable to open ",auto_home,"/etc/djbdns/dnsroots.local: "); ++ fdrootservers = open_read("etc/djbdns/dnsroots.global"); + if (fdrootservers == -1) +- strerr_die2sys(111,FATAL,"unable to open /etc/dnsroots.global: "); ++ strerr_die4sys(111,FATAL,"unable to open ",auto_home,"/etc/djbdns/dnsroots.global: "); + } + + init(dir,FATAL); @@ . patch -p0 <<'@@ .' Index: openpkg-src/djbdns/djbdns.spec ============================================================================ $ cvs diff -u -r0 -r1.1 djbdns.spec --- /dev/null 2003-01-29 13:09:02.000000000 +0100 +++ djbdns.spec 2003-01-29 13:09:02.000000000 +0100 @@ -0,0 +1,131 @@ +## +## djbdns.spec -- OpenPKG RPM Specification +## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH +## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/> +## Copyright (c) 2000-2003 Ralf S. Engelschall <[EMAIL PROTECTED]> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +%define V_djbdns 1.05 +%define V_manual 20021211 + +# package information +Name: djbdns +Summary: Collection of Domain Name System tools +URL: http://cr.yp.to/djbdns.html +Vendor: D. J. Berstein +Packager: The OpenPKG Project +Distribution: OpenPKG [EVAL] +Group: Misc +License: GPL +Version: %{V_djbdns} +Release: 20030129 + +# list of sources +Source0: http://cr.yp.to/djbdns/djbdns-%{V_djbdns}.tar.gz +Source1: http://smarden.org/pape/djb/manpages/djbdns-%{V_djbdns}-man-%{V_manual}.tar.gz +Source2: rc.djbdns +Source3: djbdnssetup +Patch0: djbdns.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20030103 +PreReq: OpenPKG, openpkg >= 20030103 +AutoReq: no +AutoReqProv: no + +%description + djbdns is a collection of Domain Name System tools. + +%prep + %setup0 -q + %setup1 -q -a 1 + %patch -p0 + +%build + echo %{l_cc} %{l_cppflags} >conf-cc + echo %{l_cc} %{l_ldflags} >conf-ld + echo %{l_prefix} >conf-home + %{l_make} %{l_mflags -O} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin \ + $RPM_BUILD_ROOT%{l_prefix}/sbin \ + $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ + $RPM_BUILD_ROOT%{l_prefix}/etc/djbdns \ + $RPM_BUILD_ROOT%{l_prefix}/var/djbdns \ + $RPM_BUILD_ROOT%{l_prefix}/libexec/djbdns/bin \ + $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ + $RPM_BUILD_ROOT%{l_prefix}/man/man5 \ + $RPM_BUILD_ROOT%{l_prefix}/man/man8 + for f in \ + axfr-get cachetest dnsfilter dnsip dnsipq dnsmx dnsname \ + dnsq dnsqr dnstrace dnstxt pickdns-data random-ip rbldns-data \ + tinydns-data tinydns-edit tinydns-get ; do + %{l_shtool} install -c -s -m 755 \ + $f \ + $RPM_BUILD_ROOT%{l_prefix}/bin + done + for f in \ + axfrdns-conf dnscache-conf pickdns-conf rbldns-conf \ + tinydns-conf walldns-conf ; do + %{l_shtool} install -c -s -m 755 \ + $f \ + $RPM_BUILD_ROOT%{l_prefix}/sbin + done + for f in \ + axfrdns dnscache pickdns rbldns tinydns walldns ; do + %{l_shtool} install -c -s -m 755 \ + $f \ + $RPM_BUILD_ROOT%{l_prefix}/libexec/djbdns/bin/ + done + %{l_shtool} install -c -m 644 \ + dnsroots.global $RPM_BUILD_ROOT%{l_prefix}/etc/djbdns/ + for i in 1 5 8; do + for f in djbdns-man/*.$i; do + %{l_shtool} install -c -m 644 \ + $f $RPM_BUILD_ROOT%{l_prefix}/man/man$i/ + done + done + %{l_shtool} install -c -m 755 \ + -e 's;@l_prefix@;%{l_prefix};g' \ + -e 's;@l_rusr@;%{l_rusr};g' \ + -e 's;@l_rgrp@;%{l_rgrp};g' \ + %{SOURCE rc.djbdns} \ + $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d + %{l_shtool} install -c -m 755 \ + -e 's;@l_prefix@;%{l_prefix};g' \ + -e 's;@l_rusr@;%{l_rusr};g' \ + -e 's;@l_rgrp@;%{l_rgrp};g' \ + %{SOURCE djbdnssetup} \ + $RPM_BUILD_ROOT%{l_prefix}/sbin + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ + %{l_files_std} \ + '%attr(0700,%{l_susr},%{l_sgrp}) %{l_prefix}/sbin/djbdnssetup' + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . patch -p0 <<'@@ .' Index: openpkg-src/djbdns/djbdnssetup ============================================================================ $ cvs diff -u -r0 -r1.1 djbdnssetup --- /dev/null 2003-01-29 13:09:02.000000000 +0100 +++ djbdnssetup 2003-01-29 13:09:03.000000000 +0100 @@ -0,0 +1,29 @@ +#!/bin/sh + +PATH=/bin:/usr/bin + +if [ $# -lt 1 -o $# -gt 2 ]; then + echo "usage: $0 resolve_ip [serve_ip]" + exit 1 +fi + +resolve_ip=$1 +serve_ip=$2 + +rm -r @l_prefix@/var/djbdns/dnscache +@l_prefix@/sbin/dnscache-conf @l_rusr@ @l_rusr@ \ + @l_prefix@/var/djbdns/dnscache \ + $resolve_ip + +if [ x"$serve_ip" != x ]; then + rm -rf @l_prefix@/var/djbdns/tinydns + @l_prefix@/sbin/tinydns-conf @l_rusr@ @l_rusr@ \ + @l_prefix@/var/djbdns/tinydns \ + $serve_ip + + rm -rf @l_prefix@/var/djbdns/axfrdns + @l_prefix@/sbin/axfrdns-conf @l_rusr@ @l_rusr@ \ + @l_prefix@/var/djbdns/axfrdns \ + @l_prefix@/var/djbdns/tinydns \ + $serve_ip +fi @@ . patch -p0 <<'@@ .' Index: openpkg-src/djbdns/rc.djbdns ============================================================================ $ cvs diff -u -r0 -r1.1 rc.djbdns --- /dev/null 2003-01-29 13:09:02.000000000 +0100 +++ rc.djbdns 2003-01-29 13:09:03.000000000 +0100 @@ -0,0 +1,25 @@ +#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc +## +## rc.djbdns -- djbdns Run-Commands +## + +%config + djbdns_enable="yes" + +%start -p 200 -u root + opServiceEnabled djbdns || exit 0 + echo "Don't know how to start djbdns" + exit 1 + +%stop -p 200 -u root + opServiceEnabled djbdns || exit 0 + echo "Don't know how to stop djbdns" + exit 1 + +%restart -u root + opServiceEnabled djbdns || exit 0 + echo "Don't know how to restart djbdns" + exit 1 + +%daily -u root + opServiceEnabled djbdns || exit 0 @@ . patch -p0 <<'@@ .' Index: openpkg-web/news.txt ============================================================================ $ cvs diff -u -r1.3092 -r1.3093 news.txt --- openpkg-web/news.txt 29 Jan 2003 09:34:36 -0000 1.3092 +++ openpkg-web/news.txt 29 Jan 2003 12:09:01 -0000 1.3093 @@ -1,3 +1,4 @@ +29-Jan-2003: New package: P<djbdns-1.05-20030129> 29-Jan-2003: Upgraded package: P<vim-6.1.309-20030129> 29-Jan-2003: Upgraded package: P<perl-util-20030129-20030129> 29-Jan-2003: Upgraded package: P<epm-3.5.1-20021029> @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]