]> git.pld-linux.org Git - packages/pdnsd.git/commitdiff
- partialy rewrited byt NYF.
authorkloczek <kloczek@pld-linux.org>
Mon, 25 Sep 2000 06:23:28 +0000 (06:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pdnsd.spec -> 1.2

pdnsd.spec

index 3a6bd8fd3a101c97b9d69caa5f6e122beb09e87a..1fe3596171a2647e9719f6e25a6019a5896fac86 100644 (file)
@@ -1,52 +1,58 @@
-Summary: A caching dns proxy for small networks or dialin accounts
-Name: pdnsd
-Version: 1.0.3
-Release: 1
-Copyright: GPL
-Group: Daemons
-Source: pdnsd-1.0.3.tar.bz2
-vendor: Thomas Moestl
-distribution: RedHat 6.2 Linux
-packager: Daniel Smolik <smolik@corpus.cz>
-URL: http://home.t-online.de/home/Moestl/
-BuildRoot: /tmp/psnd-root
+Summary:       A caching dns proxy for small networks or dialin accounts
+Name:          pdnsd
+Version:       1.0.10
+Release:       1
+License:       GPL
+Vendor:                Thomas Moestl
+Group:         Daemons
+Group(de):     Server
+Group(pl):     Serwery
+Source0:       http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
+URL:           http://home.t-online.de/home/Moestl/
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
 %description
-pdnsd is a proxy DNS daemon with permanent (disk-)cache and the ability
-to serve local records. It is designed to detect network outages or hangups
-and to prevent DNS-dependent applications like Netscape Navigator from hanging.
+pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
+ability to serve local records. It is designed to detect network
+outages or hangups and to prevent DNS-dependent applications like
+Netscape Navigator from hanging.
+
 %prep
-%setup
+%setup -q
+
 %build
-make
+%configure \
+       --enable-ipv6
+%{__make}
 
 %install
-install -d -m 755  $RPM_BUILD_ROOT/etc
-install -d -m 755  $RPM_BUILD_ROOT/usr/sbin
-install  -o root -g root -m600 $RPM_BUILD_DIR/pdnsd-%{version}/doc/pdnsd.conf $RPM_BUILD_ROOT/etc/pdnsd.conf
-install  -o root -g root -m755 $RPM_BUILD_DIR/pdnsd-%{version}/pdnsd $RPM_BUILD_ROOT/usr/sbin/pdnsd
-install -d -o root -g root -m600   $RPM_BUILD_ROOT/var/cache/pdnsd
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
-install -m755 $RPM_BUILD_DIR/pdnsd-%{version}/rc/Redhat/pdnsd $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
 
-%clean                                                                          
-rm -rf $RPM_BUILD_ROOT                                                          
+gzip -9nf AUTHORS ChangeLog NEWS README TODO
+
+%clean
+rm -rf $RPM_BUILD_ROOT
                                                                                 
-%post                                                                           
+%post
 /sbin/chkconfig --add pdnsd
-                                                                                
-%preun                                                                          
-if [ $1 = 0 ]; then                                                             
-   /sbin/chkconfig --del pdnsd
-fi                      
-
 
+%preun
+if [ "$1" = "0" ]; then
+       /sbin/chkconfig --del pdnsd
+fi
 
 %files
-%doc AUTHORS COPYING ChangeLog  INSTALL NEWS README TODO doc/html/index.html doc/html/dl.html doc/html/doc.html doc/html/faq.html
+%defattr(644,root,root,755)
+%doc *.gz doc/html/index.html doc/html/dl.html doc/html/doc.html doc/html/faq.html
 %doc doc/txt/intro.txt doc/txt/manual.txt doc/txt/faq.txt
-%config /etc/pdnsd.conf
+%config %{_sysconfdir}/pdnsd.conf
 %dir /var/cache/pdnsd
 
-/usr/sbin/pdnsd
-/etc/rc.d/init.d/pdnsd
+%attr(755,root,root) %{_sbindir}/pdnsd
+%attr(754,root,root) /etc/rc.d/init.d/pdnsd
This page took 0.063405 seconds and 4 git commands to generate.