]> git.pld-linux.org Git - packages/util-vserver.git/commitdiff
- new/raw
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 4 Nov 2003 17:09:42 +0000 (17:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-vserver.spec -> 1.1

util-vserver.spec [new file with mode: 0644]

diff --git a/util-vserver.spec b/util-vserver.spec
new file mode 100644 (file)
index 0000000..6b22055
--- /dev/null
@@ -0,0 +1,78 @@
+Summary:       Linux virtual server utilities
+Name:          util-vserver
+Version:       0.24
+Release:       1
+Epoch:         0
+License:       GPL
+Group:         Base
+URL:           http://savannah.nongnu.org/projects/util-vserver/
+Source0:       http://savannah.nongnu.org/download/util-vserver/stable.pkg/%version/%name-%version.tar.bz2
+# Source0-md5: 625d6c9bc5a4d2e44eafdf0f619c2153
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package provides the components and a framework to setup virtual
+servers. A virtual server runs inside a linux server. It is
+nevertheless highly independent. As such, you can run various services
+with normal configuration. The various vservers can't interact with
+each other and can't interact with services in the main server.
+
+This requires a special kernel supporting the new new_s_context and
+set_ipv4root system call.
+
+%prep
+%setup -q
+
+%build
+%configure \
+       --with-kerneldir=%{_kernelsrcdir}
+%{__make}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%define v_services     httpd named portmap sendmail smb sshd xinetd
+%post
+/sbin/chkconfig --add vservers
+/sbin/chkconfig --add rebootmgr
+
+for i in %v_services; do
+       /sbin/chkconfig --add v_$i
+done
+
+
+%preun
+test "$1" != 0 || for i in %v_services; do
+       /sbin/chkconfig --del v_$i
+done
+
+test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || :
+test "$1" != 0 || /sbin/chkconfig --del rebootmgr
+test "$1" != 0 || /sbin/chkconfig --del vservers
+
+
+%postun
+test "$1" = 0  || %{_initrddir}/rebootmgr condrestart >/dev/null || :
+
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog NEWS README THANKS
+%doc doc/FAQ.txt
+%{_sbindir}/*
+%{_libdir}/%name
+%{_includedir}/vserver.h
+%{_libdir}/libvserver.a
+%{_mandir}/man8/*
+/etc/rc.d/init.d/*
+%config(noreplace) %{_sysconfdir}/vservers.conf
+%attr(0,root,root) %dir /vservers
+%exclude %_sbindir/newvserver
+%exclude %_mandir/man8/newvserver*
This page took 0.033958 seconds and 4 git commands to generate.