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: libnl libnl-devel
32 BuildRequires: python python-devel
33 BuildRequires: util-vserver-core util-vserver-devel
34 BuildRequires: autoconf automake libtool
37 This package contains all PlanetLab extensions to util-vserver.
51 make DESTDIR=%{buildroot} install
53 mkdir %{buildroot}/bin
54 ln -s ..%{_sbindir}/vsh %{buildroot}/bin/vsh
56 rm -f %{buildroot}%{python_sitearch}/vserverimpl.a
57 rm -f %{buildroot}%{python_sitearch}/vserverimpl.la
59 # Generate file list for python package
60 find "%{buildroot}" -name '*.py' | { while read FILE; do
61 f="${FILE#%{buildroot}}"
63 # need to touch these files, as they are not produced on FC4 or below
68 done } > %name-python.list
72 # add /bin/vsh to list of secure shells
73 if [ ! -f /etc/shells ] || ! grep -q '^/bin/vsh$' /etc/shells ; then
74 echo /bin/vsh >> /etc/shells
77 /usr/sbin/bwlimit init
81 # 0 = erase, 1 = upgrade
82 if [ "$1" = 0 ] ; then
83 perl -i -n -e 'next if /^\/bin\/vsh$/; print' /etc/shells
91 %files -f %name-python.list
92 %defattr(-,root,root,-)
97 %{python_sitearch}/vserverimpl.so
98 %{_sbindir}/vip6-autod
99 %{_sysconfdir}/init.d/vip6-autod
101 %attr(4755,root,root) %{_sbindir}/vsh
103 %{_mandir}/man8/vsh.8*
106 * Wed May 02 2012 Andy Bavier <acb@cs.princeton.edu> - util-vserver-pl-0.3-35
107 - Fix for supporting multiple addresses (IPv4 and IPv6) per slice
109 * Tue May 01 2012 Andy Bavier <acb@cs.princeton.edu> - util-vserver-pl-0.3-34
110 - util-vserver-pl-0.3-33 is still broken for IPv6; this one works
112 * Sat Apr 28 2012 Andy Bavier <acb@cs.princeton.edu> - util-vserver-pl-0.3-33
115 * Tue Aug 31 2010 Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - util-vserver-pl-0.3-32
116 - try compiling with the newer util-vserver
118 * Tue Jun 22 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - util-vserver-pl-0.3-31
119 - initscripts are ignored - handled by nodemanager and triggered by rc
121 * Thu Jun 17 2010 Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - util-vserver-pl-0.3-30
122 - sliver name as the last argument to initscript
124 * Thu May 13 2010 Talip Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - util-vserver-pl-0.3-29
127 * Wed May 12 2010 Talip Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - util-vserver-pl-0.3-28
128 - fix vserver start issues
130 * Wed Feb 24 2010 Marc Fiuczynski <mef@cs.princeton.edu> - util-vserver-pl-0.3-27
131 - Need to print the exception string as part of the self.log, or else we
132 - get a wrong number of argument error.
134 * Wed Feb 24 2010 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-26
135 - This is outputted for some reason.
137 * Tue Feb 23 2010 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-25
138 - Don't set bwlimits if they're disabled.
139 - Don't cleanup /var of running slivers.
141 * Tue Feb 23 2010 Marc Fiuczynski <mef@cs.princeton.edu> - util-vserver-pl-0.3-24
144 * Tue Feb 16 2010 Talip Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - util-vserver-pl-0.3-23
145 - call bwlimit init in postinstall.
147 * Fri Jan 29 2010 S.Çağlar Onur <caglar@cs.princeton.edu> - util-vserver-pl-0.3-22
148 - move the HTB tree one level down for DRL
150 * Mon Jan 25 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - util-vserver-pl-0.3-21
151 - logging policy only; use /var/log/nm instead of boot.log, and give more details with (un)setdlimit
153 * Thu Nov 19 2009 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-20
154 - Log the error as well.
156 * Wed Oct 28 2009 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-19
157 - Set ulimits for NM too.
159 * Tue Oct 20 2009 Baris Metin <Talip-Baris.Metin@sophia.inria.fr> - util-vserver-pl-0.3-18
160 - bwlimit.set() now accepts the device and don't assume that it's eth0
162 * Tue Aug 04 2009 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-17
163 - Fix runlevel clean up after reboot.
164 - Fix runlevel setup to reflect proper runlevel.
166 * Thu Jan 29 2009 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-16
167 - supports disabling htbs.
169 * Wed Oct 29 2008 Marc E. Fiuczynski <mef@cs.princeton.edu> - util-vserver-pl-0.3-15
170 - added in support for rlimit MEM_LOCK
171 - fixed bug in reading -1 value from VSERVERCONF/<guest>/rlimits/memlock.hard file
172 - reduced compilation warnings
174 * Tue Sep 23 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - util-vserver-pl-0.3-14
175 - configure/make check the version of libnl and can cope with either 1.1 or 1.0-pre6
176 - as centos does not have any of these, do build vip6-autod on fedora only
178 * Wed Sep 17 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-13
179 - Remove current bw limit checks before issuing tc.
181 * Fri Aug 29 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-12
184 * Thu Aug 28 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - util-vserver-pl-0.3-11
185 - reads /etc/vservers/<name>/personality and behaves accordingly
186 - nicer formatting for byte rates
188 * Sun Aug 17 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-10
191 * Fri Aug 01 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-9
192 - Check running values before issuing set or on. If same, disregard to save on forks.
194 * Fri Jul 25 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-8
195 - 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).
197 * Tue Jul 22 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-7
198 - Init exempt flows into "mangle" table.
200 * Fri Jun 27 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-6
201 - Optimized the case where it's already running.
203 * Thu Jun 26 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - util-vserver-pl-0.3-5
204 - Ignore ESRCH for setname.
205 - Always create the home directory, regardless of configuration settings.
207 * Fri May 09 2008 Stephen Soltesz <soltesz@cs.princeton.edu> - util-vserver-pl-0.3-4
210 * Wed Apr 23 2008 Stephen Soltesz <soltesz@cs.princeton.edu> - util-vserver-pl-0.3-3
211 - Added support for vc_{set|get}_vhi_name() via util-vserver-pl.
212 - Adding a tag to include in the 4.2rc2
215 * Wed Apr 16 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - util-vserver-pl-0.3-2
217 - * Can write vcVHI_CONTEXT
218 - * CAP_NET_BIND_SERVICE is special, in all cases.
219 - * Check if already mounted before mounting fs in vserver
220 - * Optimized 0.0.0.0 case
221 - * Removed vcached. DEPRECATED
224 * Fri Nov 30 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.1-1