X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=stunnel.spec;h=09f6209b651c1c0de67273635a3fa854a2bb5646;hb=5b9a1a5ea0032566d3e5ae6a11422523f4500576;hp=350cb827b5f96614f91c6f275adbe930ca6a32ab;hpb=44a8700ba013bea9cd3ddae30566178465e255ae;p=packages%2Fstunnel.git diff --git a/stunnel.spec b/stunnel.spec index 350cb82..09f6209 100644 --- a/stunnel.spec +++ b/stunnel.spec @@ -1,3 +1,5 @@ +# TODO: +# - fix /var/run/stunnel ownership (nobody must NOT own any files!) Summary: Universal SSL tunnel Summary(pl): Uniwersalne narzêdzie do bezpiecznego tunelowania Name: stunnel @@ -6,6 +8,7 @@ Release: 0.9 License: GPL v2 Group: Networking/Daemons Source0: ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz +# Source0-md5: 2fcdf0311a0ab8a3223293c706a84e97 Source1: %{name}.init Source2: %{name}.sysconfig Patch0: %{name}-gethostbyname_is_in_libc_aka_no_libnsl.patch @@ -54,13 +57,12 @@ rm -f missing %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ - -d $RPM_BUILD_ROOT%{_mandir}/pl/man8 \ - -d $RPM_BUILD_ROOT%{_var}/run/stunnel +install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_mandir}/pl/man8,%{_var}/run/stunnel} -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -mv -f $RPM_BUILD_ROOT/%{_mandir}/man8/stunnel.pl.8* $RPM_BUILD_ROOT/%{_mandir}/pl/man8/ +mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.pl.8* $RPM_BUILD_ROOT%{_mandir}/pl/man8 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel @@ -73,12 +75,12 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +# note: this COPYING contains general information not GPL text %doc AUTHORS BUGS COPYING CREDITS ChangeLog NEWS PORTS README TODO doc/en/* doc/stunnel.html -%doc src/stunnel.exe -%doc $RPM_BUILD_ROOT%{_datadir}/doc/stunnel/examples/{c*,i*,stunnel.init} +%doc src/stunnel.exe tools/{ca.*,importCA.*} %doc %lang(pl) doc/pl/* doc/stunnel.pl.html %dir /etc/stunnel -%attr(755,root,root) /etc/rc.d/init.d/stunnel +%attr(754,root,root) /etc/rc.d/init.d/stunnel %attr(600,root,root) /etc/sysconfig/stunnel %attr(700,nobody,nobody) %{_var}/run/stunnel %config(noreplace) %verify(not size mtime md5) /etc/stunnel/*