]> git.pld-linux.org Git - packages/x11vnc.git/commitdiff
- init scripts auto/ti/x11vnc-0_9_3-1
authorpascalek <pascalek@pld-linux.org>
Tue, 22 Jan 2008 09:22:54 +0000 (09:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    x11vnc.spec -> 1.29

x11vnc.spec

index 601d33c054490e2ad9185038d8ccfe4cc94cd815..c48eb1f50a996c99bc24c4c47d3aba281f451381 100644 (file)
@@ -7,6 +7,10 @@ License:       GPL
 Group:         X11/Applications/Networking
 Source0:       http://www.karlrunge.com/x11vnc/%{name}-%{version}.tar.gz
 # Source0-md5: 868d2be5c8d4f116e89b8573db435889
 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
 URL:           http://www.karlrunge.com/x11vnc/
 BuildRequires: autoconf >= 2.59-9
 BuildRequires: automake
@@ -39,6 +43,18 @@ protokół RFB (VNC) dla użytkownika.
 Bazuje na pomyśle x0rfbserver i LibVNCServer, został stworzony jako
 wszechstronny i wydajny, ale także łatwy w użyciu.
 
 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
 
 %prep
 %setup -q
 
@@ -58,12 +74,37 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %{__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
 
 %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
 %attr(755,root,root) %{_bindir}/*
 %{_datadir}/%{name}
 %{_mandir}/man1/%{name}.1*
 %files
 %defattr(644,root,root,755)
 %doc README NEWS TODO ChangeLog AUTHORS
 %attr(755,root,root) %{_bindir}/*
 %{_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
This page took 0.133404 seconds and 4 git commands to generate.