SPECS: x11vnc.spec - init scripts
pascalek
pascalek at pld-linux.org
Tue Jan 22 10:22:59 CET 2008
Author: pascalek Date: Tue Jan 22 09:22:59 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- init scripts
---- Files affected:
SPECS:
x11vnc.spec (1.28 -> 1.29)
---- Diffs:
================================================================
Index: SPECS/x11vnc.spec
diff -u SPECS/x11vnc.spec:1.28 SPECS/x11vnc.spec:1.29
--- SPECS/x11vnc.spec:1.28 Sat Aug 25 04:18:28 2007
+++ SPECS/x11vnc.spec Tue Jan 22 10:22:54 2008
@@ -8,6 +8,10 @@
Group: X11/Applications/Networking
Source0: http://www.karlrunge.com/x11vnc/%{name}-%{version}.tar.gz
# Source0-md5: 868d2be5c8d4f116e89b8573db435889
+Source1: %{name}-x11vncd
+Source2: %{name}-x11vncd.init
+Source3: %{name}-x11vncd.sysconfig
+Source4: %{name}-x11vncd_passwd
URL: http://www.karlrunge.com/x11vnc/
BuildRequires: autoconf >= 2.59-9
BuildRequires: automake
@@ -40,6 +44,18 @@
Bazuje na pomyśle x0rfbserver i LibVNCServer, został stworzony jako
wszechstronny i wydajny, ale także łatwy w użyciu.
+%package init
+Summary: Init scripts for VNC server.
+Summary(pl.UTF-8): Skrytpy startowe dla servera VNC.
+Group: X11/Applications/Networking
+Requires: x11vnc
+
+%description init
+Init scripts for VNC server.
+
+%description init -l pl.UTF-8
+Skrytpy startowe dla servera VNC.
+
%prep
%setup -q
@@ -59,9 +75,27 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sbindir} \
+ $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
+
+cp %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/x11vncd
+cp %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/x11vncd
+cp %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/x11vncd
+cp %{SOURCE4} $RPM_BUILD_ROOT/etc/x11vncd_passwd
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post init
+/sbin/chkconfig --add x11vncd
+%service x11vncd restart "VNC Server"
+
+%preun init
+if [ "$1" = "0" ]; then
+ %service x11vncd stop
+ /sbin/chkconfig --del x11vncd
+fi
+
%files
%defattr(644,root,root,755)
%doc README NEWS TODO ChangeLog AUTHORS
@@ -69,12 +103,22 @@
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*
+%files init
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/x11vncd
+%attr(755,root,root) /etc/rc.d/init.d/x11vncd
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/x11vncd
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/x11vncd_passwd
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.29 2008-01-22 09:22:54 pascalek
+- init scripts
+
Revision 1.28 2007-08-25 02:18:28 undefine
- up to 0.9.3
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/x11vnc.spec?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list