diff options
58 files changed, 2328 insertions, 0 deletions
diff --git a/net-dns/bind-tools/ChangeLog b/net-dns/bind-tools/ChangeLog new file mode 100644 index 000000000000..8e910cf0e720 --- /dev/null +++ b/net-dns/bind-tools/ChangeLog @@ -0,0 +1,20 @@ +# ChangeLog for net-dns/bind-tools +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind-tools/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*bind-tools-9.2.1 (27 Jun 2002) + + 27 Jun 2002; Seemant Kulleen <seemant@gentoo.org> bind-tools-9.2.1.ebuild + files/digest-bind-tools-9.2.1 : + + Version bump by: markus-krainer@chello.at (Markus Krainer) in bug #3249 + +*bind-tools-9.1.3-r1 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/net-dns/bind-tools/bind-tools-9.2.1.ebuild b/net-dns/bind-tools/bind-tools-9.2.1.ebuild new file mode 100644 index 000000000000..074a30ab4002 --- /dev/null +++ b/net-dns/bind-tools/bind-tools-9.2.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Markus Krainer <markus-krainer@chello.at> +# /space/gentoo/cvsroot/gentoo-x86/net-misc/bind-tools/bind-tools-9.1.3-r1.ebuild,v 1.1 2001/12/09 23:47:08 jerrya Exp + +MY_P=${P//-tools} +S=${WORKDIR}/${MY_P} +DESCRIPTION="bind tools: dig, nslookup, and host" +SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV}/${MY_P}.tar.gz" +HOMEPAGE="http://www.isc.org/BIND/bind9.html" + +DEPEND="virtual/glibc" + + +src_unpack() { + unpack ${MY_P}.tar.gz + +} + +src_compile() { + ./configure --host=${CHOST} || die "configure failed" + + cd ${S}/lib/isc + emake || die "make failed in /lib/isc" + + cd ${S}/lib/dns + emake || die "make failed in /lib/dns" + + cd ${S}/bin/dig + emake || die "make failed in /bin/dig" +} + +src_install() { + cd ${S}/bin/dig + dobin dig host nslookup + doman dig.1 host.1 + + doman ${FILESDIR}/nslookup.8 + + cd ${S} + dodoc README CHANGES FAQ COPYRIGHT +} diff --git a/net-dns/bind-tools/files/digest-bind-tools-9.2.1 b/net-dns/bind-tools/files/digest-bind-tools-9.2.1 new file mode 100644 index 000000000000..77883cdb7ef5 --- /dev/null +++ b/net-dns/bind-tools/files/digest-bind-tools-9.2.1 @@ -0,0 +1 @@ +MD5 692cff6f44e006ce6984b2c286949dd1 bind-9.2.1.tar.gz 5021044 diff --git a/net-dns/bind-tools/files/nslookup.8 b/net-dns/bind-tools/files/nslookup.8 new file mode 100644 index 000000000000..5f449dd2d3ed --- /dev/null +++ b/net-dns/bind-tools/files/nslookup.8 @@ -0,0 +1,534 @@ +.\" +.\" ++Copyright++ 1985, 1989 +.\" - +.\" Copyright (c) 1985, 1989 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by the University of +.\" California, Berkeley and its contributors. +.\" 4. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS 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 REGENTS OR 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. +.\" - +.\" Portions Copyright (c) 1993 by Digital Equipment Corporation. +.\" +.\" 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, and that +.\" the name of Digital Equipment Corporation not be used in advertising or +.\" publicity pertaining to distribution of the document or software without +.\" specific, written prior permission. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL +.\" WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES +.\" OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT +.\" CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +.\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +.\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS +.\" SOFTWARE. +.\" - +.\" --Copyright-- +.\" +.\" @(#)nslookup.8 5.3 (Berkeley) 6/24/90 +.\" +.Dd June 24, 1990 +.Dt NSLOOKUP 8 +.Os BSD 4 +.Sh NAME +.Nm nslookup +.Nd query Internet name servers interactively +.Sh SYNOPSIS +.Nm nslookup +.Op Fl option Ar ... +.Op Ar host-to-find | Fl Op Ar server +.Sh DESCRIPTION +.Ic Nslookup +is a program to query Internet domain name servers. +.Ic Nslookup +has two modes: interactive and non-interactive. +Interactive mode allows the user to query name servers for +information about various hosts and domains or to print a list of hosts +in a domain. +Non-interactive mode is used to print just the name and requested information +for a host or domain. +.Sh ARGUMENTS +Interactive mode is entered in the following cases: +.Bl -tag -width "a) " +.It a) +when no arguments are given (the default name server will be used), +.It b) +when the first argument is a hyphen (-) and the second argument +is the host name or Internet address of a name server. +.El +.Pp +Non-interactive mode is used when the name or Internet address +of the host to be looked up +is given as the first argument. The optional second argument specifies +the host name or address of a name server. +.Pp +The options listed under the +.Dq Li set +command below can be specified in +the +.Pa .nslookuprc +file in the user's home directory if they are listed +one per line. Options can also be specified +on the command line if they precede the arguments and are prefixed with +a hyphen. For example, to change the default query type to host information, +and the initial timeout to 10 seconds, type: +.Bd -literal -offset indent + nslookup -query=hinfo -timeout=10 +.Ed +.Sh INTERACTIVE COMMANDS +Commands may be interrupted at any time by typing a control-C. +To exit, type a control-D +.Pq Dv EOF +or type +.Li exit . +The command line length must be less than 256 characters. +To treat a built-in command as a host name, +precede it with an escape character +.Pq .&\\ . +.Sy N.B.: An unrecognized command will be interpreted as a host name. +.Bl -tag -width "lserver" +.It Ar host Op Ar server +Look up information for +.Ar host +using the current default server or using +.Ar server , +if specified. +If +.Ar host +is an Internet address and the query type is +.Dv A +or +.Dv PTR , +the name of the host is returned. +If +.Ar host +is a name and does not have a trailing period, the default +domain name is appended to the name. (This behavior depends on the state of the +.Ic set +options +.Ic domain , srchlist , defname , +and +.Ic search . ) +.Pp +To look up a host not in the current domain, append a period to +the name. +.It Ic server Ar domain +.It Ic lserver Ar domain +Change the default server to +.Ar domain ; +.Ic lserver +uses the initial server to look up information about +.Ar domain , +while +.Ic server +uses the current default server. +If an authoritative answer can't be found, the names of servers +that might have the answer are returned. +.It Ic root +Changes the default server to the server for the root of the domain name space. +Currently, the host +.Li ns.internic.net +is used. +(This command is a synonym for +.Dq Ic lserver ns.internic.net . ) +The name of the root server can be changed with the +.Dq Ic set root +command. +.It Xo Ic finger Op Ar name +.Op Ic > Ar filename +.Xc +.It Xo Ic finger Op Ar name +.Op Ic >> Ar filename +.Xc +Connects with the finger server on the current host. +The current host is defined when a previous lookup for a host +was successful and returned address information (see the +.Dq Ic set querytype=A +command). +The +.Ar name +is optional. +.Ic > +and +.Ic >> +can be used to redirect output in the usual manner. +.It Xo Ic ls Op Ar option +.Ar domain Op Ic > Ar filename +.Xc +.It Xo Ic ls Op Ar option +.Ar domain Op Ic >> Ar filename +.Xc +List the information available for +.Ar domain , +optionally creating or appending to +.Ar filename . +The default output contains host names and their Internet addresses. +.Ar Option +can be one of the following: +.Bl -tag -width "-a " +.It Fl t Ar querytype +lists all records of the specified type (see +.Ar querytype +below). +.It Fl a +lists aliases of hosts in the domain; +synonym for +.Dq Fl t Dv CNAME . +.It Fl d +lists all records for the domain; +synonym for +.Dq Fl t Dv ANY . +.It Fl h +lists CPU and operating system information for the domain; +synonym for +.Dq Fl t Dv HINFO . +.It Fl s +lists well-known services of hosts in the domain; +synonym for +.Dq Fl t Dv WKS . +.El +.Pp +When output is directed to a file, hash marks are printed for every +50 records received from the server. +.It Ic view Ar filename +Sorts and lists the output of previous +.Ic ls +command(s) with +.Xr more 1 . +.It Ic help +.It Ic ? +Prints a brief summary of commands. +.It Ic exit +Exits the program. +.It Xo Ic set Ar keyword +.Ns Op = Ns Ar value +.Xc +This command is used to change state information that affects the lookups. +Valid keywords are: +.Bl -tag -width "class=v" +.It Ic all +Prints the current values of the frequently-used options to +.Ic set . +Information about the current default server and host is also printed. +.It Ic class= Ns Ar value +Change the query class to one of: +.Bl -tag -width "HESIOD " +.It Dv IN +the Internet class +.It Dv CHAOS +the Chaos class +.It Dv HESIOD +the MIT Athena Hesiod class +.It Dv ANY +wildcard (any of the above) +.El +.Pp +The class specifies the protocol group of the information. +.Pp +(Default = +.Dv IN ; +abbreviation = +.Ic cl ) +.It Xo Op Ic no +.Ns Ic debug +.Xc +Turn debugging mode on. A lot more information is printed about the +packet sent to the server and the resulting answer. +.Pp +(Default = +.Ic nodebug ; +abbreviation = +.Xo Op Ic no +.Ns Ic deb ) +.Xc +.It Xo Op Ic no +.Ns Ic d2 +.Xc +Turn exhaustive debugging mode on. +Essentially all fields of every packet are printed. +.Pp +(Default = +.Ic nod2 ) +.It Ic domain= Ns Ar name +Change the default domain name to +.Ar name . +The default domain name is appended to a lookup request depending on the +state of the +.Ic defname +and +.Ic search +options. +The domain search list contains the parents of the default domain if it has +at least two components in its name. +For example, if the default domain +is CC.Berkeley.EDU, the search list is CC.Berkeley.EDU and Berkeley.EDU. +Use the +.Dq Ic set srchlist +command to specify a different list. +Use the +.Dq Ic set all +command to display the list. +.Pp +(Default = value from +.Xr hostname 1 , +.Pa /etc/resolv.conf , +or +.Ev LOCALDOMAIN; +abbreviation = +.Ic do ) +.It Ic srchlist= Ns Ar name1/name2/... +Change the default domain name to +.Ar name1 +and the domain search list +to +.Ar name1 , name2 , +etc. A maximum of 6 names separated by slashes (/) +can be specified. +For example, +.Bd -literal -offset indent +set srchlist=lcs.MIT.EDU/ai.MIT.EDU/MIT.EDU +.Ed +.Pp +sets the domain to lcs.MIT.EDU and the search list to the three names. +This command overrides the +default domain name and search list of the +.Dq Ic set domain +command. +Use the +.Dq Ic set all +command to display the list. +.Pp +(Default = value based on +.Xr hostname 1 , +.Pa /etc/resolv.conf , +or +.Ev LOCALDOMAIN; +abbreviation = +.Ic srchl ) +.It Xo Op Ic no +.Ns Ic defname +.Xc +If set, append the default domain name to a single-component lookup request +(i.e., one that does not contain a period). +.Pp +(Default = +.Ic defname ; +abbreviation = +.Xo Op Ic no +.Ns Ic defname ) +.Xc +.It Xo Op Ic no +.Ns Ic search +.Xc +If the lookup request contains at least one period but +.Em doesn't +end with a trailing period, append the domain names in the domain search list +to the request until an answer is received. +.Pp +(Default = +.Ic search ; +abbreviation = +.Xo Op Ic no +.Ns Ic sea ) +.Xc +.It Ic port= Ns Ar value +Change the default TCP/UDP name server port to +.Ar value . +.Pp +(Default = 53; +abbreviation = +.Ic \&po ) +.It Ic querytype= Ns Ar value +.It Ic type= Ns Ar value +Change the type of information query to one of: +.Bl -tag -width "HINFO " +.It Dv A +the host's Internet address. +.It Dv CNAME +the canonical name for an alias. +.It Dv HINFO +the host CPU and operating system type. +.It Dv MINFO +the mailbox or mail list information. +.It Dv MX +the mail exchanger. +.It Dv NS +the name server for the named zone. +.It Dv PTR +the host name if the query is an Internet address; +otherwise, the pointer to other information. +.It Dv SOA +the domain's +.Dq start-of-authority +information. +.It Dv TXT +the text information. +.It Dv UINFO +the user information. +.It Dv WKS +the supported well-known services. +.El +.Pp +Other types +.Pq Dv ANY, AXFR, MB, MD, MF, NULL +are described in the RFC-1035 document. +.Pp +(Default = +.Dv A ; +abbreviations = +.Ic q , ty ) +.It Xo Op Ic no +.Ns Ic recurse +.Xc +Tell the name server to query other servers if it does not have the +information. +.Pp +(Default = +.Ic recurse ; +abbreviation = +.Xo Op Ic no +.Ns Ic rec ) +.Xc +.It Ic retry= Ns Ar number +Set the number of retries to +.Ar number . +When a reply to a request is not received within a certain +amount of time (changed with +.Dq Ic set timeout ) , +the timeout period is doubled and the request is resent. +The retry value controls how many times a request is resent before giving up. +.Pp +(Default = 4, abbreviation = +.Ic ret ) +.It Ic root= Ns Ar host +Change the name of the root server to +.Ar host . +This affects the +.Dq Ic root +command. +.Pp +(Default = +.Ic ns.internic.net. ; +abbreviation = +.Ic ro ) +.It Ic timeout= Ns Ar number +Change the initial timeout interval for waiting for a reply to +.Ar number +seconds. Each retry doubles the timeout period. +.Pp +(Default = 5 seconds; abbreviation = +.Ic ti ) +.It Xo Op Ic no +.Ns Ic vc +.Xc +Always use a virtual circuit when sending requests to the server. +.Pp +(Default = +.Ic novc ; +abbreviation = +.Xo Op Ic no +.Ns Ic v ) +.Xc +.It Xo Op Ic no +.Ns Ic ignoretc +.Xc +Ignore packet truncation errors. +.Pp +(Default = +.Ic noignoretc ; +abbreviation = +.Xo Op Ic no +.Ns Ic ig ) +.Xc +.El +.El +.Sh DIAGNOSTICS +If the lookup request was not successful, an error message is printed. +Possible errors are: +.Bl -tag -width "Timed" +.It Li Timed out +The server did not respond to a request after a certain amount of +time (changed with +.Dq Ic set timeout= Ns Ar value ) +and a certain number of retries (changed with +.Dq Ic set retry= Ns Ar value ) . +.It Li \&No response from server +No name server is running on the server machine. +.It Li \&No records +The server does not have resource records of the current query type for the +host, although the host name is valid. +The query type is specified with the +.Dq Ic set querytype +command. +.It Li Non-existent domain +The host or domain name does not exist. +.It Li Connection refused +.It Li Network is unreachable +The connection to the name or finger server could not be made +at the current time. +This error commonly occurs with +.Ic ls +and +.Ic finger +requests. +.It Li Server failure +The name server found an internal inconsistency in its database +and could not return a valid answer. +.It Li Refused +The name server refused to service the request. +.It Li Format error +The name server found that the request packet was not in the proper format. +It may indicate an error in +.Nm nslookup . +.El +.Sh FILES +.Bl -tag -width "/usr/share/misc/nslookup.helpXXX" -compact +.It Pa /etc/resolv.conf +initial domain name and name server addresses +.It Pa $HOME/.nslookuprc +user's initial options +.It Pa /usr/share/misc/nslookup.help +summary of commands +.Sh ENVIRONMENT +.Bl -tag -width "HOSTALIASESXXXX" -compact +.It Ev HOSTALIASES +file containing host aliases +.It Ev LOCALDOMAIN +overrides default domain +.Sh SEE ALSO +.Xr named 8 , +.Xr resolver 3 , +.Xr resolver 5 ; +RFC-1034, +.Dq Domain Names - Concepts and Facilities ; +RFC-1035, +.Dq Domain Names - Implementation and Specification . +.Sh AUTHOR +Andrew Cherenson diff --git a/net-dns/bind/ChangeLog b/net-dns/bind/ChangeLog new file mode 100644 index 000000000000..3af38395c905 --- /dev/null +++ b/net-dns/bind/ChangeLog @@ -0,0 +1,49 @@ +# ChangeLog for net-dns/bind +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*bind-9.2.1-r1 (2 May 2002) + + 1 June 2002; Kyle Manna <nitro@gentoo.org> bind-9.2.1-r1.ebuild: + + *Alot* of bug fixes: + + We now have a man page for named.conf + + Included a basic /etc/bind/named.conf + + Will automatically create a /etc/bind/rndc.key if file doesn't exist + + With the additon of rndc, we now have '/etc/init.d/named reload' + + Chown /var/run/named and make sure it gets created, bug #2872 + + Moved root.cache to named.ca, it was annoying me ;) + + Added multi-threading support to the default configure + + Added support for 'use ssl' and 'use ipv6' + + And other stuff + +*bind-9.2.1 (2 May 2002) + + 2 May 2002; William McArthur <sandymac@gentoo.org> bind-9.2.1.ebuild: + + New upstream bugfix release, I just bumped the ebuild file name and added + a LICENSE line. + +*bind-9.1.3-r7 (21 Mar 2002) + + 21 Mar 2002; Ferry Meyndert <m0rpheus@gentoo.org> bind-9.2.0.ebuild: + + Updated too new version + +*bind-9.1.3-r7 (8 Feb 2002) + + 8 Feb 2002; Donny Davies <woodchip@gentoo.org> files/bind.rc6, + bind-9.1.3-r7.ebuild : + + Close bug #483. Use /var/run/named for bind's pidfile. + +*bind-9.1.3-r6 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. + diff --git a/net-dns/bind/bind-8.2.3.ebuild b/net-dns/bind/bind-8.2.3.ebuild new file mode 100644 index 000000000000..7693573fd8bc --- /dev/null +++ b/net-dns/bind/bind-8.2.3.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-8.2.3.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +A="bind-src.tar.gz bind-doc.tar.gz" +S=${WORKDIR}/src +DESCRIPTION="Name Server" +SRC_URI="ftp://ftp.isc.org/isc/bind/src/8.2.3/bind-src.tar.gz + ftp://ftp.isc.org/isc/bind/src/8.2.3/bind-doc.tar.gz" +HOMEPAGE="http://www.isc.org/products/BIND" + +DEPEND="virtual/glibc + >=sys-apps/groff-1.16.1 + >=sys-devel/flex-2.5.4" + +src_unpack() { + unpack ${A} + cd ${S} + patch -p2 < ${FILESDIR}/bind-8.1.2-fds.patch + + cd ${S}/port/linux + cp Makefile.set Makefile.set.orig + sed -e "s:^'CC=.*:'CC=gcc':" \ + -e "s:^'YACC=.*:'YACC=bison -y':" \ + -e "s:CDEBUG=-O -g:CDEBUG=${CFLAGS}:" Makefile.set.orig > Makefile.set +} + +src_compile() { + + try make clean depend +# cd lib +# for i in bsd dst isc irs inet dnssafe nameser cylink resolv . +# do +# cp $i/Makefile $i/Makefile.orig +# sed -e "s:SYSTYPE= bsdos:SYSTYPE= linux:" $i/Makefile.orig > $i/Makefile +# done +# cd .. + try make SYSTYPE=linux +} + +src_install() { + into /usr + for x in addr dig dnsquery host mkservdb nslookup nsupdate + do + dobin bin/${x}/${x} + done + + for x in dnskeygen irpd named named-bootconf named-xfer ndc + do + dosbin bin/${x}/${x} + done + + dodoc CHANGES DNSSEC SUPPORT README LICENSE* TODO + docinto conf + dodoc conf/README + docinto conf/recursive + dodoc conf/recursive/* + docinto conf/recursive/pri + dodoc conf/recursive/pri/* + docinto conf/workstation + dodoc conf/workstation/* + docinto conf/workstation/pri + dodoc conf/workstation/pri/* + dodir /etc/rc.d/init.d + cp ${O}/files/named ${D}/etc/rc.d/init.d + cp ${O}/files/named.conf ${D}/usr/doc/${PF}/conf/workstation/named.conf.gentoolinux + dodir /etc/bind + dodir /var/bind + + cd ${WORKDIR}/doc/html + docinto html + dodoc * + + cd ${WORKDIR}/doc/man + for i in *.1 *.3 *.5 *.7 *.8 + do + doman $i + done +} + +pkg_config() { + . ${ROOT}/etc/rc.d/config/functions + + if [ -e ${ROOT}/etc/bind/named.conf ]; then + echo "You already have a named.conf in ${ROOT}/etc/bind/named.conf, not creating one." + else + install -m0644 ${ROOT}/usr/doc/${PF}/conf/workstation/named.conf.gentoolinux ${ROOT}/etc/bind/named.conf + mkdir ${ROOT}/var/bind/pri + gzip -d ${ROOT}/usr/doc/${PF}/conf/workstation/root.cache.gz + gzip -d ${ROOT}/usr/doc/${PF}/conf/workstation/pri/*.gz + install -m0644 ${ROOT}/usr/doc/${PF}/conf/workstation/root.cache ${ROOT}/var/bind/root.cache + install -m0644 ${ROOT}/usr/doc/${PF}/conf/workstation/pri/* ${ROOT}/var/bind/pri/ + fi + echo; + + ${ROOT}/usr/sbin/rc-update add named + echo; einfo "BIND enabled." +} diff --git a/net-dns/bind/bind-9.2.1-r1.ebuild b/net-dns/bind/bind-9.2.1-r1.ebuild new file mode 100644 index 000000000000..aea385fa3444 --- /dev/null +++ b/net-dns/bind/bind-9.2.1-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.2.1-r1.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="BIND - Name Server" +SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV}/${P}.tar.gz" +HOMEPAGE="http://www.isc.org/products/BIND" +LICENSE="as-is" +SLOT="0" + +DEPEND="virtual/glibc sys-apps/groff" +RDEPEND="virtual/glibc" + +src_compile() { + local myconf + + use ssl && myconf="${myconf} --with-openssl" + use ipv6 && myconf="${myconf} --enable-ipv6" + + ./configure \ + --prefix=/usr \ + --host=${CHOST} \ + --sysconfdir=/etc/bind \ + --localstatedir=/var \ + --enable-threads \ + --with-libtool \ + ${myconf} || die "failed to configure bind" + + emake || die "failed to compile bind" +} + +src_install() { + emake DESTDIR=${D} install || die "failed to install bind" + + for x in `grep -l -d recurse -e '/etc/named.conf' -e '/etc/rndc.conf' -e '/etc/rndc.key' ${D}/usr/man`; do + cp ${x} ${x}.orig + sed -e 's:/etc/named.conf:/etc/bind/named.conf:g' \ + -e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' ${x}.orig > ${x} + rm ${x}.orig + done + + find ${D}/usr/man ! -name "*[1-8]gz" -type f -exec gzip -f "{}" \; + insinto /usr/man/man5 ; doins ${FILESDIR}/named.conf.5.gz + + dodoc CHANGES COPYRIGHT FAQ README + docinto misc ; dodoc doc/misc/* + docinto html ; dodoc doc/arm/* + docinto contrib ; dodoc contrib/named-bootconf/named-bootconf.sh \ + contrib/nanny/nanny.pl + + # some handy-dandy dynamic dns examples + cd ${D}/usr/share/doc/${PF} + tar pjxf ${FILESDIR}/dyndns-samples.tbz2 + + dodir /etc/bind /var/bind /var/bind/pri /var/bind/sec + + insinto /etc/bind ; doins ${FILESDIR}/named.conf + # ftp://ftp.rs.internic.net/domain/named.ca: + insinto /var/bind ; doins ${FILESDIR}/named.ca + insinto /var/bind/pri ; doins ${FILESDIR}/127.0.0 + + exeinto /etc/init.d ; newexe ${FILESDIR}/named.rc6 named + + dosym /var/bind/named.ca /var/bind/root.cache + dosym /var/bind/pri /etc/bind/pri + dosym /var/bind/sec /etc/bind/sec +} + +pkg_postinst() { + if [ ! -f '/etc/bind/rndc.key' ]; then + /usr/sbin/rndc-confgen -a -u named + fi + + install -d -o named -g named ${ROOT}/var/run/named \ + ${ROOT}/var/bind/pri ${ROOT}/var/bind/sec + chown -R named:named ${ROOT}/var/bind +} diff --git a/net-dns/bind/files/127.0.0 b/net-dns/bind/files/127.0.0 new file mode 100644 index 000000000000..f356ed6299aa --- /dev/null +++ b/net-dns/bind/files/127.0.0 @@ -0,0 +1,11 @@ +$ORIGIN 0.0.127.in-addr.arpa. +$TTL 1W +@ 1D IN SOA localhost. root.localhost. ( + 42 ; serial (d. adams) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum + + 1D IN NS localhost. +1 1D IN PTR localhost. diff --git a/net-dns/bind/files/bind-8.1.2-fds.patch b/net-dns/bind/files/bind-8.1.2-fds.patch new file mode 100644 index 000000000000..54a3404d2d9f --- /dev/null +++ b/net-dns/bind/files/bind-8.1.2-fds.patch @@ -0,0 +1,43 @@ +--- bind-8.1.2/src/lib/isc/eventlib.c~ Fri Mar 20 18:26:24 1998 ++++ bind-8.1.2/src/lib/isc/eventlib.c Wed Jan 6 17:44:03 1999 +@@ -290,9 +290,9 @@ + evPrintf(ctx, 4, + "pselect(%d, 0x%lx, 0x%lx, 0x%lx, %d.%09ld)\n", + ctx->fdMax+1, +- (u_long)ctx->rdLast.fds_bits[0], +- (u_long)ctx->wrLast.fds_bits[0], +- (u_long)ctx->exLast.fds_bits[0], ++ __FDS_BITS(&ctx->rdLast)[0], ++ __FDS_BITS(&ctx->wrLast)[0], ++ __FDS_BITS(&ctx->exLast)[0], + tp ? tp->tv_sec : -1, + tp ? tp->tv_nsec : -1); + +--- bind-8.1.2/src/lib/isc/ev_files.c~ Thu Feb 5 20:53:52 1998 ++++ bind-8.1.2/src/lib/isc/ev_files.c Wed Jan 6 17:46:18 1999 +@@ -139,9 +139,9 @@ + evPrintf(ctx, 5, + "evSelectFD(fd %d, mask 0x%x): new masks: 0x%lx 0x%lx 0x%lx\n", + fd, eventmask, +- (u_long)ctx->rdNext.fds_bits[0], +- (u_long)ctx->wrNext.fds_bits[0], +- (u_long)ctx->exNext.fds_bits[0]); ++ __FDS_BITS(&ctx->rdNext)[0], ++ __FDS_BITS(&ctx->wrNext)[0], ++ __FDS_BITS(&ctx->exNext)[0]); + + return (0); + } +@@ -250,9 +250,9 @@ + evPrintf(ctx, 5, + "evDeselectFD(fd %d, mask 0x%x): new masks: 0x%lx 0x%lx 0x%lx\n", + del->fd, eventmask, +- (u_long)ctx->rdNext.fds_bits[0], +- (u_long)ctx->wrNext.fds_bits[0], +- (u_long)ctx->exNext.fds_bits[0]); ++ __FDS_BITS(&ctx->rdNext)[0], ++ __FDS_BITS(&ctx->wrNext)[0], ++ __FDS_BITS(&ctx->exNext)[0]); + + /* Couldn't free it before now since we were using fields out of it. */ + FREE(del); diff --git a/net-dns/bind/files/bind-8.2-glibc21.patch b/net-dns/bind/files/bind-8.2-glibc21.patch new file mode 100644 index 000000000000..161ec3544c2b --- /dev/null +++ b/net-dns/bind/files/bind-8.2-glibc21.patch @@ -0,0 +1,27 @@ +--- bind-8.2/src/port/linux/include/port_after.h~ Sat Feb 27 02:04:21 1999 ++++ bind-8.2/src/port/linux/include/port_after.h Tue Mar 16 19:30:14 1999 +@@ -63,24 +63,4 @@ + #define PF_INET6 AF_INET6 + #endif + +-#ifndef HAS_INET6_STRUCTS +-/* Replace with structure from later rev of O/S if known. */ +-struct in6_addr { +- u_int8_t s6_addr[16]; +-}; +- +-/* Replace with structure from later rev of O/S if known. */ +-struct sockaddr_in6 { +-#ifdef HAVE_SA_LEN +- u_int8_t sin6_len; /* length of this struct */ +- u_int8_t sin6_family; /* AF_INET6 */ +-#else +- u_int16_t sin6_family; /* AF_INET6 */ +-#endif +- u_int16_t sin6_port; /* transport layer port # */ +- u_int32_t sin6_flowinfo; /* IPv6 flow information */ +- struct in6_addr sin6_addr; /* IPv6 address */ +- u_int32_t sin6_scope_id; /* set of interfaces for a scope */ +-}; +-#endif /* HAS_INET6_STRUCTS */ + #endif /* ! PORT_AFTER_H */ diff --git a/net-dns/bind/files/digest-bind-8.2.3 b/net-dns/bind/files/digest-bind-8.2.3 new file mode 100644 index 000000000000..2e9e6e127b73 --- /dev/null +++ b/net-dns/bind/files/digest-bind-8.2.3 @@ -0,0 +1,2 @@ +MD5 02263c12fde91ef0fe03f07ed263a9f3 bind-src.tar.gz 1313049 +MD5 c26474bb791552cc0cbc5af72190a772 bind-doc.tar.gz 1486379 diff --git a/net-dns/bind/files/digest-bind-9.2.1-r1 b/net-dns/bind/files/digest-bind-9.2.1-r1 new file mode 100644 index 000000000000..77883cdb7ef5 --- /dev/null +++ b/net-dns/bind/files/digest-bind-9.2.1-r1 @@ -0,0 +1 @@ +MD5 692cff6f44e006ce6984b2c286949dd1 bind-9.2.1.tar.gz 5021044 diff --git a/net-dns/bind/files/dyndns-samples.tbz2 b/net-dns/bind/files/dyndns-samples.tbz2 Binary files differnew file mode 100644 index 000000000000..b0ab7dc97009 --- /dev/null +++ b/net-dns/bind/files/dyndns-samples.tbz2 diff --git a/net-dns/bind/files/localhost b/net-dns/bind/files/localhost new file mode 100644 index 000000000000..be5b6feb4e9e --- /dev/null +++ b/net-dns/bind/files/localhost @@ -0,0 +1,11 @@ +$ORIGIN localhost +$TTL 1W +@ IN SOA localhost. root.localhost. ( + 1999081701 ; Serial + 28800 ; Refresh + 14400 ; Retry + 604800 ; Expire - 1 week + 86400 ) ; Minimum + IN NS localhost. + +1 IN PTR localhost. diff --git a/net-dns/bind/files/named.ca b/net-dns/bind/files/named.ca new file mode 100644 index 000000000000..a20028e3d847 --- /dev/null +++ b/net-dns/bind/files/named.ca @@ -0,0 +1,83 @@ +; This file holds the information on root name servers needed to +; initialize cache of Internet domain name servers +; (e.g. reference this file in the "cache . <file>" +; configuration file of BIND domain name servers). +; +; This file is made available by InterNIC registration services +; under anonymous FTP as +; file /domain/named.root +; on server FTP.RS.INTERNIC.NET +; -OR- under Gopher at RS.INTERNIC.NET +; under menu InterNIC Registration Services (NSI) +; submenu InterNIC Registration Archives +; file named.root +; +; last update: Aug 22, 1997 +; related version of root zone: 1997082200 +; +; +; formerly NS.INTERNIC.NET +; +. 3600000 IN NS A.ROOT-SERVERS.NET. +A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4 +; +; formerly NS1.ISI.EDU +; +. 3600000 NS B.ROOT-SERVERS.NET. +B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107 +; +; formerly C.PSI.NET +; +. 3600000 NS C.ROOT-SERVERS.NET. +C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12 +; +; formerly TERP.UMD.EDU +; +. 3600000 NS D.ROOT-SERVERS.NET. +D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90 +; +; formerly NS.NASA.GOV +; +. 3600000 NS E.ROOT-SERVERS.NET. +E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10 +; +; formerly NS.ISC.ORG +; +. 3600000 NS F.ROOT-SERVERS.NET. +F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241 +; +; formerly NS.NIC.DDN.MIL +; +. 3600000 NS G.ROOT-SERVERS.NET. +G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4 +; +; formerly AOS.ARL.ARMY.MIL +; +. 3600000 NS H.ROOT-SERVERS.NET. +H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53 +; +; formerly NIC.NORDU.NET +; +. 3600000 NS I.ROOT-SERVERS.NET. +I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17 +; +; temporarily housed at NSI (InterNIC) +; +. 3600000 NS J.ROOT-SERVERS.NET. +J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10 +; +; housed in LINX, operated by RIPE NCC +; +. 3600000 NS K.ROOT-SERVERS.NET. +K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 +; +; temporarily housed at ISI (IANA) +; +. 3600000 NS L.ROOT-SERVERS.NET. +L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12 +; +; housed in Japan, operated by WIDE +; +. 3600000 NS M.ROOT-SERVERS.NET. +M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 +; End of File diff --git a/net-dns/bind/files/named.conf b/net-dns/bind/files/named.conf new file mode 100644 index 000000000000..c1adafb6dc6a --- /dev/null +++ b/net-dns/bind/files/named.conf @@ -0,0 +1,33 @@ +options { + directory "/var/bind"; + + // uncomment the following lines to turn on DNS forwarding, + // and change the forwarind ip address(es) : + //forward first; + //forwarders { + // 123.123.123.123 + // 123,123.123.123; + //}; + + + // to allow only specific hosts to use the DNS server: + //allow-query { + // 127.0.0.1; + //}; + + // if you have problems and are behind a firewall: + //query-source address * port 53; + pid-file "/var/run/named/named.pid"; +}; + +zone "." IN { + type hint; + file "named.ca"; +}; + +zone "0.0.127.in-addr.arpa" IN { + type master; + file "pri/127.0.0"; + allow-update { none; }; + notify no; +}; diff --git a/net-dns/bind/files/named.conf.5.gz b/net-dns/bind/files/named.conf.5.gz Binary files differnew file mode 100644 index 000000000000..9d850b74b0c1 --- /dev/null +++ b/net-dns/bind/files/named.conf.5.gz diff --git a/net-dns/bind/files/named.rc5 b/net-dns/bind/files/named.rc5 new file mode 100644 index 000000000000..9ef83aa2ecb8 --- /dev/null +++ b/net-dns/bind/files/named.rc5 @@ -0,0 +1,31 @@ +#!/bin/sh +#RCUPDATE:2 3 4:75:This line is required for script management + +. /etc/rc.d/config/functions + +SERVICE=named +opts="start stop restart" + +PIDFILE=/var/run/named.pid +EXE=/usr/sbin/named + +start() { + ebegin "Starting $SERVICE..." + start-stop-daemon --start --quiet --exec $EXE -u named + eend $? "Started $SERVICE." "Error Starting $SERVICE." +} + +stop() { + ebegin "Stopping $SERVICE..." + start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE + eend $? "Stopped $SERVICE." "Error Stopping $SERVICE." +} + +restart() { + stop + start +} + +doservice ${@} + + diff --git a/net-dns/bind/files/named.rc6 b/net-dns/bind/files/named.rc6 new file mode 100644 index 000000000000..e1def30e7739 --- /dev/null +++ b/net-dns/bind/files/named.rc6 @@ -0,0 +1,35 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/files/named.rc6,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +opts="start stop reload restart" + +depend() { + need net +} + +start() { + ebegin "Starting named" + start-stop-daemon --start --quiet --exec /usr/sbin/named -- -u named -n 1 + eend $? +} + +stop() { + ebegin "Stopping named" + start-stop-daemon --stop --quiet --pidfile /var/run/named/named.pid + eend $? +} + +reload() { + if [ ! -f /var/run/named/named.pid ] ; then + /etc/init.d/named start + exit + fi + if [ -f /etc/bind/rndc.key ] ; then + ebegin "Reloading named" + rndc reconfig + eend $? + else /etc/init.d/named restart + fi +} diff --git a/net-dns/bind/files/root.cache b/net-dns/bind/files/root.cache new file mode 100644 index 000000000000..a20028e3d847 --- /dev/null +++ b/net-dns/bind/files/root.cache @@ -0,0 +1,83 @@ +; This file holds the information on root name servers needed to +; initialize cache of Internet domain name servers +; (e.g. reference this file in the "cache . <file>" +; configuration file of BIND domain name servers). +; +; This file is made available by InterNIC registration services +; under anonymous FTP as +; file /domain/named.root +; on server FTP.RS.INTERNIC.NET +; -OR- under Gopher at RS.INTERNIC.NET +; under menu InterNIC Registration Services (NSI) +; submenu InterNIC Registration Archives +; file named.root +; +; last update: Aug 22, 1997 +; related version of root zone: 1997082200 +; +; +; formerly NS.INTERNIC.NET +; +. 3600000 IN NS A.ROOT-SERVERS.NET. +A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4 +; +; formerly NS1.ISI.EDU +; +. 3600000 NS B.ROOT-SERVERS.NET. +B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107 +; +; formerly C.PSI.NET +; +. 3600000 NS C.ROOT-SERVERS.NET. +C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12 +; +; formerly TERP.UMD.EDU +; +. 3600000 NS D.ROOT-SERVERS.NET. +D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90 +; +; formerly NS.NASA.GOV +; +. 3600000 NS E.ROOT-SERVERS.NET. +E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10 +; +; formerly NS.ISC.ORG +; +. 3600000 NS F.ROOT-SERVERS.NET. +F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241 +; +; formerly NS.NIC.DDN.MIL +; +. 3600000 NS G.ROOT-SERVERS.NET. +G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4 +; +; formerly AOS.ARL.ARMY.MIL +; +. 3600000 NS H.ROOT-SERVERS.NET. +H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53 +; +; formerly NIC.NORDU.NET +; +. 3600000 NS I.ROOT-SERVERS.NET. +I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17 +; +; temporarily housed at NSI (InterNIC) +; +. 3600000 NS J.ROOT-SERVERS.NET. +J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10 +; +; housed in LINX, operated by RIPE NCC +; +. 3600000 NS K.ROOT-SERVERS.NET. +K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 +; +; temporarily housed at ISI (IANA) +; +. 3600000 NS L.ROOT-SERVERS.NET. +L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12 +; +; housed in Japan, operated by WIDE +; +. 3600000 NS M.ROOT-SERVERS.NET. +M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 +; End of File diff --git a/net-dns/ddclient/ChangeLog b/net-dns/ddclient/ChangeLog new file mode 100644 index 000000000000..a1eb26f170b8 --- /dev/null +++ b/net-dns/ddclient/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for net-dns/ddclient +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*ddclient-3.6.2 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/net-dns/ddclient/ddclient-3.6.2.ebuild b/net-dns/ddclient/ddclient-3.6.2.ebuild new file mode 100644 index 000000000000..6c18aa935df5 --- /dev/null +++ b/net-dns/ddclient/ddclient-3.6.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.6.2.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="A perl based client for dyndns" +SRC_URI="http://burry.ca:4141/ddclient/${P}.tar.gz" +HOMEPAGE="http://burry.ca:4141/ddclient/" +RDEPEND="sys-devel/perl" +SLOT="0" + +src_unpack() { + unpack ${P}.tar.gz + patch -p0 < ${FILESDIR}/${PF}-gentoo.diff +} +src_install () { + + exeinto /usr/sbin + doexe ddclient + insinto /etc/ddclient + doins sample-* + dodoc README COPYING COPYRIGHT + exeinto /etc/init.d + newexe ${FILESDIR}/ddclient.rc6 ddclient +} + diff --git a/net-dns/ddclient/files/ddclient-3.6.2-gentoo.diff b/net-dns/ddclient/files/ddclient-3.6.2-gentoo.diff new file mode 100644 index 000000000000..8b5c383a0fa9 --- /dev/null +++ b/net-dns/ddclient/files/ddclient-3.6.2-gentoo.diff @@ -0,0 +1,11 @@ +--- ddclient-3.6.2/ddclient~ Mon Jul 2 18:18:12 2001 ++++ ddclient-3.6.2/ddclient Mon Jul 9 16:52:02 2001 +@@ -20,7 +20,7 @@ + $program =~ s/d$//; + my $now = time; + my $hostname = hostname(); +-my $etc = ($program =~ /test/i) ? './' : '/etc/'; ++my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/'; + my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/'; + my $msgs = ''; + my $last_msgs = ''; diff --git a/net-dns/ddclient/files/ddclient.rc6 b/net-dns/ddclient/files/ddclient.rc6 new file mode 100644 index 000000000000..247a64eb58a0 --- /dev/null +++ b/net-dns/ddclient/files/ddclient.rc6 @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/files/ddclient.rc6,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/ddclient/ddclient.conf ] ; then + eerror "You need a /etc/ddclient/ddclient.conf file to run ddclient" + eerror "There is a sample file in /etc/ddclient/" + return 1 + fi + +} + +start() { + checkconfig || return 1 + ebegin "Starting DDClient" + start-stop-daemon --start --quiet --exec /usr/sbin/ddclient + eend $? +} + +stop() { + ebegin "Stopping DDClient" + start-stop-daemon --stop --quiet --pidfile /var/run/ddclient.pid + eend $? +} diff --git a/net-dns/ddclient/files/digest-ddclient-3.6.2 b/net-dns/ddclient/files/digest-ddclient-3.6.2 new file mode 100644 index 000000000000..90aabef965df --- /dev/null +++ b/net-dns/ddclient/files/digest-ddclient-3.6.2 @@ -0,0 +1 @@ +MD5 40741dbf315889b1bd1b08e36ca665c0 ddclient-3.6.2.tar.gz 32793 diff --git a/net-dns/djbdns/ChangeLog b/net-dns/djbdns/ChangeLog new file mode 100644 index 000000000000..0cfae772a7e1 --- /dev/null +++ b/net-dns/djbdns/ChangeLog @@ -0,0 +1,32 @@ +# ChangeLog for net-dns/djbdns +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/djbdns/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*djbdns-1.05-r2 (13 May 2002) + + 12 May 2002; Thilo Bangert <bangert@gentoo.org> .ebuild : + + added LICENSE, added setup scripts (by banger@gentoo.org and gontran@gontran.net) + removed old setup scripts + + 7 May 2002; Thilo Bangert <bangert@gentoo.org> .ebuild : + + added automatic creation of users + + +*djbdns-1.05-r1 (1 Mar 2002) + + 1 Mar 2002; Grant Goodyear <g2boojum@gentoo.org> ChangeLog : + + Made ebuild a bit more modern and ditched init script since that's + what daemontools is for. + +*djbdns-1.05 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/net-dns/djbdns/djbdns-1.05-r2.ebuild b/net-dns/djbdns/djbdns-1.05-r2.ebuild new file mode 100644 index 000000000000..803745422bfe --- /dev/null +++ b/net-dns/djbdns/djbdns-1.05-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# Maintainer Thilo Bangert <bangert@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-dns/djbdns/djbdns-1.05-r2.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Excellent high-performance DNS services" +SRC_URI="http://cr.yp.to/djbdns/${P}.tar.gz" +HOMEPAGE="http://cr.yp.to/djbdns.html" + +LICENSE="as-is" + +DEPEND="virtual/glibc" +RDEPEND=">=sys-apps/daemontools-0.70 + sys-apps/ucspi-tcp" + +src_compile() { + echo "gcc ${CFLAGS}" > conf-cc + echo "gcc" > conf-ld + echo "/usr" > conf-home + emake || die "emake failed" +} + +src_install() { + insinto /etc + doins dnsroots.global + into /usr + for i in *-conf dnscache tinydns walldns rbldns pickdns axfrdns *-get *-data *-edit dnsip dnsipq dnsname dnstxt dnsmx dnsfilter random-ip dnsqr dnsq dnstrace dnstracesort + do + dobin $i + done + dodoc CHANGES FILES README SYSDEPS TARGETS TODO VERSION + + dobin ${FILESDIR}/dnscache-setup + dobin ${FILESDIR}/tinydns-setup + +} + +pkg_postinst() { + groupadd nofiles + id dnscache || useradd -g nofiles -d /nonexistent -s /bin/false dnscache + id dnslog || useradd -g nofiles -d /nonexistent -s /bin/false dnslog + id tinydns || useradd -g nofiles -d /nonexistent -s /bin/false tinydns + + echo + einfo "Use dnscache-setup and tinydns-setup to help you configure your nameservers!" + echo +} + +pkg_postrm() { + userdel dnscache + userdel dnslog + userdel tinydns +} + diff --git a/net-dns/djbdns/files/digest-djbdns-1.05-r2 b/net-dns/djbdns/files/digest-djbdns-1.05-r2 new file mode 100644 index 000000000000..7f303eca6ac3 --- /dev/null +++ b/net-dns/djbdns/files/digest-djbdns-1.05-r2 @@ -0,0 +1 @@ +MD5 3147c5cd56832aa3b41955c7a51cbeb2 djbdns-1.05.tar.gz 85648 diff --git a/net-dns/djbdns/files/dnscache-setup b/net-dns/djbdns/files/dnscache-setup new file mode 100644 index 000000000000..b9795c36923a --- /dev/null +++ b/net-dns/djbdns/files/dnscache-setup @@ -0,0 +1,239 @@ +#!/bin/bash + +#for einfo, ewarn etc.. +. /sbin/functions.sh + +setup() { + echo + echo + einfo "Dnscache Setup" + echo + echo + echo ">>> More information on this package can be found at" + echo ">>> http://cr.yp.to/djbdns.html and http://djbdns.org" + echo + echo "After this script completes, dnscache will be configured." + echo "Your /etc/resolv.conf will be updated so that all DNS" + echo "lookups will be directed to dnscache." + echo + echo "Your original /etc/resolv.conf will be backed up to " + echo "/etc/resolv.conf.orig." + echo + echo "If you have previously setup dnscache, those directories will" + echo "not be overwritten. To redo setup, delete your dnscache" + echo "dirs first or choose a different install location." + echo + echo '(press enter to begin setup, or press control-C to abort)' + echo + read + + echo + einfo "Install location" + echo + echo "Where do you want dnscache installed?" + echo "Ex. Default (/var) will install dnscache in /var/dnscache," + echo "or an external cache in /var/dnscachex." + echo "!!No trailing slash!!" + echo + read -p "[/var]> " mypath + echo + + if [ "$mypath" == "" ] + then + mypath="/var" + fi + + if [ ! -e ${mypath} ] + then + echo ">>> Creating ${mypath}..." + mkdir $mypath + fi + + echo + echo + einfo "Internal or external cache?" + echo + echo "Specify an address to which dnscache should bind." + echo "If this is the only machine accessing dnscache," + echo "127.0.0.1 is a good start." + echo "Currently running IP addresses:" + echo + + # grab interfaces + addrs=`ifconfig -a | grep "inet addr" | cut -f2 -d":" | cut -f1 -d" "` + + echo $addrs + echo + read -p "IP to bind cache to [127.0.0.1]> " myip + echo + + if [ "$myip" == "" ] + then + myip="127.0.0.1" + mycachedir="dnscache" + else + mycachedir="dnscachex" + fi + + # check for existance of users dnscache and dnslog: + echo + echo + einfo "Checking for dnscache and dnslog user accts ..." + echo + /usr/bin/grep nofiles /etc/group &> /dev/null + if [ $? -ne 0 ] + then + echo ">>> Adding group nofiles ..." + /usr/sbin/groupadd nofiles &> /dev/null + fi + + /usr/bin/grep dnscache /etc/passwd &> /dev/null + if [ $? -ne 0 ] + then + echo ">>> Adding user dnscache ..." + /usr/sbin/useradd -d /dev/null -s /bin/false -g nofiles \ + dnscache &> /dev/null + fi + + /usr/bin/grep dnslog /etc/passwd &> /dev/null + if [ $? -ne 0 ] + then + echo ">>> Adding user dnslog ..." + /usr/sbin/useradd -d /dev/null -s /bin/false -g nofiles \ + dnslog &> /dev/null + fi + + if [ ! -e ${mypath}/${mycachedir} ] + then + /usr/bin/dnscache-conf dnscache dnslog \ + ${mypath}/${mycachedir} ${myip} + else + ewarn "*** dnscache directory currently exists, nothing done." + fi + + echo + echo + einfo "Configure a forward for dnscache?" + echo + echo "dnscache can be configured to forward queries to another" + echo "nameserver (such as the nameserver of your ISP) rather than " + echo "perform the lookups itself. If you would like to enable this " + echo "forwarding mode (a good idea most of the time), then enter the " + echo "IP's of your forwarding nameservers now," + echo "otherwise just hit Enter." + echo + read -p "enter forward-to IP> " myforward + echo + if [ "$myforward" != "" ] + then + echo $myforward > ${mypath}/${mycachedir}/root/servers/\@ + echo -n "1" > ${mypath}/${mycachedir}/env/FOWARDONLY + + read -p "enter forward-to IP [hit Enter to stop]> " myforward + while [ "$myforward" != "" ] + do + echo $myforward >> ${mypath}/${mycachedir}/root/servers/\@ + read -p "enter forward-to IP [hit Enter to stop]> " myforward + done + echo ">>> Setting up forwarding..." + fi + + if [ "$myip" != "127.0.0.1" ] + then + echo + echo + einfo "Configuring clients" + echo + echo "dnscache by default only allows 127.0.0.1 to access it." + echo "You have to specify the IP addresses of the clients" + echo "that shall be allowed to use dnscache." + echo + echo "1.2.3.4 would allow host 1.2.3.4" + echo "1.2.3 would allow all hosts underneath 1.2.3.x" + echo + echo "Just hit Enter if you do not want to specify clients!" + echo + + read -p "Enter IP> " myclientip + + while [ "$myclientip" != "" ] + do + touch ${mypath}/${mycachedir}/root/ip/${myclientip} + read -p "Enter IP (hit Enter to stop)>" myclientip + done + fi + + echo + echo + einfo "Misc" + echo + if [ ! -e /var/log/dnscache ] + then + echo ">>> linking /var/log/${mycachedir} to the $mycachedir log..." + ln -s ${mypath}/${mycachedir}/log/main /var/log/${mycachedir} + fi + + if [ -e /etc/resolv.conf ] + then + /usr/bin/grep $myip /etc/resolv.conf &> /dev/null + if [ $? -ne 0 ] + then + echo ">>> Backing up /etc/resolv.conf to resolv.conf.orig..." + cp /etc/resolv.conf /etc/resolv.conf.orig + cat /etc/resolv.conf.orig | grep -v nameserver > /etc/resolv.conf + echo ">>> Removed nameserver entries from resolv.conf..." + echo nameserver $myip >> /etc/resolv.conf + echo + echo ">>> Added \"nameserver ${myip}\" to /etc/resolv.conf!" + else + echo ">>> ${myip} is already in /etc/resolv.conf - nothing done!" + fi + else + echo nameserver $myip >> /etc/resolv.conf + echo + echo ">>> Added \"nameserver ${myip}\" to /etc/resolv.conf!" + fi + + #TODO + #configure cachsize - $mypath/env/CACHESIZE + + #TODO + #configure datalimit - $mypath/env/DATALIMIT + + echo + echo + einfo "Start service" + echo + echo "dnscache is ready for startup." + echo "Do you want dnscache to be started and" + echo "supervised by daemontools now?" + + echo + echo "This requires svscan (daemontools) to be running currently and" + echo "monitoring /service !!" + echo + echo '(press control-C to abort)' + read + + # check in /mnt/.init.d to find svscan link in running... + # if not running execute /etc/init.d/svscan start + + ln -sf ${mypath}/${mycachedir} /service/${mycachedir} + + echo + echo + einfo "Installation successfull" + echo +} + +# check for root user + +if [ `id -u` -ne 0 ] +then + eerror "${0}: must be root." + exit 1 +fi + + +# run setup +setup diff --git a/net-dns/djbdns/files/tinydns-setup b/net-dns/djbdns/files/tinydns-setup new file mode 100644 index 000000000000..f12bfaaf39b7 --- /dev/null +++ b/net-dns/djbdns/files/tinydns-setup @@ -0,0 +1,146 @@ +#!/bin/bash + +# +# source functions.sh for einfo, eerror and ewarn +. /sbin/functions.sh + +setup() { + echo + echo + einfo "tinydns Setup" + echo + echo ">>> More information on this package can be found at" + echo ">>> http://cr.yp.to/djbdns/tinydns.html" + echo + echo "If you have previously setup tinydns, those directories will" + echo "not be overwritten. To redo setup, delete your" + echo "tinydns dir tree first." + echo + echo '(press enter to begin setup, or press control-C to abort)' + echo + read + + echo + einfo "Install location" + echo + echo "Where do you want tinydns installed?" + echo "Ex. /var would install dnscache in /var/tinydns." + echo "!!No trailing slash!!" + echo + read -p "[/var]> " mypath + echo + + if [ "$mypath" == "" ] + then + mypath="/var" + fi + + if [ ! -e ${mypath} ] + then + echo ">>> Creating ${mypath}..." + mkdir $mypath + fi + + # check for existance of users dnscache and dnslog: + echo + echo + einfo "Checking for tinydns and dnslog user accts ..." + echo + /usr/bin/grep nofiles /etc/group &> /dev/null + if [ $? -ne 0 ] + then + echo ">>> Adding group nofiles ..." + /usr/sbin/groupadd nofiles &> /dev/null + fi + + /usr/bin/grep tinydns /etc/passwd &> /dev/null + if [ $? -ne 0 ] + then + echo ">>> Adding user dnscache ..." + /usr/sbin/useradd -d /dev/null -s /bin/false -g nofiles \ + dnscache &> /dev/null + fi + + /usr/bin/grep dnslog /etc/passwd &> /dev/null + if [ $? -ne 0 ] + then + echo ">>> Adding user dnslog ..." + /usr/sbin/useradd -d /dev/null -s /bin/false -g nofiles \ + dnslog &> /dev/null + fi + + + # grab interfaces + addrs=`ifconfig -a | grep "inet addr" | cut -f2 -d":" | cut -f1 -d" "` + + echo "Specify an address to which tinydns should bind." + echo "NOTICE: tinydns must be able to bind to port 53 on " + echo "choosen ip address! udp by tinydns - tcp by axfrdns" + echo "Usually this is NOT 127.0.0.1" + echo "Currently running IP addresses:" + echo + echo $addrs + echo + + while [ "$myip" = "" ] + do + read -p "IP to bind nameserver to>" myip + done + echo + + if [ ! -e ${mypath}/tinydns ] + then + einfo "Setting up tinydns..." + /usr/bin/tinydns-conf tinydns dnslog \ + ${mypath}/tinydns $myip + else + ewarn "*** tinydns directory currently exists, nothing done." + fi + + #add afxrdns + if [ ! -e ${mypath}/axfrdns ] + then + einfo "Setting up axfrdns..." + /usr/bin/axfrdns-conf tinydns dnslog \ + ${mypath}/axfrdns ${mypath}/tinydns $myip + else + ewarn "*** axfrdns directory currently exists, nothing done." + fi + + #grant access to axfrdns + + echo + echo + einfo "Start service" + echo + echo "tinydns is ready for startup." + echo "Do you want dnscache to be started and" + echo "supervised by daemontools now?" + + echo + echo "This requires daemontools to supervise" + echo "/service !!" + echo + echo '(press control-C to abort)' + read + + ln -sf ${mypath}/tinydns /service/ + ln -sf ${mypath}/axfrdns /service/ + + echo + echo + einfo "Installation successfull" + echo + +} + +# check for root user! +if [ `id -u` -ne 0 ] +then + eerror "${0}: must be root." + exit 1 +fi + + +# run setup +setup diff --git a/net-dns/dlint/ChangeLog b/net-dns/dlint/ChangeLog new file mode 100644 index 000000000000..8784bad9ca13 --- /dev/null +++ b/net-dns/dlint/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for net-dns/dlint +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/dlint/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*dlint-1.4.0 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/net-dns/dlint/dlint-1.4.0.ebuild b/net-dns/dlint/dlint-1.4.0.ebuild new file mode 100644 index 000000000000..c5a1a0020048 --- /dev/null +++ b/net-dns/dlint/dlint-1.4.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Bruce A. Locke <blocke@shivan.org> +# $Header: /var/cvsroot/gentoo-x86/net-dns/dlint/dlint-1.4.0.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +MY_P=${PN}${PV} +S=${WORKDIR}/${MY_P} +DESCRIPTION="Dlint analyzes any DNS zone you specify, and reports any problems it finds by displaying errors and warnings" +SRC_URI="http://www.domtools.com/pub/${MY_P}.tar.gz" +HOMEPAGE="http://www.domtools.com/dns/dlint.shtml" +SLOT="0" + +DEPEND="net-misc/bind-tools sys-devel/perl sys-apps/bash" +RDEPEND="${DEPEND}" + +src_compile() { + + mv dlint dlint.orig + sed 's:rrfilt=\"/usr/local/bin/digparse\":rrfilt=\"/usr/bin/digparse\":' \ + dlint.orig > dlint + +} + +src_install () { + + dobin digparse + dobin dlint + + doman dlint.1 + + dodoc BUGS COPYING INSTALL README CHANGES COPYRIGHT TESTCASES +} diff --git a/net-dns/dlint/files/digest-dlint-1.4.0 b/net-dns/dlint/files/digest-dlint-1.4.0 new file mode 100644 index 000000000000..4c5312ff26b3 --- /dev/null +++ b/net-dns/dlint/files/digest-dlint-1.4.0 @@ -0,0 +1 @@ +MD5 9fc692ab461af132a52a27a8dae1e07a dlint1.4.0.tar.gz 23007 diff --git a/net-dns/dns2go/ChangeLog b/net-dns/dns2go/ChangeLog new file mode 100644 index 000000000000..4bceecb31cc1 --- /dev/null +++ b/net-dns/dns2go/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for net-dns/dns2go +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/dns2go/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*dns2go-1.1-r2 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/net-dns/dns2go/dns2go-1.1-r2.ebuild b/net-dns/dns2go/dns2go-1.1-r2.ebuild new file mode 100644 index 000000000000..d99b64b1a562 --- /dev/null +++ b/net-dns/dns2go/dns2go-1.1-r2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Bart Verwilst <verwilst@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-dns/dns2go/dns2go-1.1-r2.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +S=${WORKDIR}/dns2go-1.1-1 +DESCRIPTION="Dns2Go Linux Client v1.1" +SRC_URI="http://home.planetinternet.be/~felixdv/d2gsetup.tar.gz" +HOMEPAGE="http://www.dns2go.com" +SLOT="0" + +DEPENDS="virtual/glibc" + +src_install() { + dobin dns2go + doman dns2go.1 dns2go.conf.5 + dodoc INSTALL README LICENSE + mkdir -p ${D}/var/dns2go + mkdir -p ${D}/etc/init.d + cp ${FILESDIR}/dns2go.rc6 ${D}/etc/init.d/dns2go + chmod 755 ${D}/etc/init.d/dns2go +} diff --git a/net-dns/dns2go/files/digest-dns2go-1.1-r2 b/net-dns/dns2go/files/digest-dns2go-1.1-r2 new file mode 100644 index 000000000000..a1d183f72ea0 --- /dev/null +++ b/net-dns/dns2go/files/digest-dns2go-1.1-r2 @@ -0,0 +1 @@ +MD5 16c6ab3279c2c73f519f008bdfd0a8d8 d2gsetup.tar.gz 31718 diff --git a/net-dns/dns2go/files/dns2go.rc6 b/net-dns/dns2go/files/dns2go.rc6 new file mode 100644 index 000000000000..f71251539716 --- /dev/null +++ b/net-dns/dns2go/files/dns2go.rc6 @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# /home/cvsroot/gentoo-x86/net-misc/dns2go/files/dns2go.rc6 $ + +depend() { + need net +} + +start() { + ebegin "Starting DNS2GO" + /usr/bin/dns2go + eend $? +} + +stop() { + ebegin "Stopping DNS2GO" + /usr/bin/dns2go -k + eend $? +} diff --git a/net-dns/dnsmasq/ChangeLog b/net-dns/dnsmasq/ChangeLog new file mode 100644 index 000000000000..3cdb4802f295 --- /dev/null +++ b/net-dns/dnsmasq/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for net-dns/dnsmasq +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*dnsmasq-1.6 (6 Jun 2002) + 6 Jun 2002; Donny Davies <woodchip@gentoo.org> : + Based on a submission by bardur-gta@odense.kollegienet.dk; #2079. diff --git a/net-dns/dnsmasq/dnsmasq-1.6.ebuild b/net-dns/dnsmasq/dnsmasq-1.6.ebuild new file mode 100644 index 000000000000..ce215d8b823b --- /dev/null +++ b/net-dns/dnsmasq/dnsmasq-1.6.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/dnsmasq-1.6.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Proxy DNS server" +SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${P}.tar.gz" +HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/" +DEPEND="virtual/glibc" +LICENSE="GPL-2" +SLOT="0" + +src_unpack() { + unpack ${A} ; cd ${S} + cp Makefile Makefile.orig + sed -e "s:-O2:${CFLAGS}:" Makefile.orig > Makefile +} + +src_compile() { + emake || die +} + +src_install() { + dosbin dnsmasq + doman dnsmasq.8 + dodoc CHANGELOG COPYING FAQ + dohtml *.html + exeinto /etc/init.d + newexe ${FILESDIR}/dnsmasq-init dnsmasq + insinto /etc/conf.d + newins ${FILESDIR}/dnsmasq.confd dnsmasq +} diff --git a/net-dns/dnsmasq/files/digest-dnsmasq-1.6 b/net-dns/dnsmasq/files/digest-dnsmasq-1.6 new file mode 100644 index 000000000000..17cdbe61a13e --- /dev/null +++ b/net-dns/dnsmasq/files/digest-dnsmasq-1.6 @@ -0,0 +1 @@ +MD5 4b462d11b638ff755d262f27097a3a21 dnsmasq-1.6.tar.gz 40234 diff --git a/net-dns/dnsmasq/files/dnsmasq-init b/net-dns/dnsmasq/files/dnsmasq-init new file mode 100644 index 000000000000..0b73ce6cc759 --- /dev/null +++ b/net-dns/dnsmasq/files/dnsmasq-init @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/files/dnsmasq-init,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting dnsmasq" + start-stop-daemon --start --quiet --exec /usr/sbin/dnsmasq \ + -- -x /var/run/dnsmasq.pid ${DNSMASQ_OPTS} + eend $? +} + +stop() { + ebegin "Stopping dnsmasq" + start-stop-daemon --stop --quiet --pidfile /var/run/dnsmasq.pid + eend $? +} diff --git a/net-dns/dnsmasq/files/dnsmasq.confd b/net-dns/dnsmasq/files/dnsmasq.confd new file mode 100644 index 000000000000..c87c1cc7946b --- /dev/null +++ b/net-dns/dnsmasq/files/dnsmasq.confd @@ -0,0 +1,8 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/files/dnsmasq.confd,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +# Config file for /etc/init.d/dnsmasq + +# See the dnsmasq(8) man page for possible options to put here. +DNSMASQ_OPTS="" diff --git a/net-dns/dnswalk/ChangeLog b/net-dns/dnswalk/ChangeLog new file mode 100644 index 000000000000..20152343e08c --- /dev/null +++ b/net-dns/dnswalk/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for net-dns/dnswalk +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnswalk/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*dnswalk-2.0.2 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/net-dns/dnswalk/dnswalk-2.0.2.ebuild b/net-dns/dnswalk/dnswalk-2.0.2.ebuild new file mode 100644 index 000000000000..ef209ef6a881 --- /dev/null +++ b/net-dns/dnswalk/dnswalk-2.0.2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Bruce A. Locke <blocke@shivan.org> +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnswalk/dnswalk-2.0.2.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +S=${WORKDIR} +DESCRIPTION="dnswalk is a DNS database debugger" +SRC_URI="http://www.visi.com/~barr/dnswalk/${P}.tar.gz" +HOMEPAGE="http://www.visi.com/~barr/dnswalk/" + +DEPEND=">=sys-devel/perl-5.6.1 >=dev-perl/Net-DNS-0.12" +RDEPEND="${DEPEND}" + +src_compile() { + + mv dnswalk dnswalk.orig + sed 's/#!\/usr\/contrib\/bin\/perl/#!\/usr\/bin\/perl/' dnswalk.orig > dnswalk + +} + +src_install () { + + dobin dnswalk + + dodoc CHANGES README TODO do-dnswalk makereports sendreports rfc1912.txt dnswalk.errors + doman dnswalk.1 + +} diff --git a/net-dns/dnswalk/files/digest-dnswalk-2.0.2 b/net-dns/dnswalk/files/digest-dnswalk-2.0.2 new file mode 100644 index 000000000000..f171f2b9f9b0 --- /dev/null +++ b/net-dns/dnswalk/files/digest-dnswalk-2.0.2 @@ -0,0 +1 @@ +MD5 62b9302822353fad71d51aefdae1cad1 dnswalk-2.0.2.tar.gz 27015 diff --git a/net-dns/ez-ipupdate/ChangeLog b/net-dns/ez-ipupdate/ChangeLog new file mode 100644 index 000000000000..b03c3cd5604b --- /dev/null +++ b/net-dns/ez-ipupdate/ChangeLog @@ -0,0 +1,27 @@ +# ChangeLog for net-dns/ez-ipupdate +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*ez-ipupdate-3.0.11_beta7 (08 May 2002) + + 08 May 2002; Thilo Bangert <bangert@gentoo.org> : + + version bump - Added license + + +*ez-ipupdate-3.0.11_beta6 (25 Feb 2002) + + 25 Feb 2002; G.Bevin <gbevin@gentoo.org> : + + Renamed package to the correct version number and added the docs to the + installation. + +*ez-ipupdate-3.0.11 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta7.ebuild b/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta7.ebuild new file mode 100644 index 000000000000..1006f444d453 --- /dev/null +++ b/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta7.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Bart Verwilst <verwilst@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta7.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +S="${WORKDIR}/${PN}-3.0.11b7" +SRC_URI="http://gusnet.cx/proj/ez-ipupdate/dist/${PN}-3.0.11b7.tar.gz" +HOMEPAGE="http://gusnet.cx/proj/ez-ipupdate" +DESCRIPTION="Dynamic DNS client for lots of dynamic dns services" +LICENSE="GPL-2" +SLOT="0" + +DEPEND="virtual/glibc" + +src_compile() { + + cd ${S} + ./configure --host=${CHOST} --prefix=/usr || die + emake || die +} + +src_install(){ + + make DESTDIR=${D} install || die + for f in example*.conf + do + mv ${f} ${f}_orig + sed -e "s#/usr/local/bin/ez-ipupdate#/usr/bin/ez-ipupdate#g" \ + ${f}_orig > ${f} + dodoc ${f} + done + dodoc CHANGELOG COPYING INSTALL README +} diff --git a/net-dns/ez-ipupdate/files/digest-ez-ipupdate-3.0.11_beta7 b/net-dns/ez-ipupdate/files/digest-ez-ipupdate-3.0.11_beta7 new file mode 100644 index 000000000000..480e316bb847 --- /dev/null +++ b/net-dns/ez-ipupdate/files/digest-ez-ipupdate-3.0.11_beta7 @@ -0,0 +1 @@ +MD5 525be4550b4461fdf105aed8e753b020 ez-ipupdate-3.0.11b7.tar.gz 82481 diff --git a/net-dns/hesiod/ChangeLog b/net-dns/hesiod/ChangeLog new file mode 100644 index 000000000000..0efd2657d055 --- /dev/null +++ b/net-dns/hesiod/ChangeLog @@ -0,0 +1,27 @@ +# ChangeLog for net-dns/hesiod +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/hesiod/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*hesiod-3.0.2 (8 Jun 2002) + + 8 Jun 2002; Grant Goodyear <g2boojum@gentoo.org> : + + Initial import into portage. RH requires this package for sendmail; + I figure better safe than sorry. + +-- Explanation of ChangeLog format: + + Every new version or revision of the package should be marked by a '*' + seperator line as above. Changes since the last revision have to be added to + the top of the file, underneath the initial copyright and cvs header + comments, in exactly the same format as this comment. + + This means that you start with header line that has the following format, + indented two spaces: + + DD MMM YYYY; your_name <your_email> changed_file1, changed_file2: Your + explanation should follow. It should be indented and wrapped at a line width + of 80 characters. The changed_files can be omitted if they are obvious; for + example, if you are only modifying the .ebuild file and committing a new rev + of a package. Any details about what exactly changed in the code should be + added as a message when the changes are committed to cvs, not in this file. diff --git a/net-dns/hesiod/files/digest-hesiod-3.0.2 b/net-dns/hesiod/files/digest-hesiod-3.0.2 new file mode 100644 index 000000000000..d6d44043a687 --- /dev/null +++ b/net-dns/hesiod/files/digest-hesiod-3.0.2 @@ -0,0 +1 @@ +MD5 0362311e80fb1e029a1588cbbd09ad57 hesiod-3.0.2.tar.gz 31974 diff --git a/net-dns/hesiod/files/hesiod-3.0.2-env.patch b/net-dns/hesiod/files/hesiod-3.0.2-env.patch new file mode 100644 index 000000000000..444cc3b539f0 --- /dev/null +++ b/net-dns/hesiod/files/hesiod-3.0.2-env.patch @@ -0,0 +1,27 @@ +Ignore environment variables in setuid or setgid programs. +--- hesiod-3.0.2/hesiod.c Wed Oct 3 14:53:37 2001 ++++ hesiod-3.0.2/hesiod.c Wed Oct 3 14:55:02 2001 +@@ -52,6 +52,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> + #include <ctype.h> + #include "hesiod.h" + #include "hesiod_p.h" +@@ -79,13 +80,13 @@ + if (ctx) + { + *context = ctx; +- configname = getenv("HESIOD_CONFIG"); ++ configname = ((getuid() == geteuid()) && (getgid() == getegid())) ? getenv("HESIOD_CONFIG") : NULL; + if (!configname) + configname = SYSCONFDIR "/hesiod.conf"; + if (read_config_file(ctx, configname) >= 0) + { + /* The default rhs can be overridden by an environment variable. */ +- p = getenv("HES_DOMAIN"); ++ p = ((getuid() == geteuid()) && (getgid() == getegid())) ? getenv("HES_DOMAIN") : NULL; + if (p) + { + if (ctx->rhs) diff --git a/net-dns/hesiod/files/hesiod-3.0.2-shlib.patch b/net-dns/hesiod/files/hesiod-3.0.2-shlib.patch new file mode 100644 index 000000000000..128db5a24dbf --- /dev/null +++ b/net-dns/hesiod/files/hesiod-3.0.2-shlib.patch @@ -0,0 +1,50 @@ +--- hesiod-3.0.2/Makefile.in Fri Oct 5 15:43:35 2001 ++++ hesiod-3.0.2/Makefile.in Fri Oct 5 15:47:42 2001 +@@ -21,20 +21,24 @@ + CFLAGS=@CFLAGS@ + LDFLAGS=@LDFLAGS@ + LIBS=@LIBS@ +-ALL_CFLAGS=-I. -DSYSCONFDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} ++ALL_CFLAGS=-I. -DSYSCONFDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} -fPIC + OBJS=hesiod.o hesmailhost.o hespwnam.o hesservbyname.o hescompat.o ++SOVERSION=0 + +-all: libhesiod.a hesinfo hestest ++all: libhesiod.a hesinfo hestest libhesiod.so.$(SOVERSION) ++ ++libhesiod.so.$(SOVERSION): ${OBJS} ++ $(LD) -G -o $@ -soname=$@ ${OBJS} ${LIBS} -lc + + libhesiod.a: ${OBJS} + ar cru $@ ${OBJS} + ${RANLIB} $@ + +-hesinfo: hesinfo.o libhesiod.a +- ${CC} ${LDFLAGS} -o $@ hesinfo.o libhesiod.a ${LIBS} ++hesinfo: hesinfo.o libhesiod.so.$(SOVERSION) ++ ${CC} ${LDFLAGS} -o $@ hesinfo.o libhesiod.so.$(SOVERSION) ${LIBS} + +-hestest: hestest.o libhesiod.a +- ${CC} ${LDFLAGS} -o $@ hestest.o libhesiod.a ${LIBS} ++hestest: hestest.o libhesiod.so.$(SOVERSION) ++ ${CC} ${LDFLAGS} -o $@ hestest.o libhesiod.so.$(SOVERSION) ${LIBS} + + ${OBJS}: hesiod.h resscan.h + +@@ -42,6 +46,7 @@ + ${CC} -c ${ALL_CFLAGS} $< + + check: ++ LD_LIBRARY_PATH="`pwd`":"$(LD_LIBRARY_PATH)" \ + HESIOD_CONFIG=${srcdir}/hesiod.config.sample \ + ./hestest ${srcdir}/hestest.conf + +@@ -55,6 +60,8 @@ + ${INSTALL} -c -m 644 libhesiod.a ${DESTDIR}${libdir} + ${RANLIB} ${DESTDIR}${libdir}/libhesiod.a + chmod u-w ${DESTDIR}${libdir}/libhesiod.a ++ ${INSTALL} -c -m 755 libhesiod.so.$(SOVERSION) ${DESTDIR}${libdir} ++ ln -s libhesiod.so.$(SOVERSION) ${DESTDIR}${libdir}/libhesiod.so + ${INSTALL_PROGRAM} -c -m 555 hesinfo ${DESTDIR}${lbindir} + ${INSTALL} -c -m 444 ${srcdir}/hesiod.h ${DESTDIR}${includedir} + ${INSTALL} -c -m 444 ${srcdir}/hesinfo.1 ${DESTDIR}${mandir}/man1 diff --git a/net-dns/hesiod/files/hesiod-3.0.2-str.patch b/net-dns/hesiod/files/hesiod-3.0.2-str.patch new file mode 100644 index 000000000000..a763e539105d --- /dev/null +++ b/net-dns/hesiod/files/hesiod-3.0.2-str.patch @@ -0,0 +1,68 @@ +There are a few places where untrusted information could cause problems. +There's a bug in the configuration file parser that might result in an +LHS= modifying the rhs setting. +The case-insensitive comparison routine is probably called safely (with the +second argument at least as long as the first), but it looks weird. +--- hesiod-3.0.2/hesiod.c Wed Oct 3 15:16:17 2001 ++++ hesiod-3.0.2/hesiod.c Wed Oct 3 15:33:41 2001 +@@ -138,7 +138,8 @@ + const char *rhs; + int len; + +- strcpy(bindname, name); ++ strncpy(bindname, name, sizeof(bindname) - 1); ++ bindname[sizeof(bindname) - 1] = 0; + + /* Find the right right hand side to use, possibly truncating bindname. */ + p = strchr(bindname, '@'); +@@ -288,7 +289,7 @@ + + if (cistrcmp(key, "lhs") == 0 || cistrcmp(key, "rhs") == 0) + { +- which = (strcmp(key, "lhs") == 0) ? &ctx->lhs : &ctx->rhs; ++ which = (cistrcmp(key, "lhs") == 0) ? &ctx->lhs : &ctx->rhs; + *which = malloc(strlen(data) + 1); + if (!*which) + { +@@ -462,7 +463,7 @@ + + static int cistrcmp(const char *s1, const char *s2) + { +- while (*s1 && tolower(*s1) == tolower(*s2)) ++ while (*s1 && *s2 && tolower(*s1) == tolower(*s2)) + { + s1++; + s2++; +--- hesiod-3.0.2/hespwnam.c Wed Oct 3 15:29:40 2001 ++++ hesiod-3.0.2/hespwnam.c Wed Oct 3 15:29:43 2001 +@@ -39,9 +39,16 @@ + + struct passwd *hesiod_getpwuid(void *context, uid_t uid) + { +- char uidstr[16]; ++ char uidstr[32]; + +- sprintf(uidstr, "%d", uid); +- return getpwcommon(context, uidstr, 1); ++ if (snprintf(uidstr, sizeof(uidstr), "%ld", (long)uid) < sizeof(uidstr)) ++ { ++ return getpwcommon(context, uidstr, 1); ++ } ++ else ++ { ++ errno = ERANGE; ++ return NULL; ++ } + } + +--- hesiod-3.0.2/hesservbyname.c Wed Oct 3 15:33:25 2001 ++++ hesiod-3.0.2/hesservbyname.c Wed Oct 3 15:33:22 2001 +@@ -188,7 +188,7 @@ + + static int cistrcmp(const char *s1, const char *s2) + { +- while (*s1 && tolower(*s1) == tolower(*s2)) ++ while (*s1 && *s2 && tolower(*s1) == tolower(*s2)) + { + s1++; + s2++; diff --git a/net-dns/hesiod/hesiod-3.0.2.ebuild b/net-dns/hesiod/hesiod-3.0.2.ebuild new file mode 100644 index 000000000000..4399caa66eaf --- /dev/null +++ b/net-dns/hesiod/hesiod-3.0.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/hesiod/hesiod-3.0.2.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +DESCRIPTION="Hesiod is a system which uses existing DNS functionality to provide access to databases of information that changes infrequently." + +HOMEPAGE="ftp://athena-dist.mit.edu/pub/ATHENA/hesiod" +LICENSE="ISC" +DEPEND="virtual/glibc" +#RDEPEND="" +SRC_URI="ftp://athena-dist.mit.edu/pub/ATHENA/${PN}/${P}.tar.gz" +SLOT="0" + +S=${WORKDIR}/${P} + +src_unpack() { + unpack ${A} + #Patches stolen from RH + cat ${FILESDIR}/hesiod-3.0.2-shlib.patch | patch -d ${S} -p1 + cat ${FILESDIR}/hesiod-3.0.2-env.patch | patch -d ${S} -p1 + cat ${FILESDIR}/hesiod-3.0.2-str.patch | patch -d ${S} -p1 + cd ${S} + for manpage in *.3 + do + if grep -q '^\.so man3/hesiod.3' ${manpage} + then + echo .so hesiod.3 > ${manpage} + elif grep -q '^\.so man3/hesiod_getmailhost.3' ${manpage} + then + echo .so hesiod_getmailhost.3 > ${manpage} + elif grep -q '^\.so man3/hesiod_getpwnam.3' ${manpage} + then + echo .so hesiod_getpwnam.3 > ${manpage} + elif grep -q '^\.so man3/hesiod_getservbyname.3' ${manpage} + then + echo .so hesiod_getservbyname.3 > ${manpage} + fi + done +} + +src_compile() { + ./configure \ + --host=${CHOST} \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + emake || die + #make || die +} + +src_install () { + make DESTDIR=${D} install || die + #make \ + # prefix=${D}/usr \ + # mandir=${D}/usr/share/man \ + # infodir=${D}/usr/share/info \ + # install || die + # Again, verify the Makefiles! We don't want anything falling + # outside of ${D}. +} diff --git a/net-dns/pdnsd/ChangeLog b/net-dns/pdnsd/ChangeLog new file mode 100644 index 000000000000..b38b5f35c65c --- /dev/null +++ b/net-dns/pdnsd/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for net-misc/pdnsd +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +*pdnsd-1.1.6-r7 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/net-dns/pdnsd/files/digest-pdnsd-1.1.6-r7 b/net-dns/pdnsd/files/digest-pdnsd-1.1.6-r7 new file mode 100644 index 000000000000..84bd49ec361a --- /dev/null +++ b/net-dns/pdnsd/files/digest-pdnsd-1.1.6-r7 @@ -0,0 +1 @@ +MD5 24d7cede5de8fcf2709e82eeaa780352 pdnsd-1.1.6.tar.bz2 222766 diff --git a/net-dns/pdnsd/files/pdnsd.rc6 b/net-dns/pdnsd/files/pdnsd.rc6 new file mode 100644 index 000000000000..51c34ea1e687 --- /dev/null +++ b/net-dns/pdnsd/files/pdnsd.rc6 @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/files/pdnsd.rc6,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/pdnsd/pdnsd.conf ] ; then + eerror "You need an /etc/pdnsd/pdnsd.conf file first" + eerror "There is a sample in /usr/share/doc/pdnsd" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting pdnsd" + start-stop-daemon --start --quiet --exec /usr/sbin/pdnsd \ + -- -d -p /var/run/pdnsd.pid + eend $? +} + +stop() { + ebegin "Stopping pdnsd" + start-stop-daemon --stop --quiet --pidfile /var/run/pdnsd.pid + eend $? +} diff --git a/net-dns/pdnsd/pdnsd-1.1.6-r7.ebuild b/net-dns/pdnsd/pdnsd-1.1.6-r7.ebuild new file mode 100644 index 000000000000..7d11b70a7ed2 --- /dev/null +++ b/net-dns/pdnsd/pdnsd-1.1.6-r7.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Jerry A! <jerry@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.1.6-r7.ebuild,v 1.1 2002/06/29 00:55:03 bangert Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Proxy DNS server with permanent caching" +SRC_URI="http://home.t-online.de/home/Moestl/${P}.tar.bz2" +HOMEPAGE="http://home.t-online.de/home/Moestl/" +SLOT="0" + +DEPEND="virtual/glibc" + +src_compile() { + + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --sysconfdir=/etc/pdnsd \ + --with-cachedir=/var/lib/pdnsd \ + --host=${CHOST} || die "bad configure" + + emake all || die "compile problem" +} + +src_install() { + + make DESTDIR=${D} install || die + + dodoc AUTHORS COPYING* ChangeLog* NEWS README THANKS TODO + docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl} + docinto html ; dodoc doc/html/* + docinto txt ; dodoc doc/txt/* + newdoc doc/pdnsd.conf pdnsd.conf.sample + + exeinto /etc/init.d ; newexe ${FILESDIR}/pdnsd.rc6 pdnsd +} |