File project.diff of Package djbdns

--- djbdns.spec.orig
+++ djbdns.spec
@@ -1,25 +1,138 @@
 Name:		djbdns
 Summary:	Domain Name System tools
 Version:	1.05
-Release:	6
-License:	Copyright 2000 D. J. Bernstein <djb@pobox.com>
-Group:		System Environment/Daemons
-Source:		http://cr.yp.to/djbdns/djbdns-%{PACKAGE_VERSION}.tar.gz
+Release:	7
+Group:		System/Daemons
+Source0:	http://cr.yp.to/djbdns/djbdns-%{PACKAGE_VERSION}.tar.gz
+Source1:	%{name}-%{version}-rpmlintrc
 Patch0:		djbdns-ipv6-patch
 URL:		http://cr.yp.to/djbdns.html
-BuildRoot:	%{_tmppath}/%{name}-%{version}-build
-Packager:	happyman <happyman@vtdc.net>
+License:	Public Domain, Copyright(C) 2000 D.J. Bernstein <djb@pobox.com>
 PreReq:         pwdutils
-BuildRequires:	dietlibc make patch gcc
-Obsoletes:	dnscache
+BuildRequires:	dietlibc
+Conflicts:		dnscache
+BuildRoot:	%{_builddir}/%{name}-%{version}-build
+
 
 %description
 djbdns is a collection of Domain Name System tools.
 
+
+%prep
+%setup
+%patch0 -p1
+
+
+%build
+sed -i -e 's|/usr/local|%{_prefix}|g' conf-home
+CFLAGS="$RPM_OPT_FLAGS" %{__make} %{?jobs:-j%jobs}
+%debug_package
+
+
+%install
+%{__install} -d %{buildroot}%{_bindir}
+%{__install} -d %{buildroot}%{_sysconfdir}
+
+%{__install} -m 755 \
+	axfr-get axfrdns axfrdns-conf dnscache \
+	dnscache-conf dnsfilter dnsip dnsip6 dnsip6q \
+	dnsipq dnsmx dnsname dnsq dnsqr dnstrace \
+	dnstracesort dnstxt pickdns pickdns-conf \
+	pickdns-data random-ip rbldns rbldns-conf \
+	rbldns-data tinydns tinydns-conf \
+	tinydns-data tinydns-edit tinydns-get walldns \
+	walldns-conf %{buildroot}%{_bindir}
+
+%{__install} -m 644 \
+	dnsroots.global %{buildroot}%{_sysconfdir}
+
+
+%pre
+cat << END >adduser.sh
+#!/bin/sh
+
+if [ `grep -c djbdns /etc/group` -eq 0 ] ; then
+        /usr/sbin/groupadd -g 70 -o djbdns
+        /usr/sbin/useradd -g djbdns -u 700 \
+		-m -d '/var/lib/svscan/tinydns' \
+		-s /bin/false tinydns && \
+        /usr/sbin/useradd -g djbdns -u 701 \
+		-m -d '/var/lib/svscan/axfrdns' \
+		-s /bin/false dnslog && \
+		/usr/sbin/useradd -g djbdns -u 702 \
+		-m -d '/var/lib/svscan/dnscache' \
+		-s /bin/false dnscache && \
+        echo "djbdns user accounts created..." || \
+        echo "An error ocurred while adding user accounts..."
+else
+        echo "djbdns user and group already configured,please check tinydns,dnscache and dnslog accounts."
+fi
+END
+chmod 750 adduser.sh
+./adduser.sh
+
+
+%post
+echo """
+Now you can start configuring djbdns !!
+
+NOTICE:
+_______
+If you upgraded from a previous RPM,
+please check your run (sysinit) scripts.
+Binaries were moved to /usr/bin
+
+"""
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root)
+%config%{_sysconfdir}/dnsroots.global
+%{_bindir}/axfr-get
+%{_bindir}/axfrdns
+%{_bindir}/axfrdns-conf
+%{_bindir}/dnscache
+%{_bindir}/dnscache-conf
+%{_bindir}/dnsfilter
+%{_bindir}/dnsip
+%{_bindir}/dnsip6
+%{_bindir}/dnsip6q
+%{_bindir}/dnsipq
+%{_bindir}/dnsmx
+%{_bindir}/dnsname
+%{_bindir}/dnsq
+%{_bindir}/dnsqr
+%{_bindir}/dnstrace
+%{_bindir}/dnstracesort
+%{_bindir}/dnstxt
+%{_bindir}/pickdns
+%{_bindir}/pickdns-conf
+%{_bindir}/pickdns-data
+%{_bindir}/random-ip
+%{_bindir}/rbldns
+%{_bindir}/rbldns-conf
+%{_bindir}/rbldns-data
+%{_bindir}/tinydns
+%{_bindir}/tinydns-conf
+%{_bindir}/tinydns-data
+%{_bindir}/tinydns-edit
+%{_bindir}/tinydns-get
+%{_bindir}/walldns
+%{_bindir}/walldns-conf
+
+
 %changelog
