Author: paszczus Date: Wed Aug 6 10:05:17 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - added init script
---- Files affected: SPECS: freenx-server.spec (1.33 -> 1.34) ---- Diffs: ================================================================ Index: SPECS/freenx-server.spec diff -u SPECS/freenx-server.spec:1.33 SPECS/freenx-server.spec:1.34 --- SPECS/freenx-server.spec:1.33 Wed Aug 6 10:40:51 2008 +++ SPECS/freenx-server.spec Wed Aug 6 12:05:11 2008 @@ -5,11 +5,12 @@ Summary(pl.UTF-8): Darmowa (GPL) imlementacja serwera NX Name: freenx-server Version: 0.7.2 -Release: 1 +Release: 1.1 License: GPL v2 Group: X11/Applications/Networking Source0: http://download.berlios.de/freenx/%{name}-%{version}.tar.gz # Source0-md5: 961913bb82ee6e60d8df6f10e647bda9 +Source1: %{name}.init Patch0: freenx-node-conf.patch URL: http://freenx.berlios.de/ BuildRequires: sed >= 4.0 @@ -48,7 +49,7 @@ %prep %setup -q -%patch0 -p1 +##%patch0 -p1 %build %{__make} @@ -63,8 +64,10 @@ rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} +install -d $RPM_BUILD_ROOT/etc/rc.d/init.d install -d $RPM_BUILD_ROOT%{_sysconfdir}/nxserver install node.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/nxserver/node.conf +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/freenx install nxcheckload.sample $RPM_BUILD_ROOT%{_bindir}/nxcheckload install nxcups-gethost nxdesktop_helper nxdialog nxkeygen nxloadconfig nxnode nxnode-login nxprint nxserver nxserver-helper/nxserver-helper nxsetup nxviewer_helper nxviewer-passwd/nxpasswd/nxpasswd $RPM_BUILD_ROOT%{_bindir} @@ -76,6 +79,14 @@ %useradd -u 160 -d %{_sysconfdir}/nxserver -s %{_bindir}/nxserver -g users -c "FreeNX User" nx %post +/sbin/chkconfig --add %{name} +%service %{name} restart + +%preun +if [ "$1" = "0" ]; then +%service %{name} stop +/sbin/chkconfig --del %{name} +fi %postun if [ "$1" = "0" ]; then @@ -88,6 +99,7 @@ %attr(755,root,root) %{_bindir}/* %dir %{_sysconfdir}/nxserver %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nxserver/node.conf +%attr(754,root,root) /etc/rc.d/init.d/freenx %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -95,6 +107,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.34 2008/08/06 10:05:11 paszczus +- added init script + Revision 1.33 2008/08/06 08:40:51 paszczus - adaptarized ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/freenx-server.spec?r1=1.33&r2=1.34&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
