From paul at xelerance.com Wed Oct 5 07:28:47 2005 From: paul at xelerance.com (Paul Wouters) Date: Wed, 5 Oct 2005 09:28:47 +0200 (CEST) Subject: [ldns-users] ldns clean target, spec file for rpm building Message-ID: Hi guys, some comments about ldns :) It seems the Makefile is incorrectly using prefix instead of my directed --libdir directory. The Makefile shows that while using ./configure --libdir=/usr/lib64, I end up with: install-lib: lib $(LIBTOOL) --mode=install cp libldns.la $(prefix)/lib $(LIBTOOL) --mode=finish $(prefix)/lib and: ./libtool --mode=finish /usr/lib These are all not using configure's --libdir argument properly. Makefile.in has the proper reference: install-lib: lib $(LIBTOOL) --mode=install cp libldns.la $(libdir) $(LIBTOOL) --mode=finish $(libdir) I *think* this is partialy fixed by adding the following line to Makefile.in libdir = @libdir@ But I am not an autoconf/automake/libtool expert, so someone who is should verify this. Similarly, Makefile.in has: lib: $(LIBDNS_OBJECTS) b64_pton$U.o b64_ntop$U.o $(LINK_LIB) -o libldns.la $(LIBDNS_LOBJECTS) b64_pton$U.lo b64_ntop$U.lo \ -rpath $(prefix)/lib Where rpath should probably be $(libdir). libtool seems to have another problem related to libdir later on: ./libtool --mode=install cp libldns.la /var/tmp/ldns-0.70-1-root-root/usr/lib64 That is the command that runs from make install, but it shows: cp .libs/libldns.so.0.0.0 /var/tmp/ldns-0.70-1-root-root/usr/libldns.so.0.0.0 (cd /var/tmp/ldns-0.70-1-root-root/usr && rm -f libldns.so.0 && ln -s libldns.so.0.0.0 libldns.so.0) (cd /var/tmp/ldns-0.70-1-root-root/usr && rm -f libldns.so && ln -s libldns.so.0.0.0 libldns.so) cp .libs/libldns.lai /var/tmp/ldns-0.70-1-root-root/usr/libldns.la cp .libs/libldns.a /var/tmp/ldns-0.70-1-root-root/usr/libldns.a ranlib /var/tmp/ldns-0.70-1-root-root/usr/libldns.a chmod 644 /var/tmp/ldns-0.70-1-root-root/usr/libldns.a There are all wrongly using "prefix" instead of "libdir". Another problem is in the uninstall target, though I will never use it myself: $(LIBTOOL) --mode=uninstall rm $(prefix)/lib/libldns.la That should also be using $(libdir) and not $(prefix)/lib. There are more of these with other configure options too, such as --includedir, eg: $(INSTALL) -m 755 -d $(prefix)/include/ldns It seems 'make clean' does not clean out everything, and there is no make distclean target. Though I see 'make realclean'. hmmm. A warning I got compiling on gcc4: dnssec.c: In function 'ldns_create_nsec': dnssec.c:1231: warning: 'owner' is used uninitialized in this function dnssec.c:1231: warning: 'nsec_types' is used uninitialized in this function and: doxygen: /usr/src/redhat/BUILD/ldns-0.70/ldns/buffer.h:482: Warning: Found unknown command `\0' doxygen: /usr/src/redhat/BUILD/ldns-0.70/ldns/buffer.h:483: Warning: Found unknown command `\0' doxygen: /usr/src/redhat/BUILD/ldns-0.70/ldns/resolver.h:295: Warning: argument `resolver' of command @param is not found in the argument list of ldns_axfr_last_pkt(ldns_resolver *res) doxygen: /usr/src/redhat/BUILD/ldns-0.70/ldns/resolver.h:295: Warning: The following parameters of ldns_axfr_last_pkt(ldns_resolver *res) are not documented: parameter res I would personally call the "progs" target "programs". And there should probably be a "install-progs" (or install-programs) target. And finally, as with the nsd build process, the 'make install' target does not allow installing in a "dist" or "inst_prefix_dir" directory, so it cannot be re-used for rpm building. Paul From miekg at atoom.net Wed Oct 5 07:40:20 2005 From: miekg at atoom.net (Miek Gieben) Date: Wed, 5 Oct 2005 09:40:20 +0200 Subject: [ldns-users] ldns clean target, spec file for rpm building In-Reply-To: References: Message-ID: <20051005074020.GB9441@atoom.net> [On 05 Oct, @09:28, Paul Wouters wrote in "[ldns-users] ldns clean target ..."] > > > Hi guys, > > some comments about ldns :) > > It seems the Makefile is incorrectly using prefix instead of my directed > --libdir directory. The Makefile shows that while using > ./configure --libdir=/usr/lib64, I end up with: there are about a gazillion things different in the new (and improved :) ) Makefile and autoconf setup. Jelte should have the details, If you want to test go to: http://www.nlnetlabs.nl/ldns/svn/ and check out trunk. > dnssec.c: In function 'ldns_create_nsec': > dnssec.c:1231: warning: 'owner' is used uninitialized in this function > dnssec.c:1231: warning: 'nsec_types' is used uninitialized in this function totally rewritten, now it actually does something ;-) > and: > > doxygen: /usr/src/redhat/BUILD/ldns-0.70/ldns/buffer.h:482: Warning: Found unknown command `\0' > doxygen: /usr/src/redhat/BUILD/ldns-0.70/ldns/buffer.h:483: Warning: Found unknown command `\0' fixed. > doxygen: /usr/src/redhat/BUILD/ldns-0.70/ldns/resolver.h:295: Warning: argument `resolver' of command @param is not found in the argument list of ldns_axfr_last_pkt(ldns_resolver *res) > doxygen: /usr/src/redhat/BUILD/ldns-0.70/ldns/resolver.h:295: Warning: The following parameters of ldns_axfr_last_pkt(ldns_resolver *res) are not documented: > parameter res fixed. > > I would personally call the "progs" target "programs". And there should > probably be a "install-progs" (or install-programs) target. > > And finally, as with the nsd build process, the 'make install' target does > not allow installing in a "dist" or "inst_prefix_dir" directory, so it > cannot be re-used for rpm building. I believe that was also fixed, thanks for your comments, grtz Miek From jelte at NLnetLabs.nl Wed Oct 5 10:10:29 2005 From: jelte at NLnetLabs.nl (Jelte Jansen) Date: Wed, 05 Oct 2005 12:10:29 +0200 Subject: [ldns-users] ldns clean target, spec file for rpm building In-Reply-To: References: Message-ID: <4343A695.4050605@NLnetLabs.nl> Paul Wouters wrote: > > Hi guys, > > some comments about ldns :) > always nice to receive :) > It seems the Makefile is incorrectly using prefix instead of my directed > --libdir directory. The Makefile shows that while using > ./configure --libdir=/usr/lib64, I end up with: > > These are all not using configure's --libdir argument properly. > Makefile.in has the proper reference: > > install-lib: lib > $(LIBTOOL) --mode=install cp libldns.la $(libdir) > $(LIBTOOL) --mode=finish $(libdir) > > I *think* this is partialy fixed by adding the following line to Makefile.in > > libdir = @libdir@ > > But I am not an autoconf/automake/libtool expert, so someone who is should > verify this. > yes there were some prefix references instead of libdir (and some other ones). They should be fixed now (in trunk) > I would personally call the "progs" target "programs". And there should > probably be a "install-progs" (or install-programs) target. > they are all moved to the examples/ dir now anyway, the progs targets have been removed > And finally, as with the nsd build process, the 'make install' target does > not allow installing in a "dist" or "inst_prefix_dir" directory, so it > cannot be re-used for rpm building. > i have no experience with rpm building, what exactly is needed besides prefix and *dir configure arguments? (in the make/configuration department that is) Jelte -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 256 bytes Desc: OpenPGP digital signature URL: From paul at xelerance.com Wed Oct 5 15:49:37 2005 From: paul at xelerance.com (Paul Wouters) Date: Wed, 5 Oct 2005 17:49:37 +0200 (CEST) Subject: [ldns-users] ldns clean target, spec file for rpm building In-Reply-To: <4343A695.4050605@NLnetLabs.nl> References: <4343A695.4050605@NLnetLabs.nl> Message-ID: On Wed, 5 Oct 2005, Jelte Jansen wrote: > yes there were some prefix references instead of libdir (and some other > ones). They should be fixed now (in trunk) I will try that later today then. > they are all moved to the examples/ dir now anyway, the progs targets > have been removed Okay. >> And finally, as with the nsd build process, the 'make install' target does >> not allow installing in a "dist" or "inst_prefix_dir" directory, so it >> cannot be re-used for rpm building. >> > > i have no experience with rpm building, what exactly is needed besides > prefix and *dir configure arguments? (in the make/configuration > department that is) Okay, the problem is as follows. For a packaged distribution you want libldns to end up in /usr/lib/ (or /usr/lib64 on x86_64). But you do not want to actually have 'make install' put the files there, because you want to install this in "build" directory. For rpm, the build usually happens in /usr/src/redhat/BUILD/packagename/ and though the prefix is "/usr", the install target should be able to install into something like $dist/$prefix, which in this case would be like /var/tmp/rpm-packagename-version-root/usr/ See it as a 'sort of' chroot(/var/tmp/rpm-packagename-version-root) before running 'make install'. For example, another package for which I maintain the rpm building is libotr, which in the rpm's specfile has the following: %build %configure --with-pic make %{?_smp_mflags} all %install rm -rf $RPM_BUILD_ROOT make \ DESTDIR=$RPM_BUILD_ROOT \ LIBINSTDIR=%{_libdir} \ install The "%configure" is a shortcut for the distribution's configure call, which for Fedora would expand to "./configure --prefix=/usr --libdir=/usr/lib --includedir=/usr/include ...." Then it actually installs the library in $RPM_BUILD_ROOT/$libdir, and when the package gets installed, it actually installs the files in /usr/lib{64}/ Does this explanation make some sense? Paul From paul at xelerance.com Thu Oct 6 02:19:40 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 04:19:40 +0200 (CEST) Subject: [ldns-users] ldns fedora spec file and signed binaries available Message-ID: Hi, Attached is spec file for ldns SVN version 1205 that adds support for building Fedora RPMS. I suggest it is added in a directory packaging/fedora/ This was tested on Fedora Core 4 i386 and x86_64. Source and binary rpms for FC4 are available at ftp://ftp.xelerance.com/binaries/ldns/binaries/fedora/ I have split things in two packages. The "ldns" package contains the library .so file and the man pages. The "ldns-devel" pacakge contains the include files and the doc directory. The 'make examples' target was broken and commented out. I had to remove the doc/man directory to avoid duplicating the man pages. I also had to manually remove the doc/.svn directory. These two removal actions are done after the 'make install install-doc'. You can add the repository for use with the Yum package manager by adding the following in /etc/yum.conf or /etc/yum.repos.d/ldns.conf: [ldns] name=ldns - Fedora Core ldns packages baseurl=ftp://ftp.xelerance.com/ldns/binaries/fedora/$releasever/$basearch/ http://www.xelerance.com/ldns/binaries/fedora/$releasever/$basearch/ enabled=1 # get the key for paul at cypherpunks.ca from a key server (eg pgpkeys.mit.edu) # or: finger paul at xelerance.com > nsdkey ; rpm --import nsdkey # and enable gpgcheck to verify the package gpgcheck=0 All source and binary rpms have been signed with my key (paul at xelerance.com), available on key servers and by using 'finger paul at xelerance.com'. I was not sure how to treat the SVN version of "1205" compared to the last release "0.70". To avoid assuming a wrong number that is too high, I opted for the version 0.70_1205. (rpm does not like "-" characters in versions, it confuses those with its own "-" for build versions) Regards, Paul Wouters Xelerance Corp. From paul at xelerance.com Thu Oct 6 02:21:02 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 04:21:02 +0200 (CEST) Subject: [ldns-users] ldns fedora spec file and signed binaries available In-Reply-To: References: Message-ID: On Thu, 6 Oct 2005, Paul Wouters wrote: > Attached is spec file for ldns SVN version 1205 that adds support for I ofcourse still want a mailer plugin that detects the word "attached" in the body of an email and refuses to send the mail unless it finds an actual attachment :) Spec file attached. Really. Paul -------------- next part -------------- Summary: Lowlevel DNS(SEC) library with API Name: ldns Version: 0.70_1205 Release: 2 License: LGPL Url: http://open.nlnetlabs.nl/%{name}/ Source: http://open.nlnetlabs.nl/downloads/%{name}-%{version}.tar.gz Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: openssl BuildRequires: libtool, autoconf, automake, gcc-c++, openssl-devel, doxygen %description ldns is a library with the aim to simplify DNS programing in C. All lowlevel DNS/DNSSEC operations are supported. We also define a higher level API which allows a programmer to (for instance) create or sign packets. %package devel Summary: Development package that includes the ldns header files Group: Development/Libraries Requires: %{name} = %{version}-%{release}, openssl-devel %description devel The devel package contains the ldns library and the include files %prep rm -rf %{buildroot} %setup -q libtoolize && autoreconf #this is really a bad hack, and should be fixed in the 'make install' target ./configure --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir} --includedir=%{buildroot}%{_includedir} --mandir=%{buildroot}%{_mandir} %build %{__make} %{?_smp_mflags} #%{__make} %{?_smp_mflags} examples %{__make} %{?_smp_mflags} doc %install #install -d 0755 %{buildroot}%{_includedir}/ldns #install -d 0755 %{buildroot}%{_libdir} #install -d 0755 %{buildroot}%{_mandir}/man3 %{__make} install %{__make} install-doc #%{__make} examples #remove doc stubs rm -r doc/.svn #remove double set of man pages rm -r doc/man %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_libdir}/libldns*so %doc README LICENSE ROADMAP TODO %doc %{_mandir}/*/* %files devel %defattr(-,root,root,-) %{_libdir}/libldns.la %{_libdir}/libldns.a %dir %{_includedir}/ldns/* %doc doc %doc Changelog COMPILE %pre %post /sbin/ldconfig %postun /sbin/ldconfig %changelog * Wed Oct 5 2005 Paul Wouters 0.70_1205 - reworked for svn version * Sun Sep 25 2005 Paul Wouters - 0.70 - Initial version From jelte at NLnetLabs.nl Thu Oct 6 09:58:10 2005 From: jelte at NLnetLabs.nl (Jelte Jansen) Date: Thu, 06 Oct 2005 11:58:10 +0200 Subject: [ldns-users] ldns fedora spec file and signed binaries available In-Reply-To: References: Message-ID: <4344F532.4010904@NLnetLabs.nl> Paul Wouters wrote: > On Thu, 6 Oct 2005, Paul Wouters wrote: > >> Attached is spec file for ldns SVN version 1205 that adds support for > > > I ofcourse still want a mailer plugin that detects the word "attached" in > the body of an email and refuses to send the mail unless it finds an > actual attachment :) > Well if you ever find or build one, let me know :) > Spec file attached. Really. > Thanks! I've added it to the repository. I think the problem with the install directories was that we did not put $(DESTDIR) in our makefile install targets, so i've added them. Am i correct? (if so, it should work now, i've changed the ugly configure line in the .spec back to just ./configure) btw. we were planning on doing a big release real soon now (1.0.0). So if you have anything else that you think should really be in i/fixed let us know Jelte -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 256 bytes Desc: OpenPGP digital signature URL: From jelte at NLnetLabs.nl Thu Oct 6 10:13:35 2005 From: jelte at NLnetLabs.nl (Jelte Jansen) Date: Thu, 06 Oct 2005 12:13:35 +0200 Subject: [ldns-users] Merger of Drill and ldns Message-ID: <4344F8CF.7010104@NLnetLabs.nl> Hi, since the next version of drill is dependent on ldns, we have decided to merge the repositories and releases, making drill an official part of ldns. Therefore, the next release of ldns will include drill, and seperate drill development will cease. Also, we will stop the drill at open.nlnetlabs.nl mailing list, and move all subscribers to ldns-users at open.nlnetlabs.nl. Please let us know if anyone has any objections to these changes. Miek & Jelte NLnet Labs -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 256 bytes Desc: OpenPGP digital signature URL: From paul at xelerance.com Thu Oct 6 14:55:45 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 16:55:45 +0200 (CEST) Subject: [ldns-users] ldns fedora spec file and signed binaries available In-Reply-To: <4344F532.4010904@NLnetLabs.nl> References: <4344F532.4010904@NLnetLabs.nl> Message-ID: On Thu, 6 Oct 2005, Jelte Jansen wrote: > Thanks! I've added it to the repository. cool. > I think the problem with the install directories was that we did not put > $(DESTDIR) in our makefile install targets, so i've added them. Am i > correct? (if so, it should work now, i've changed the ugly configure > line in the .spec back to just ./configure) Please change it to "%configure", which is the macro that sets all the libdir/includedir/prefix variables correctly for the distribution. > btw. we were planning on doing a big release real soon now (1.0.0). So > if you have anything else that you think should really be in i/fixed let > us know make examples was broken for me, and I need to look at building drill in the specfile. Paul -- "Happiness is never grand" --- Mustapha Mond, World Controller (Brave New World) From paul at xelerance.com Thu Oct 6 15:44:42 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 17:44:42 +0200 (CEST) Subject: [ldns-users] ldns fedora spec file and signed binaries available In-Reply-To: <4344F532.4010904@NLnetLabs.nl> References: <4344F532.4010904@NLnetLabs.nl> Message-ID: On Thu, 6 Oct 2005, Jelte Jansen wrote: > I think the problem with the install directories was that we did not put > $(DESTDIR) in our makefile install targets, so i've added them. Am i > correct? (if so, it should work now, i've changed the ugly configure > line in the .spec back to just ./configure) > > btw. we were planning on doing a big release real soon now (1.0.0). So > if you have anything else that you think should really be in i/fixed let > us know Attached is the updated spec file. It builds correctly on my systems. It now includes /usr/bin/drill in the ldns package, and uses DESTDIR=%{buildroot} (if you can port those changes to nsd, that would be great too :) 'make examples' has been commented out, since building that breaks on a missing examples/configure file. If it does build, add the resulting installed files to either the regular package or the dev package %files section. Paul -- "Happiness is never grand" --- Mustapha Mond, World Controller (Brave New World) -------------- next part -------------- Summary: Lowlevel DNS(SEC) library with API Name: ldns Version: 1.0.0 Release: 3 License: LGPL Url: http://open.nlnetlabs.nl/%{name}/ Source: http://open.nlnetlabs.nl/downloads/%{name}-%{version}.tar.gz Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: openssl BuildRequires: libtool, autoconf, automake, gcc-c++, openssl-devel, doxygen %description ldns is a library with the aim to simplify DNS programing in C. All lowlevel DNS/DNSSEC operations are supported. We also define a higher level API which allows a programmer to (for instance) create or sign packets. %package devel Summary: Development package that includes the ldns header files Group: Development/Libraries Requires: %{name} = %{version}-%{release}, openssl-devel %description devel The devel package contains the ldns library and the include files %prep rm -rf %{buildroot} %setup -q libtoolize autoreconf %configure %build %{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags} drill #%{__make} %{?_smp_mflags} examples %{__make} %{?_smp_mflags} doc %install export DESTDIR=%{buildroot} %{__make} install %{__make} install-doc %{__make} drill-install #%{__make} examples #remove doc stubs rm -rf doc/.svn #remove double set of man pages rm -rf doc/man %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_libdir}/libldns*so %{_bindir}/drill %doc README LICENSE ROADMAP TODO %doc %{_mandir}/*/* %files devel %defattr(-,root,root,-) %{_libdir}/libldns.la %{_libdir}/libldns.a %dir %{_includedir}/ldns/* %doc doc %doc Changelog COMPILE %pre %post /sbin/ldconfig %postun /sbin/ldconfig %changelog * Wed Oct 6 2005 Paul Wouters - 1.0.0 - reworked for svn version using DESTDIR. Added drill * Sun Sep 25 2005 Paul Wouters - 0.70 - Initial version From paul at xelerance.com Thu Oct 6 15:51:34 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 17:51:34 +0200 (CEST) Subject: [ldns-users] man1 pages not installed? Message-ID: I also noticed man1 pages are in doc/*, but not installed with the man3 pages. Is that on purpose, or should the man pages be installed in man1? Right now, this means the man1 files end up in the ldns-devel package in doc, and not in the ldns package itself, in the proper man directories. Paul -- "Happiness is never grand" --- Mustapha Mond, World Controller (Brave New World) From miekg at atoom.net Thu Oct 6 16:28:10 2005 From: miekg at atoom.net (Miek Gieben) Date: Thu, 6 Oct 2005 18:28:10 +0200 Subject: [ldns-users] man1 pages not installed? In-Reply-To: References: Message-ID: <20051006162810.GA14331@atoom.net> [On 06 Oct, @17:51, Paul Wouters wrote in "[ldns-users] man1 pages not in ..."] > > I also noticed man1 pages are in doc/*, but not installed with the man3 > pages. Is that on purpose, or should the man pages be installed in man1? the man1 pages are the manual pages for the examples now found in the examples/ directory. So your right in thinking that are not installed. I'm actually not sure what to do with them, put them in examples/ or leave them in doc/ -- grtz, - Miek http://www.miek.nl http://www.nlnetlabs.nl PGP Key ID: 0x3880D0F6 fingerprint = 6A3C F450 6D4E 7C6B C23C F982 258B 85CF 3880 D0F6 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From paul at xelerance.com Thu Oct 6 16:33:55 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 18:33:55 +0200 (CEST) Subject: [ldns-users] man1 pages not installed? In-Reply-To: <20051006162810.GA14331@atoom.net> References: <20051006162810.GA14331@atoom.net> Message-ID: On Thu, 6 Oct 2005, Miek Gieben wrote: > the man1 pages are the manual pages for the examples now found in the > examples/ directory. So your right in thinking that are not installed. ah > I'm actually not sure what to do with them, put them in examples/ or > leave them in doc/ If you leave them in doc/ you should not put them in man format. Endusers should not need to 'nroff -man foo.1|less' to read documentation :) Paul -- "Happiness is never grand" --- Mustapha Mond, World Controller (Brave New World) From miekg at atoom.net Thu Oct 6 16:34:04 2005 From: miekg at atoom.net (Miek Gieben) Date: Thu, 6 Oct 2005 18:34:04 +0200 Subject: [ldns-users] man1 pages not installed? In-Reply-To: References: <20051006162810.GA14331@atoom.net> Message-ID: <20051006163403.GB14331@atoom.net> [On 06 Oct, @18:33, Paul Wouters wrote in "Re: [ldns-users] man1 pages no ..."] > If you leave them in doc/ you should not put them in man format. Endusers > should not need to 'nroff -man foo.1|less' to read documentation :) I actually prefer man ./page :-) grtz Miek -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From paul at xelerance.com Thu Oct 6 17:13:19 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 19:13:19 +0200 (CEST) Subject: [ldns-users] distclean In-Reply-To: <20051006163403.GB14331@atoom.net> References: <20051006162810.GA14331@atoom.net> <20051006163403.GB14331@atoom.net> Message-ID: On Thu, 6 Oct 2005, Miek Gieben wrote: (cd drill ; make -f Makefile distclean) make[1]: Entering directory `/usr/src/redhat/SOURCES/ldns-1.0.0/drill' make[1]: Makefile: No such file or directory make[1]: *** No rule to make target `Makefile'. Stop. make[1]: Leaving directory `/usr/src/redhat/SOURCES/ldns-1.0.0/drill' make: *** [distclean] Error 2 the dirll make distclean target needs fixing :) Paul -- "Happiness is never grand" --- Mustapha Mond, World Controller (Brave New World) From paul at xelerance.com Thu Oct 6 17:18:25 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 19:18:25 +0200 (CEST) Subject: [ldns-users] distclean In-Reply-To: References: <20051006162810.GA14331@atoom.net> <20051006163403.GB14331@atoom.net> Message-ID: On Thu, 6 Oct 2005, Paul Wouters wrote: > On Thu, 6 Oct 2005, Miek Gieben wrote: > > (cd drill ; make -f Makefile distclean) > make[1]: Entering directory `/usr/src/redhat/SOURCES/ldns-1.0.0/drill' > make[1]: Makefile: No such file or directory > make[1]: *** No rule to make target `Makefile'. Stop. > make[1]: Leaving directory `/usr/src/redhat/SOURCES/ldns-1.0.0/drill' > make: *** [distclean] Error 2 > > the dirll make distclean target needs fixing :) As a result of that, we probably have this: + libtoolize libtoolize: `config.guess' exists: use `--force' to overwrite libtoolize: `config.sub' exists: use `--force' to overwrite perhaps: -(cd drill ; $(MAKE) -f Makefile distclean) +(cd drill; if [ -f Makefile ] ; then $(MAKE) -f Makefile distclean) ; fi; Paul -- "Happiness is never grand" --- Mustapha Mond, World Controller (Brave New World) From paul at xelerance.com Thu Oct 6 17:39:33 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 19:39:33 +0200 (CEST) Subject: [ldns-users] ldns 1.0.0-3 rpms uploaded In-Reply-To: References: <20051006162810.GA14331@atoom.net> <20051006163403.GB14331@atoom.net> Message-ID: I have signed and uploaded new packages of ldns, version 1.0.0-3. If you added ldns to yum, you can just run 'yum install ldns' to get the new packages. Otherwise, get them at: ftp://ftp.xelerance.com/ldns/binaries/ If there are any problems with the rpms, please let me know. Once I've finished my Xen FC3 image, I'll also build ldns/nsd packages for FC3. Paul From paul at xelerance.com Thu Oct 6 20:42:46 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 6 Oct 2005 22:42:46 +0200 (CEST) Subject: [ldns-users] ldns 1.0.0-3 rpms uploaded In-Reply-To: References: <20051006162810.GA14331@atoom.net> <20051006163403.GB14331@atoom.net> Message-ID: On Thu, 6 Oct 2005, Paul Wouters wrote: > ftp://ftp.xelerance.com/ldns/binaries/ > > If there are any problems with the rpms, please let me know. Once I've > finished my Xen FC3 image, I'll also build ldns/nsd packages for FC3. signed FC3 binaries have been added to the yum repositories. Have fun :) Paul -- "Happiness is never grand" --- Mustapha Mond, World Controller (Brave New World) From jelte at NLnetLabs.nl Tue Oct 11 09:08:50 2005 From: jelte at NLnetLabs.nl (Jelte Jansen) Date: Tue, 11 Oct 2005 11:08:50 +0200 Subject: [ldns-users] ldns 1.0.0-3 rpms uploaded In-Reply-To: References: <20051006162810.GA14331@atoom.net> <20051006163403.GB14331@atoom.net> Message-ID: <434B8122.9040908@NLnetLabs.nl> Paul Wouters wrote: > On Thu, 6 Oct 2005, Paul Wouters wrote: > > >>ftp://ftp.xelerance.com/ldns/binaries/ >> >>If there are any problems with the rpms, please let me know. Once I've >>finished my Xen FC3 image, I'll also build ldns/nsd packages for FC3. > > > signed FC3 binaries have been added to the yum repositories. Have fun :) > > Paul Nice :) btw, I think i've processed all your comments, anything else? Jelte -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 256 bytes Desc: OpenPGP digital signature URL: From paul at xelerance.com Tue Oct 11 12:18:35 2005 From: paul at xelerance.com (Paul Wouters) Date: Tue, 11 Oct 2005 14:18:35 +0200 (CEST) Subject: [ldns-users] ldns 1.0.0-3 rpms uploaded In-Reply-To: <434B8122.9040908@NLnetLabs.nl> References: <20051006162810.GA14331@atoom.net> <20051006163403.GB14331@atoom.net> <434B8122.9040908@NLnetLabs.nl> Message-ID: On Tue, 11 Oct 2005, Jelte Jansen wrote: > btw, I think i've processed all your comments, anything else? I think two issues are left: 1) 'make examples' is broken (and has no install target) 2) man pages are installed in mandir as well as doc/man. (and confusion about the .1 manpages which are not installed in man1/) I assume any final release would not have .svn directories in it? But other then that, no comments :) Paul -- "Happiness is never grand" --- Mustapha Mond, World Controller (Brave New World) From jelte at NLnetLabs.nl Tue Oct 11 12:48:26 2005 From: jelte at NLnetLabs.nl (Jelte Jansen) Date: Tue, 11 Oct 2005 14:48:26 +0200 Subject: [ldns-users] ldns 1.0.0-3 rpms uploaded In-Reply-To: References: <20051006162810.GA14331@atoom.net> <20051006163403.GB14331@atoom.net> <434B8122.9040908@NLnetLabs.nl> Message-ID: <434BB49A.7040808@NLnetLabs.nl> Paul Wouters wrote: > On Tue, 11 Oct 2005, Jelte Jansen wrote: > >> btw, I think i've processed all your comments, anything else? > > > I think two issues are left: > > 1) 'make examples' is broken (and has no install target) > examples needs to be autoreconfd before make examples works, (or you can do make allautoconf after configure in the base dir) > 2) man pages are installed in mandir as well as doc/man. > (and confusion about the .1 manpages which are not installed in man1/) > currently the .1 pages are only installed if their accompanying program is installed (so either the examples or drill) > I assume any final release would not have .svn directories in it? > of course, and they will be autoconf'd already (so make examples should work there) > But other then that, no comments :) > great :) Jelte -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 256 bytes Desc: OpenPGP digital signature URL: From paul at xelerance.com Tue Oct 11 14:12:42 2005 From: paul at xelerance.com (Paul Wouters) Date: Tue, 11 Oct 2005 16:12:42 +0200 (CEST) Subject: [ldns-users] ldns 1.0.0-3 rpms uploaded In-Reply-To: <434BB49A.7040808@NLnetLabs.nl> References: <20051006162810.GA14331@atoom.net> <20051006163403.GB14331@atoom.net> <434B8122.9040908@NLnetLabs.nl> <434BB49A.7040808@NLnetLabs.nl> Message-ID: On Tue, 11 Oct 2005, Jelte Jansen wrote: >> 1) 'make examples' is broken (and has no install target) >> > > examples needs to be autoreconfd before make examples works, (or you can > do make allautoconf after configure in the base dir) Okay. Added to the specfile. These gave me on x86_64: gcc -I. -I.. -I../.. -g -O2 -c .././examples/ldns-signzone.c .././examples/ldns-signzone.c: In function 'main': .././examples/ldns-signzone.c:91: warning: cast to pointer from integer of different size .././examples/ldns-signzone.c:93: warning: cast to pointer from integer of different size .././examples/ldns-signzone.c:106: warning: cast to pointer from integer of different size .././examples/ldns-signzone.c:108: warning: cast to pointer from integer of different size >> 2) man pages are installed in mandir as well as doc/man. >> (and confusion about the .1 manpages which are not installed in man1/) >> > > currently the .1 pages are only installed if their accompanying program > is installed (so either the examples or drill) not on my version :) install: $(PROGRAMS) $(INSTALL) -d -m 755 $(DESTDIR)$(bindir) for i in $(PROGRAMS); do \ ${INSTALL} -c $$i $(DESTDIR)$(bindir) ; done exit 0 In drill it works: make[1]: Entering directory `/usr/src/redhat/BUILD/ldns-1.0.0/drill' .././drill/install-sh -c -d /var/tmp/ldns-1.0.0-4-root-root/usr/bin .././drill/install-sh -c drill /var/tmp/ldns-1.0.0-4-root-root/usr/bin/drill .././drill/install-sh -c -m 644 .././drill/drill.1 /var/tmp/ldns-1.0.0-4-root-root/usr/share/man/man1/drill.1 make[1]: Leaving directory `/usr/src/redhat/BUILD/ldns-1.0.0/drill' but in examples: + /usr/bin/make examples-install ( cd examples ; /usr/bin/make -f Makefile install) make[1]: Entering directory `/usr/src/redhat/BUILD/ldns-1.0.0/examples' .././examples/../install-sh -d -m 755 /var/tmp/ldns-1.0.0-4-root-root/usr/bin for i in ldns-read-zone ldns-mx ldns-chaos ldns-update ldns-keygen ldns-key2ds ldns-signzone ldns-version; do \ .././examples/../install-sh -c $i /var/tmp/ldns-1.0.0-4-root-root/usr/bin ; done exit 0 make[1]: Leaving directory `/usr/src/redhat/BUILD/ldns-1.0.0/examples' + /usr/bin/make install-doc ./install-sh -d doc doxygen ./libdns.doxygen cat ./ldns/*.h | ./doc/doxyparse.pl -m ./doc/function_manpages 2>&1 | \ grep -v ^doxygen | grep -v ^cat > doc/ldns_manpages ./install-sh -d /var/tmp/ldns-1.0.0-4-root-root/usr/share/man/man3 cp -Rp doc/man/man3/* /var/tmp/ldns-1.0.0-4-root-root/usr/share/man/man3/ ./install-sh -d /var/tmp/ldns-1.0.0-4-root-root/usr/share/man/man1 for i in ; do \ ./install-sh -c -m 644 ./doc/$i.1 /var/tmp/ldns-1.0.0-4-root-root/usr/share/man/man1 ; done exit 0 I have attached packaging/fedora/ldns.spec version 1.0.0-4 that correctly builds and installs the examples. Paul -- "Happiness is never grand" --- Mustapha Mond, World Controller (Brave New World) -------------- next part -------------- Summary: Lowlevel DNS(SEC) library with API Name: ldns Version: 1.0.0 Release: 4 License: LGPL Url: http://open.nlnetlabs.nl/%{name}/ Source: http://open.nlnetlabs.nl/downloads/%{name}-%{version}.tar.gz Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: openssl BuildRequires: libtool, autoconf, automake, gcc-c++, openssl-devel, doxygen %description ldns is a library with the aim to simplify DNS programing in C. All lowlevel DNS/DNSSEC operations are supported. We also define a higher level API which allows a programmer to (for instance) create or sign packets. %package devel Summary: Development package that includes the ldns header files Group: Development/Libraries Requires: %{name} = %{version}-%{release}, openssl-devel %description devel The devel package contains the ldns library and the include files %prep rm -rf %{buildroot} %setup -q libtoolize autoreconf %configure %build %{__make} %{?_smp_mflags} allautoconf %{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags} drill %{__make} %{?_smp_mflags} examples %{__make} %{?_smp_mflags} doc %install export DESTDIR=%{buildroot} %{__make} install %{__make} examples-install %{__make} install-doc %{__make} drill-install #remove doc stubs rm -rf doc/.svn #remove double set of man pages rm -rf doc/man %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_libdir}/libldns*so %{_bindir}/drill %{_bindir}/ldns-* %doc README LICENSE ROADMAP TODO %doc %{_mandir}/*/* %files devel %defattr(-,root,root,-) %{_libdir}/libldns.la %{_libdir}/libldns.a %dir %{_includedir}/ldns/* %doc doc %doc Changelog COMPILE %pre %post /sbin/ldconfig %postun /sbin/ldconfig %changelog * Wed Oct 5 2005 Paul Wouters 0.70_1205 - reworked for svn version * Sun Sep 25 2005 Paul Wouters - 0.70 - Initial version From jelte at NLnetLabs.nl Thu Oct 20 13:00:51 2005 From: jelte at NLnetLabs.nl (Jelte Jansen) Date: Thu, 20 Oct 2005 15:00:51 +0200 Subject: [ldns-users] ldns 1.0.0 Message-ID: <43579503.3040603@NLnetLabs.nl> Hi, we've just released ldns 1.0.0! You can get it at: http://www.nlnetlabs.nl/ldns Many thanks to all involved. Most important changes: * Commited a patch from H?kan Olsson * Added UPDATE support (Jakob Schlyter and H?kan Olsson) * License change: ldns is now BSD licensed * ldns now depends on SSL * Networking code cleanup, added (some) server udp/tcp support * A zone type is introduced. Currently this is a list of RRs, so it will not scale well. * [beta] Zonefile parsing was added * [tools] Drill was added to ldns - see drill/ * [tools] experimental signer was added * [building] better check for ssl * [building] major revision of build system * [building] added rpm .spec in packaging/ (thanks to Paul Wouters) * [building] A lot of cleanup in the build scripts (thanks to Jakob Schlyter and Paul Wouters) Miek & Jelte NLnet Labs From paul at xelerance.com Thu Oct 20 20:34:22 2005 From: paul at xelerance.com (Paul Wouters) Date: Thu, 20 Oct 2005 22:34:22 +0200 (CEST) Subject: [ldns-users] ldns 1.0.0 rpms released Message-ID: > > Hi, > > we've just released ldns 1.0.0! You can get it at: > > http://www.nlnetlabs.nl/ldns > > Many thanks to all involved. Source and binary rpms for Fedora Core 3 and 4 for intel and x86_64 have been built. They have been added to the yum repositories on ftp://ftp.xelerance.com/ldns/binaries/ Redhat Linux 9 rpms have not been built since ldns require a newer development system then that is available for Redhat Linux 9. If you already configured yum, a simple 'yum update' should suffice to get the new version of ldns. Signed by my key, paul at xelerance.com, available on keyservers or by using the command 'finger paul at xelerance.com'. If you have problems with any of these rpms, please let me (or the list) know. Paul