+* Sat Aug 15 2009 Mario GarcĂ­a H. <code933k@gmail.com> - 1.05-7
+- Moved dns home to a much more standard and openSUSE suitable
+- place. Corrected some uninstallation inconsequences and some
+- little issues to please rpmlint overall.
 
-* Mon Mar 16 2009 Happyman Chiu <happyman@vtdc.net>
-- move to /usr/bin
+* Mon Mar 16 2009 Happyman Chiu <happyman@vtdc.net> - 1.05-6
+- Binaries moved to /usr/bin
 
 * Sat Jan 12 2008 Eric Chiu <happyman@idc.hinet.net>
 - License
@@ -73,60 +186,3 @@ djbdns is a collection of Domain Name Sy
 * Mon Feb 14 2000 Bruce Guenter <bruceg@em.ca>
 - Added RedHat specific *-conf script to put the log files in /var/log
 - Added dnsip to list of programs in /usr/bin
-
-
-%prep
-%setup
-%patch0 -p1
-
-%build
-sed -i -e 's|/usr/local|%{_prefix}|g' conf-home
-%{__make} CFLAGS="$RPM_OPT_FLAGS"
-
-%install
-%{__install} -d %{buildroot}%{_bindir}
-%{__install} -d %{buildroot}%{_sysconfdir}
-
-%{__install} -m 755 \
-	axfr-get axfrdns axfrdns-conf dnscache dnscache-conf dnsfilter dnsip dnsip6 dnsip6q \
-	dnsipq dnsmx dnsname dnsq dnsqr dnstrace dnstracesort dnstxt pickdns pickdns-conf \
-	pickdns-data random-ip rbldns rbldns-conf rbldns-data tinydns tinydns-conf \
-	tinydns-data tinydns-edit tinydns-get walldns walldns-conf \
-	%{buildroot}%{_bindir}
-
-%{__install} -m 644 \
-	dnsroots.global %{buildroot}%{_sysconfdir}
-
-%pre
-cat << END >adduser.sh
-#!/bin/sh
-
-if [ `grep -c djbdns /etc/group` -eq 0 ] ; then
-        echo "Add djbdns accounts..."
-        /usr/sbin/groupadd -g 70 -o djbdns
-        /usr/sbin/useradd -g djbdns -u 700 tinydns
-        /usr/sbin/useradd -g djbdns -u 701 dnslog
-        /usr/sbin/useradd -g djbdns -u 702 dnscache
-else
-        echo "djbdns user and group already configured,please check tinydns,dnscache,dnslog account."
-fi
-END
-chmod 755 adduser.sh
-./adduser.sh
-
-%post
-
-echo "Now you can start configure djbdns!"
-echo "Note "
-echo "Note if you upgrade from privious RPM, please check run scripts. we move binaries to /usr/bin"
-echo "Note "
-
-
-
-%clean
-%{__rm} -rf %{buildroot}
-
-%files
-%defattr(-,root,root)
-%{_bindir}/*
-%{_sysconfdir}/*
openSUSE Build Service is sponsored by