stunnelのSPECファイル

MewでSSLメールを扱おうとすると,stunnelを使わないといけない.VineにはstunnelのRPMがないので,stunnelのtar玉に入っているSPECファイルをいじって,RPMを作った.

2007年くらいから,Mew+stunnelで使っている.

以下は,stunnel-4.46の時のSPECファイルの変更箇所(diffの一部)です.stunnelのバーションが上がっているけど同じ方法が通用すると思う.

Summary: Program that wraps normal socket connections with SSL/TLS
Name: stunnel
Version: 4.46
-Release: 1
-Copyright: GPL
+Release: 1yk1
+License: GPL

%{__install} -m755 -s src/stunnel %{buildroot}%{_sbindir}
%{__install} -m755 src/.libs/libstunnel.so %{buildroot}%{_libdir}
%{__install} -m755 src/.libs/libstunnel.la %{buildroot}%{_libdir}
-%{__install} -m644 doc/stunnel.8 %{buildroot}%{_mandir}/man8/stunnel.8.gz
+%{__install} -m644 doc/stunnel.8 %{buildroot}%{_mandir}/man8/
%{__install} -m644 tools/stunnel.conf-sample %{buildroot}% {_sysconfdir}/stunnel
%{__install} -m500 tools/stunnel.init %{buildroot}%{_initrddir}/stunnel

%files
%defattr(-,root,root)
-%doc COPYING COPYRIGHT.GPL README ChangeLog doc/stunnel.html doc/en/transproxy.txt doc/en/VNC_StunnelHOWTO.html
+%doc COPYING COPYRIGHT.GPL README ChangeLog doc/stunnel.html doc/en/VNC_StunnelHOWTO.html
%doc tools/ca.html tools/ca.pl tools/importCA.html tools/importCA.sh tools/stunnel.cnf
%dir %{_sysconfdir}/stunnel
%config %{_sysconfdir}/stunnel/*

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA