[521] | 1 | # ---------------------------------------------------------- |
---|
| 2 | # (1) Data definition |
---|
| 3 | # ---------------------------------------------------------- |
---|
| 4 | |
---|
| 5 | %define _mandir %{_datadir}/man |
---|
| 6 | %define _source_dir stone-2.3d-2.3.2.7 |
---|
| 7 | |
---|
| 8 | Summary: The stone is TCP and UDP packet repeater. |
---|
| 9 | Summary(ja): TCP & UDP パケットリピータ stone |
---|
| 10 | Name: stone |
---|
| 11 | Version: 2.3e |
---|
[2603] | 12 | Release: 2%{_dist_release} |
---|
[521] | 13 | URL: http://www.gcd.org/sengoku/stone/ |
---|
| 14 | Source0: http://www.gcd.org/sengoku/stone/%{name}-%{version}.tar.gz |
---|
| 15 | # 'rfc1321.txt', 'global.h', 'md5.h', and 'md5c.c' |
---|
| 16 | Source1: stone-Source1.tar.gz |
---|
| 17 | Source2: stone.init |
---|
| 18 | Source3: stone.conf |
---|
| 19 | Source4: stone.1.gz |
---|
| 20 | Source5: stone.1.ja.gz |
---|
| 21 | # adapted for Vine Linux |
---|
| 22 | Patch0: stone-%{version}-Makefile.patch |
---|
| 23 | License: GPL |
---|
| 24 | Group: Applications/Internet |
---|
| 25 | |
---|
| 26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 27 | Prefix: %{_prefix} |
---|
| 28 | |
---|
| 29 | Requires: openssl |
---|
[2603] | 30 | BuildRequires: openssl-devel |
---|
[521] | 31 | |
---|
| 32 | |
---|
| 33 | %description |
---|
| 34 | Stone is a TCP/IP packet repeater in the application layer. It |
---|
| 35 | repeats TCP and UDP packets from inside to outside of a firewall, or |
---|
| 36 | from outside to inside. |
---|
| 37 | |
---|
| 38 | %description -l ja |
---|
| 39 | stone は、アプリケーションレベルの TCP & UDP パケットリピーターです。 |
---|
| 40 | ファイアウォールの内から外へ、あるいは外から内へ、TCP パケットあるいは |
---|
| 41 | UDP パケットを中継します。 |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | # ---------------------------------------------------------- |
---|
| 46 | # (2) Scripts |
---|
| 47 | # ---------------------------------------------------------- |
---|
| 48 | |
---|
| 49 | # --- prep |
---|
| 50 | %prep |
---|
| 51 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 52 | # %setup -a 1 -n ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION} |
---|
| 53 | %setup -a 1 -n %{_source_dir} |
---|
| 54 | %patch0 -p0 -b .vine |
---|
| 55 | |
---|
| 56 | # --- build |
---|
| 57 | %build |
---|
| 58 | make linux-ssl SSL_FLAGS='-DUSE_SSL' SSL_LIBS='-lssl -lcrypto' |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | # --- install |
---|
| 62 | %install |
---|
| 63 | install -d --mode=0755 ${RPM_BUILD_ROOT}%{_bindir} |
---|
| 64 | install -d --mode=0755 ${RPM_BUILD_ROOT}%{_mandir}/man1 |
---|
| 65 | install -d --mode=0755 ${RPM_BUILD_ROOT}%{_mandir}/ja/man1 |
---|
| 66 | install --mode=0755 stone ${RPM_BUILD_ROOT}%{_bindir}/stone |
---|
| 67 | install --mode=0644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_mandir}/man1/stone.1.gz |
---|
| 68 | install --mode=0644 %{SOURCE5} ${RPM_BUILD_ROOT}%{_mandir}/ja/man1/stone.1.gz |
---|
| 69 | mkdir -p %{buildroot}/etc/rc.d/init.d |
---|
| 70 | install --mode=0755 %{SOURCE2} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/stone |
---|
| 71 | install --mode=0644 %{SOURCE3} ${RPM_BUILD_ROOT}/etc/stone.conf |
---|
| 72 | |
---|
| 73 | # --- clean |
---|
| 74 | %clean |
---|
| 75 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | # ---------------------------------------------------------- |
---|
| 80 | # (3) File Lists |
---|
| 81 | # ---------------------------------------------------------- |
---|
| 82 | |
---|
| 83 | %files |
---|
| 84 | %defattr(-,root,root) |
---|
| 85 | %doc README.txt README.en.txt GPL.txt rfc1321.txt |
---|
| 86 | %{_bindir}/stone |
---|
| 87 | %{_mandir}/man1/stone.1* |
---|
| 88 | %{_mandir}/ja/man1/stone.1* |
---|
| 89 | %config /etc/rc.d/init.d/stone |
---|
| 90 | %config(noreplace) /etc/stone.conf |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | # ---------------------------------------------------------- |
---|
| 95 | # (4) Change Log |
---|
| 96 | # ---------------------------------------------------------- |
---|
| 97 | |
---|
| 98 | %changelog |
---|
[2603] | 99 | * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.3e-2 |
---|
| 100 | - rebuild with openssl-1.0.0c |
---|
| 101 | |
---|
[521] | 102 | * Mon Jun 22 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.3e-1 |
---|
| 103 | - new upstream release |
---|
| 104 | - new versioning policy and spec in UTF-8 |
---|
| 105 | - update patch0 (_GNU_SOURCE macro is required glibc >= 2.8) |
---|
| 106 | |
---|
| 107 | * Sat May 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3c-0vl4 |
---|
| 108 | - rebuild with new environment |
---|
| 109 | |
---|
| 110 | * Wed Oct 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3c-0vl3 |
---|
| 111 | - rebuilt for Vine Linux 4.0 |
---|
| 112 | |
---|
| 113 | * Fri Oct 6 2006 Takeru INOUE <takeru.inoue@ieee.org> |
---|
| 114 | - 2.3c-0vl1 |
---|
| 115 | - Updated |
---|
| 116 | |
---|
| 117 | * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3b-0vl2 |
---|
| 118 | - rebuilt for VineSeed (4.0) |
---|
| 119 | |
---|
| 120 | * Sun Jul 16 2006 Takeru INOUE <takeru.inoue@ieee.org> |
---|
| 121 | - 2.3b-0vl1 |
---|
| 122 | - Build for Vine 3.2 |
---|
| 123 | |
---|
| 124 | * Sat Jul 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3-0vl2 |
---|
| 125 | - rebuilt for VineSeed |
---|
| 126 | - changed Group to Applications/Internet |
---|
| 127 | |
---|
| 128 | * Mon Mar 27 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> |
---|
| 129 | - 2.3-0vl1 |
---|
| 130 | - new upstream release |
---|
| 131 | - update Patch0 |
---|
| 132 | - Build for Vine 3.2 |
---|
| 133 | |
---|
| 134 | * Sun Mar 23 2003 Takeru INOUE <takeru.inoue@gamma.ocn.ne.jp> |
---|
| 135 | - 2.1x-0vl0 |
---|
| 136 | - updated |
---|
| 137 | - add /etc/rc.d/init.d/stone and /etc/stone.conf |
---|
| 138 | |
---|
| 139 | * Fri Dec 6 2002 Takashi `Muneharu' Sugimoto <muneharu@raug.net> |
---|
| 140 | - 2.1w-0vl1 |
---|
| 141 | - change the file list |
---|
| 142 | * Thu Oct 31 2002 Takashi Sugimoto |
---|
| 143 | - 2.1w-0vl0 |
---|
| 144 | - updated |
---|
| 145 | * Mon Aug 19 2002 Takashi Sugimoto |
---|
| 146 | - 2.1v-0vl0 |
---|
| 147 | - updated |
---|
| 148 | * Wed Apr 10 2002 Takashi Sugimoto |
---|
| 149 | - 2.1r-0.1vl3 |
---|
| 150 | |
---|