6 %define name util-vserver-pl
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 %define python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" )
14 Summary: PlanetLab extensions to util-vserver
19 Group: System Environment/Base
20 Source0: %{name}-%{version}.tar.bz2
21 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
24 Packager: PlanetLab Central <support@planet-lab.org>
25 Distribution: PlanetLab %{plrelease}
26 URL: %(echo %{url} | cut -d ' ' -f 2)
28 Requires: util-vserver util-vserver-core util-vserver-build util-vserver-sysv
29 Provides: util-vserver-python = %{version}-%{release}
30 Obsoletes: util-vserver-py32 resman
31 BuildRequires: util-vserver-core util-vserver-devel
32 BuildRequires: autoconf automake libtool
35 This package contains all PlanetLab extensions to util-vserver.
49 make DESTDIR=%{buildroot} install
51 mkdir %{buildroot}/bin
52 ln -s ..%{_sbindir}/vsh %{buildroot}/bin/vsh
54 rm -f %{buildroot}%{python_sitearch}/vserverimpl.a
55 rm -f %{buildroot}%{python_sitearch}/vserverimpl.la
57 # Generate file list for python package
58 find "%{buildroot}" -name '*.py' | { while read FILE; do
59 f="${FILE#%{buildroot}}"
61 # need to touch these files, as they are not produced on FC4 or below
66 done } > %name-python.list
70 # add /bin/vsh to list of secure shells
71 if [ ! -f /etc/shells ] || ! grep -q '^/bin/vsh$' /etc/shells ; then
72 echo /bin/vsh >> /etc/shells
77 # 0 = erase, 1 = upgrade
78 if [ "$1" = 0 ] ; then
79 perl -i -n -e 'next if /^\/bin\/vsh$/; print' /etc/shells
87 %files -f %name-python.list
88 %defattr(-,root,root,-)
93 %{python_sitearch}/vserverimpl.so
95 %attr(4755,root,root) %{_sbindir}/vsh
97 %{_mandir}/man8/vsh.8*
99 %{_sbindir}/vip6-autod
100 %{_sysconfdir}/init.d/vip6-autod
103 * Thu Aug 28 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - util-vserver-pl-0.3-11
104 - reads /etc/vservers/<name>/personality and behaves accordingly
105 - nicer formatting for byte rates
107 * Sun Aug 17 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-10
110 * Fri Aug 01 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-9
111 - Check running values before issuing set or on. If same, disregard to save on forks.
113 * Fri Jul 25 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-8
114 - exempt_init shouldn't modify iptables rules. Instead, only manipulate ipset. Assume iptables rules are setup properly (now downloaded from nodeconfig/PlanetLabConf for I2 and defaulted to iptables/planetlab-config for all other nodes).
116 * Tue Jul 22 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-7
117 - Init exempt flows into "mangle" table.
119 * Fri Jun 27 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-6
120 - Optimized the case where it's already running.
122 * Thu Jun 26 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-5
123 - Ignore ESRCH for setname.
124 - Always create the home directory, regardless of configuration settings.
126 * Fri May 09 2008 Stephen Soltesz <soltesz@cs.princeton.edu> - util-vserver-pl-0.3-4
129 * Wed Apr 23 2008 Stephen Soltesz <soltesz@cs.princeton.edu> - util-vserver-pl-0.3-3
130 - Added support for vc_{set|get}_vhi_name() via util-vserver-pl.
131 - Adding a tag to include in the 4.2rc2
134 * Wed Apr 16 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-2
136 - * Can write vcVHI_CONTEXT
137 - * CAP_NET_BIND_SERVICE is special, in all cases.
138 - * Check if already mounted before mounting fs in vserver
139 - * Optimized 0.0.0.0 case
140 - * Removed vcached. DEPRECATED
143 * Fri Nov 30 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.1-1