1 %define name util-vserver
3 %define release 13.planetlab%{?date:.%{date}}
6 Packager: PlanetLab Central <support@planet-lab.org>
7 Distribution: PlanetLab 3.0
8 URL: http://cvs.planet-lab.org/cvs/util-vserver
10 Summary: Linux virtual server utilities
16 Group: System Environment/Base
17 Source0: http://savannah.nongnu.org/download/util-vserver/stable.pkg/%version/%name-%version.tar.bz2
18 Provides: %name-devel = %epoch:%version-%release
19 BuildRoot: %_tmppath/%name-%version-%release-root
20 Provides: vserver = %epoch:%version-%release
21 Conflicts: vserver < %epoch:%version-%release
22 Conflicts: vserver > %epoch:%version-%release
23 BuildRequires: e2fsprogs-devel
26 Summary: Linuxconf administration modules for vservers
27 Group: Applications/System
28 Requires: %name = %epoch:%version-%release
29 Provides: vserver-admin = %epoch:%version-%release
30 Conflicts: vserver-admin < %epoch:%version-%release
31 Conflicts: vserver-admin > %epoch:%version-%release
34 This package provides the components and a framework to setup virtual
35 servers. A virtual server runs inside a linux server. It is nevertheless
36 highly independent. As such, you can run various services with normal
37 configuration. The various vservers can't interact with each other and
38 can't interact with services in the main server.
40 This requires a special kernel supporting the new new_s_context and
41 set_ipv4root system call.
44 %description linuxconf
45 This package provides the components to setup virtual servers with
53 automake --add-missing
54 # bootstrap to avoid BuildRequires of kernel-source
55 for linux in $RPM_BUILD_DIR/linux-* /lib/modules/`uname -r`/build ; do
56 [[ -d $linux/include ]] && %configure --with-kerneldir=$linux --enable-linuxconf && break
64 rm -rf $RPM_BUILD_ROOT
65 %__make DESTDIR=$RPM_BUILD_ROOT install
67 mkdir -p $RPM_BUILD_ROOT/vservers
68 test "%_initrddir" = %_sysconfdir/init.d || {
69 mkdir -p ${RPM_BUILD_ROOT}%_initrddir
70 mv ${RPM_BUILD_ROOT}%_sysconfdir/init.d/* ${RPM_BUILD_ROOT}%_initrddir/
73 mkdir -p ${RPM_BUILD_ROOT}/bin
74 ln -f ${RPM_BUILD_ROOT}%_sbindir/vsh ${RPM_BUILD_ROOT}/bin/vsh
76 install -D -m 644 sysv/vcached.logrotate ${RPM_BUILD_ROOT}/etc/logrotate.d/vcached
78 mkdir -p $RPM_BUILD_ROOT/etc/cron.d
80 echo "*/$(($period / 60)) * * * * root %_sbindir/vcached -s -f -l $logfile" > $RPM_BUILD_ROOT/etc/cron.d/vcached
82 %__make -C python INSTALL_ROOT=$RPM_BUILD_ROOT install
85 rm -rf $RPM_BUILD_ROOT
88 # 1 = install, 2 = upgrade/reinstall
89 if [ $1 -eq 2 ] ; then
90 # vcached no longer runs as a daemon
91 [ "`/sbin/runlevel`" = "unknown" ] || service vcached stop || :
95 # vcached no longer runs as a daemon
97 chkconfig --del vcached
99 chkconfig --add vservers
100 chkconfig vservers on
102 if [ ! -f /etc/shells ] || ! grep -q '^/bin/vsh$' /etc/shells ; then
103 echo /bin/vsh >> /etc/shells
106 # make sure barrier bit is set on /vservers to prevent chroot() escapes
107 %_libdir/%name/setattr --barrier /vservers
110 # 0 = erase, 1 = upgrade
111 if [ "$1" = 0 ] ; then
112 perl -i -n -e 'next if /^\/bin\/vsh$/; print' /etc/shells
116 # 0 = erase, 1 = upgrade
117 if [ $1 -eq 0 ] ; then
118 [ "`/sbin/runlevel`" = "unknown" ] || service vservers stop
119 chkconfig vservers off
120 chkconfig --del vservers
124 %defattr(-,root,root)
125 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
128 %_includedir/vserver.h
129 %_libdir/libvserver.a
131 %config %_initrddir/*
132 %config(noreplace) /etc/vservers.conf
133 %config(noreplace) /etc/vcached.conf
134 /etc/logrotate.d/vcached
137 %attr(0,root,root) %dir /vservers
138 %attr(4755,root,root) /usr/sbin/vsh
139 %attr(4755,root,root) /bin/vsh
141 %exclude %_sbindir/newvserver
142 %exclude %_mandir/man8/newvserver*
145 %defattr(-,root,root)
146 %config(noreplace) /etc/vservers/newvserver.defaults
148 %_mandir/man8/newvserver*
153 Summary: Python modules for manipulating vservers
154 Group: Applications/System
155 Requires: python /usr/lib/util-vserver/util-vserver-vars util-python
158 Python modules for manipulating vservers. Provides a superset of the
159 functionality of the vserver script (at least will do in the future),
160 but more readily accessible from Python code.
163 %defattr(0644,root,root)
164 /usr/lib/python2.3/site-packages/util_vserver_vars.py
165 /usr/lib/python2.3/site-packages/vduimpl.so
166 /usr/lib/python2.3/site-packages/vserver.py
167 /usr/lib/python2.3/site-packages/vserver.pyc
168 /usr/lib/python2.3/site-packages/vserverimpl.so
173 * Mon Jun 20 2005 Steve Muir <smuir@cs.princeton.edu>
174 - import Marc's vdu implementation
176 * Wed Jun 15 2005 Steve Muir <smuir@cs.princeton.edu>
177 - 'vserver-init start' functionality subsumed by Node Manager
179 * Thu Jun 02 2005 Marc E. Fiuczynski <mef@cs.princeton.edu>
180 - Fixed vlimit command
182 * Wed May 25 2005 Steve Muir <smuir@cs.princeton.edu>
183 - add Python modules for manipulating vservers
185 * Thu Apr 7 2005 Steve Muir <smuir@cs.princeton.edu>
186 - vuserdel changes: don't shutdown vserver, just kill all processes;
187 unmount all mountpoints in vserver before deleting
189 * Fri Nov 19 2004 Mark Huang <mlhuang@cs.princeton.edu>
190 - vcached no longer runs as a daemon
191 - do not restart vservers when package is upgraded
193 * Wed Nov 17 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-6.planetlab
196 - Both vcached and vuseradd now print a warning message when vbuild
197 succeeds but the resulting new vserver image is smaller in size than
198 the vserver-reference image.
199 - vuseradd: clean up some more junk on failure
201 * Tue Nov 16 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-5.planetlab
203 - PL3026: This is the upgraded version of vdu that maintains an
204 internal hash table of files with a nlink count > 1. Only if vdu
205 sees all hard links to a particular inode does it add its size and
206 block count to the total.
208 * Fri Nov 12 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-4.planetlab
209 - PL2445 Use -b option to du to avoid rounding errors.
211 * Sat Nov 6 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-3.planetlab
213 - don't create the symbolic link /home/slice/.ssh, this is not how
216 * Mon Oct 11 2004 Marc E. Fiuczynski <mef@cs.princeton.edu>
219 * Wed Aug 11 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.29-1.planetlab
220 - initial PlanetLab 3.0 build.
222 * Thu Mar 18 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.3-0
223 - removed '%%doc doc/FAQ.txt' since file does not exist anymore
225 * Fri Sep 26 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.4-1