SPECS: bind.spec rel 3; for th we are brave enough to drop /dev fr...

arekm arekm at pld-linux.org
Fri Jun 1 23:00:48 CEST 2007


Author: arekm                        Date: Fri Jun  1 21:00:48 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
rel 3; for th we are brave enough to drop /dev from inside of chroot

---- Files affected:
SPECS:
   bind.spec (1.251 -> 1.252) 

---- Diffs:

================================================================
Index: SPECS/bind.spec
diff -u SPECS/bind.spec:1.251 SPECS/bind.spec:1.252
--- SPECS/bind.spec:1.251	Fri Jun  1 20:33:23 2007
+++ SPECS/bind.spec	Fri Jun  1 23:00:43 2007
@@ -21,7 +21,7 @@
 Summary(zh_CN.UTF-8):	Internet 域名服务器
 Name:		bind
 Version:	9.4.1
-Release:	2
+Release:	3
 Epoch:		6
 License:	BSD-like
 Group:		Networking/Daemons
@@ -402,7 +402,7 @@
 ln -sf %{_var}/lib/named/named.log	$RPM_BUILD_ROOT%{_var}/log/named
 ln -sf %{_var}/lib/named/named.stats	$RPM_BUILD_ROOT%{_var}/log/named.stats
 
-touch $RPM_BUILD_ROOT%{_var}/lib/named/{named.{log,stats},dev/null}
+touch $RPM_BUILD_ROOT%{_var}/lib/named/named.{log,stats}
 
 %{?with_ldap:install -d $RPM_BUILD_ROOT%{_datadir}/openldap/schema}
 %{?with_ldap:install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/openldap/schema/dnszone.schema}
@@ -428,18 +428,6 @@
 %useradd -u 58 -g 58 -d /tmp -s /bin/false -c "BIND user" named
 
 %post
-if [ "$1" = 1 ]; then
-	mknod -m 660 %{_var}/lib/named/dev/null c 1 3 2>/dev/null
-	chown root:named %{_var}/lib/named/dev/null 2>/dev/null
-	if [ ! -c %{_var}/lib/named/dev/null ]; then
-%banner -e %{name}-devs <<-EOF
-Device node was not created!!!
-
-Please read PLD Linux Vserver FAQ if you're installing %{name} inside
-vserver: <http://www.pld-linux.org/Vserver>.
-EOF
-	fi #'
-fi
 /sbin/chkconfig --add named
 %service named restart
 
@@ -494,10 +482,6 @@
 %attr(660,named,named) %ghost  %{_var}/lib/named/named.log
 %attr(660,named,named) %ghost  %{_var}/lib/named/named.stats
 
-# devices for chrooted bind
-%attr(750,root,named) %dir %{_var}/lib/named/dev
-%ghost %attr(660,root,named) %{_var}/lib/named/dev/null
-
 %files utils
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/dig
@@ -553,6 +537,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.252  2007/06/01 21:00:43  arekm
+rel 3; for th we are brave enough to drop /dev from inside of chroot
+
 Revision 1.251  2007/06/01 18:33:23  arekm
 - rel 2; add trigger that comments out invalit categories from config
 
================================================================

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



More information about the pld-cvs-commit mailing list