Package stunnel4: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | %define _ssldir %(openssl-config --openssldir) %define _unpackaged_files_terminate_build 1 Summary: Universal SSL tunnel Name: stunnel4 Version: 5.01 Release: alt1 License: GPLv2+ Group: Networking/Other Packager: Alexey Gladkov <legion@altlinux.org> Source0: ftp://stunnel.mirt.net/stunnel/stunnel-%version.tar.gz Source1: stunnel.init Source3: stunnel.inetd Patch2: stunnel-ac_fixes.patch Patch3: stunnel-4.42-am.patch Patch4: stunnel-libwrap_srv_name_log.patch Patch5: stunnel-config.patch Url: http://www.stunnel.org/ Requires(pre): cert-sh-functions BuildRequires: libwrap-devel BuildRequires: libssl-devel >= 0.9.7d BuildRequires: openssl >= 0.9.7d Conflicts: stunnel %description The stunnel program is designed to work as SSL encryption wrapper between remote client and local (inetd-startable) or remote server. The concept is that having non-SSL aware daemons running on your system you can easily setup them to communicate with clients over secure SSL channel. stunnel can be used to add SSL functionality to commonly used inetd daemons like POP-2, POP-3 and IMAP servers without any changes in the programs' code. %package standalone Summary: stunnel acts as standalone server Group: Networking/Other Requires: %name = %version-%release %description standalone stunnel acts as standalone server. %package inetd Summary: stunnel acts as inetd service Group: Networking/Other Requires: %name = %version-%release %description inetd stunnel acts as inetd service. %prep %setup -q %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 -b .fix %build %autoreconf %configure \ --with-tcp-wrappers \ --with-ipv6 \ --with-ssl=%_prefix \ --enable-shared %make_build %install install -d \ %buildroot{/etc/{rc.d/init.d,xinetd.d,sysconfig},%_var/{lib,run}/stunnel} \ %buildroot/%systemd_unitdir %make install DESTDIR=%buildroot mv -f \ %buildroot%_sysconfdir/stunnel/stunnel.conf-sample \ %buildroot%_sysconfdir/stunnel/stunnel.conf mv -f \ tools/stunnel.service \ %buildroot/%systemd_unitdir/stunnel.service install -m755 %SOURCE1 %buildroot/etc/rc.d/init.d/stunnel install -m644 %SOURCE3 %buildroot/etc/xinetd.d/stunnel # Ghosts. How to include it in package and remove on # package remove without checking of size mismatch? mkdir -p %buildroot%_ssldir/{certs,private} touch %buildroot%_ssldir/certs/stunnel.pem touch %buildroot%_ssldir/private/stunnel.pem rm -rf -- %buildroot%_libdir/stunnel rm -rf -- %buildroot%_docdir/stunnel rm -f -- %buildroot%_sysconfdir/stunnel/stunnel.pem %pre %_sbindir/groupadd -r -f stunnel &>/dev/null %_sbindir/useradd -r -g stunnel -d /var/run/stunnel -s /bin/false \ -c "stunnel User" -M -n stunnel &>/dev/null ||: %post standalone %post_service stunnel %preun standalone %preun_service stunnel %files # 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 tools/{ca.*,importCA.*} %attr(750,stunnel,stunnel) %_var/run/stunnel %attr(750,stunnel,stunnel) %_var/lib/stunnel %dir %_sysconfdir/stunnel %config(noreplace) %verify(not md5 mtime size) %_sysconfdir/stunnel/stunnel.conf %attr(755,root,root) %_bindir/* %_mandir/man8/* %files standalone %systemd_unitdir/stunnel.service %attr(754,root,root) /etc/rc.d/init.d/stunnel %attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %_ssldir/certs/stunnel.pem %attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %_ssldir/private/stunnel.pem %files inetd %config(noreplace) %verify(not md5 mtime size) /etc/xinetd.d/stunnel %changelog * Sun Apr 13 2014 Alexey Gladkov <legion@altlinux.ru> 5.01-alt1 - New version (5.01). * Sat Mar 23 2013 Alexey Gladkov <legion@altlinux.ru> 4.56-alt1 - New version (4.56). * Fri Jan 13 2012 Alexey Gladkov <legion@altlinux.ru> 4.52-alt1 - New version (4.52). * Thu Sep 08 2011 Alexey Gladkov <legion@altlinux.ru> 4.43-alt1 - New version (4.43). * Sat Aug 20 2011 Alexey Gladkov <legion@altlinux.ru> 4.42-alt1 - New version (4.42). * Tue May 03 2011 Alexey Gladkov <legion@altlinux.ru> 4.36-alt1 - New version (4.36). * Thu Apr 21 2011 Alexey Gladkov <legion@altlinux.ru> 4.35-alt1 - New version (4.35). * Thu Oct 07 2010 Alexey Gladkov <legion@altlinux.ru> 4.34-alt1 - New version (4.34). - Run stunnel in chroot by default. - Add cert-sh-functions support. * Wed Jan 20 2010 Pavlov Konstantin <thresh@altlinux.ru> 4.29-alt1 - Initial build for ALT Linux. |