SPECS: vzctl.spec - little cleanup
paszczus
paszczus at pld-linux.org
Wed May 28 13:53:58 CEST 2008
Author: paszczus Date: Wed May 28 11:53:58 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- little cleanup
---- Files affected:
SPECS:
vzctl.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/vzctl.spec
diff -u SPECS/vzctl.spec:1.1 SPECS/vzctl.spec:1.2
--- SPECS/vzctl.spec:1.1 Wed May 28 13:40:19 2008
+++ SPECS/vzctl.spec Wed May 28 13:53:52 2008
@@ -1,4 +1,5 @@
# $Revision$, $Date$
+#
%define _initddir %_sysconfdir/init.d
%define _vzdir /vz
%define _lockdir %{_vzdir}/lock
@@ -79,6 +80,28 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/bin/rm -rf /dev/vzctl
+/bin/mknod -m 600 /dev/vzctl c 126 0
+if [ -f %{_configdir}/vz.conf ]; then
+ if ! grep "IPTABLES=" %{_configdir}/vz.conf >/dev/null 2>&1; then
+ echo 'IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"' >> %{_configdir}/vz.conf
+ fi
+fi
+/sbin/chkconfig --add vz > /dev/null 2>&1
+
+%preun
+if [ $1 = 0 ]; then
+ /sbin/chkconfig --del vz >/dev/null 2>&1
+fi
+
+%package lib
+Summary: Virtual Environments control API library
+Group: Base/Kernel
+
+%description lib
+Virtual Environments control API library
+
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_initddir}/vz
@@ -144,39 +167,6 @@
%attr(777, root, root) %{_sysconfdir}/vz/conf
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vz
-%post
-/bin/rm -rf /dev/vzctl
-/bin/mknod -m 600 /dev/vzctl c 126 0
-if [ -f %{_configdir}/vz.conf ]; then
- if ! grep "IPTABLES=" %{_configdir}/vz.conf >/dev/null 2>&1; then
- echo 'IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"' >> %{_configdir}/vz.conf
- fi
-fi
-/sbin/chkconfig --add vz > /dev/null 2>&1
-
-if [ -f %{_sysconfdir}/SuSE-release ]; then
- NET_CFG='ifdown-venet ifup-venet'
- if ! grep -q -E "^alias venet0" /etc/modprobe.conf; then
- echo "alias venet0 vznet" >> /etc/modprobe.conf
- fi
- ln -f /etc/sysconfig/network-scripts/ifcfg-venet0 /etc/sysconfig/network/ifcfg-venet0
- for file in ${NET_CFG}; do
- ln -sf /etc/sysconfig/network-scripts/${file} /etc/sysconfig/network/scripts/${file}
- done
-fi
-
-%preun
-if [ $1 = 0 ]; then
- /sbin/chkconfig --del vz >/dev/null 2>&1
-fi
-
-%package lib
-Summary: Virtual Environments control API library
-Group: Base/Kernel
-
-%description lib
-Virtual Environments control API library
-
%files lib
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libvzctl-*.so
@@ -194,6 +184,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2008-05-28 11:53:52 paszczus
+- little cleanup
+
Revision 1.1 2008-05-28 11:40:19 paszczus
- initial, raw from redhat spec
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/vzctl.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list