SPECS (AC-branch): bind.spec - /var/lib/named/dev/{null, random} sh...

twittner twittner at pld-linux.org
Sat Oct 8 22:06:57 CEST 2005


Author: twittner                     Date: Sat Oct  8 20:06:57 2005 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- /var/lib/named/dev/{null,random} should be devices no ordinary files -
  - fixed (backport from HEAD)
- rel. 2.1 - builds, not tested (to sb: test it then bump rel.)

---- Files affected:
SPECS:
   bind.spec (1.198.2.5 -> 1.198.2.6) 

---- Diffs:

================================================================
Index: SPECS/bind.spec
diff -u SPECS/bind.spec:1.198.2.5 SPECS/bind.spec:1.198.2.6
--- SPECS/bind.spec:1.198.2.5	Thu May  5 11:45:10 2005
+++ SPECS/bind.spec	Sat Oct  8 22:06:52 2005
@@ -4,6 +4,7 @@
 %bcond_without	ssl	# build without OpenSSL support
 %bcond_without	ipv6	# build without IPv6 support
 %bcond_without	ldap	# build without LDAP support
+%bcond_without	static_libs # build without static libraries
 #
 Summary:	BIND - DNS name server
 Summary(de):	BIND - DNS-Namenserver
@@ -17,7 +18,7 @@
 Summary(zh_CN):	Internet ÓňĂűˇţÎńĆ÷
 Name:		bind
 Version:	9.2.5
-Release:	2
+Release:	2.1
 Epoch:		6
 License:	BSD-like
 Group:		Networking/Daemons
@@ -332,6 +333,7 @@
 	--enable-threads \
 	%{?with_ipv6:--enable-ipv6} \
 	--enable-libbind \
+	%{!?with_static_libs:--enable-static=no} \
 	--with-idn
 %{__make}
 
@@ -451,27 +453,30 @@
 
 %{?with_ldap:%{_datadir}/openldap/schema/*.schema}
 
+%{_mandir}/man5/named.conf*
+%{_mandir}/man5/rndc*
 %{_mandir}/man8/dns*
 %{_mandir}/man8/lwres*
 %{_mandir}/man8/named*
 %{_mandir}/man8/rndc*
-%{_mandir}/man5/rndc*
 %lang(ja) %{_mandir}/ja/man8/named*
 
 %attr(770,root,named) %dir %{_var}/lib/named
 %attr(770,root,named) %dir %{_var}/lib/named/M
 %attr(770,root,named) %dir %{_var}/lib/named/S
 %attr(750,root,named) %dir %{_var}/lib/named%{_sysconfdir}
-%attr(770,root,named) %dir %{_var}/lib/named/dev
 
 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named/M/*
 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named/root.*
 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) %{_var}/lib/named%{_sysconfdir}/*
 
-#%ghost %{_var}/lib/named/dev/*
-%attr(770,root,named) %{_var}/lib/named/dev/*
 %attr(660,named,named) %ghost %{_var}/log/named*
 
+# devices for chrooted bind
+%attr(750,root,named) %dir %{_var}/lib/named/dev
+%dev(c,1,3) %attr(660,root,named) %{_var}/lib/named/dev/null
+%dev(c,1,8) %attr(640,root,named) %{_var}/lib/named/dev/random
+
 %files utils
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/dig
@@ -508,9 +513,11 @@
 %{_includedir}/*
 %{_mandir}/man3/*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/*.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -518,6 +525,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.198.2.6  2005/10/08 20:06:52  twittner
+- /var/lib/named/dev/{null,random} should be devices no ordinary files -
+  - fixed (backport from HEAD)
+- rel. 2.1 - builds, not tested (to sb: test it then bump rel.)
+
 Revision 1.198.2.5  2005/05/05 09:45:10  qboosh
 - cleanup
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/bind.spec?r1=1.198.2.5&r2=1.198.2.6&f=u




More information about the pld-cvs-commit mailing list