SPECS: socat.spec - rel.1.9 - introduced daemon script with multiple tunnel...
blues
blues at pld-linux.org
Wed Feb 4 18:14:35 CET 2009
Author: blues Date: Wed Feb 4 17:14:35 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- rel.1.9 - introduced daemon script with multiple tunnel support. Not
working, yet.
---- Files affected:
SPECS:
socat.spec (1.23 -> 1.24)
---- Diffs:
================================================================
Index: SPECS/socat.spec
diff -u SPECS/socat.spec:1.23 SPECS/socat.spec:1.24
--- SPECS/socat.spec:1.23 Thu Oct 16 23:19:58 2008
+++ SPECS/socat.spec Wed Feb 4 18:14:29 2009
@@ -1,13 +1,17 @@
# $Revision$, $Date$
+# TODO:
+# - init script is broken - daemon function doesn't create pid
Summary: Multipurpose relay
Summary(pl.UTF-8): Przekaźnik o wielu zastosowaniach
Name: socat
Version: 1.7.0.0
-Release: 1
+Release: 1.9
License: GPL
Group: Networking/Utilities
Source0: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.bz2
# Source0-md5: be5f942c44dafefa58365e9dc3ada81f
+Source1: %{name}.init
+Source2: %{name}.sysconfig
URL: http://www.dest-unreach.org/socat/
BuildRequires: libwrap-devel >= 7.6-30
BuildRequires: openssl-devel >= 0.9.7d
@@ -52,18 +56,36 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/var/run/%{name}} \
+ $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,%{name}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/chkconfig --add %{name}
+%service mdadm restart "socat"
+
+%preun
+if [ "$1" = "0" ]; then
+ %service socat stop
+ /sbin/chkconfig --del socat
+fi
+
%files
%defattr(644,root,root,755)
%doc BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ README SECURITY
+%dir /etc/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
%attr(755,root,root) %{_bindir}/*
+%dir /var/run/%{name}
%{_mandir}/man?/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -72,6 +94,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.24 2009/02/04 17:14:29 blues
+- rel.1.9 - introduced daemon script with multiple tunnel support. Not
+ working, yet.
+
Revision 1.23 2008/10/16 21:19:58 areq
- 1.7.0.0
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/socat.spec?r1=1.23&r2=1.24&f=u
More information about the pld-cvs-commit
mailing list