[ldns-users] ldns 1.0.0-3 rpms uploaded

Paul Wouters paul at xelerance.com
Tue Oct 11 14:12:42 UTC 2005

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.


"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

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

%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

rm -rf %{buildroot}
%setup -q 


%{__make} %{?_smp_mflags} allautoconf
%{__make} %{?_smp_mflags}
%{__make} %{?_smp_mflags} drill
%{__make} %{?_smp_mflags} examples
%{__make} %{?_smp_mflags} doc


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

rm -rf %{buildroot}

%doc %{_mandir}/*/*

%files devel
%dir %{_includedir}/ldns/*
%doc doc
%doc Changelog COMPILE 




* Wed Oct  5 2005 Paul Wouters <paul at xelerance.com> 0.70_1205
- reworked for svn version

* Sun Sep 25 2005 Paul Wouters <paul at xelerance.com> - 0.70
- Initial version

More information about the ldns-users mailing list