packages: iptables/iptables.spec - install upstart scripts

glen glen at pld-linux.org
Fri Aug 12 22:03:50 CEST 2011


Author: glen                         Date: Fri Aug 12 20:03:50 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- install upstart scripts

---- Files affected:
packages/iptables:
   iptables.spec (1.302 -> 1.303) 

---- Diffs:

================================================================
Index: packages/iptables/iptables.spec
diff -u packages/iptables/iptables.spec:1.302 packages/iptables/iptables.spec:1.303
--- packages/iptables/iptables.spec:1.302	Sun Jun 12 22:49:01 2011
+++ packages/iptables/iptables.spec	Fri Aug 12 22:03:44 2011
@@ -34,7 +34,7 @@
 Summary(zh_CN.UTF-8):	Linux内核包过滤管理工具
 Name:		iptables
 Version:	1.4.11.1
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Networking/Admin
 Source0:	ftp://ftp.netfilter.org/pub/iptables/%{name}-%{version}.tar.bz2
@@ -43,6 +43,8 @@
 # Source1-md5:	2ed2b452daefe70ededd75dc0061fd07
 Source2:	%{name}.init
 Source3:	%{name6}.init
+Source4:	%{name}.upstart
+Source5:	%{name6}.upstart
 # --- GENERAL CHANGES (patches<10):
 Patch0:		%{name}-man.patch
 # additional utils; off by default
@@ -223,8 +225,11 @@
 	MANDIR=%{_mandir} \
 	LIBDIR=%{_libdir}
 
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name6}
+install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name6}
+install -d $RPM_BUILD_ROOT/etc/init
+cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/init/%{name}.conf
+cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/init/%{name6}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -418,6 +423,8 @@
 %defattr(644,root,root,755)
 %attr(754,root,root) /etc/rc.d/init.d/iptables
 %attr(754,root,root) /etc/rc.d/init.d/ip6tables
+%config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/init/%{name6}.conf
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -425,6 +432,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.303  2011/08/12 20:03:44  glen
+- install upstart scripts
+
 Revision 1.302  2011/06/12 20:49:01  arekm
 - rel 2; we have only texlive in th so get BR there
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/iptables/iptables.spec?r1=1.302&r2=1.303&f=u



More information about the pld-cvs-commit mailing list