tor/tor.spec

changeset 790
ab976cd2e548
parent 789
cbbc8daa8174
equal deleted inserted replaced
0:605efad8f6d4 1:f53c238cdb21
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version
25 %define V_dist 0.2.3.14-alpha
26 %define V_opkg 0.2.3.14
27
28 # package information 24 # package information
29 Name: tor 25 Name: tor
30 Summary: Anonymous Internet Communication System 26 Summary: Anonymous Internet Communication System
31 URL: http://www.torproject.org/ 27 URL: http://www.torproject.org/
32 Vendor: R. Dingledine & N. Mathewson 28 Vendor: R. Dingledine & N. Mathewson
33 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
34 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
35 Class: PLUS 31 Class: PLUS
36 Group: Network 32 Group: Network
37 License: LGPL 33 License: LGPL
38 Version: %{V_opkg} 34 Version: 0.2.4.20
39 Release: 20120427 35 Release: 20140124
40 36
41 # list of sources 37 # list of sources
42 Source0: http://www.torproject.org/dist/tor-%{V_dist}.tar.gz 38 Source0: http://www.torproject.org/dist/tor-%{version}.tar.gz
43 Source1: rc.tor 39 Source1: rc.tor
44 Source2: torrc 40 Source2: torrc
45 41
46 # build information 42 # build information
47 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc 43 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc
63 through several servers that cover your tracks so no observer at any 59 through several servers that cover your tracks so no observer at any
64 single point can tell where the data came from or where it's going. 60 single point can tell where the data came from or where it's going.
65 61
66 %track 62 %track
67 prog tor = { 63 prog tor = {
68 version = %{V_dist} 64 version = %{version}
69 url = http://www.torproject.org/dist/ 65 url = http://www.torproject.org/dist/
70 regex = tor-(\d+\.\d+(\.\d+)*(-(alpha|beta|rc))?)\.tar\.gz 66 regex = tor-(\d+\.\d+(\.\d+)*(-(alpha|beta|rc))?)\.tar\.gz
71 } 67 }
72 68
73 %prep 69 %prep
74 %setup -q -n tor-%{V_dist} 70 %setup -q
75 71
76 %build 72 %build
77 libs="" 73 libs=""
78 case "%{l_platform -t}" in 74 case "%{l_platform -t}" in
79 *-linux* ) libs="$libs -lrt" ;; 75 *-linux* ) libs="$libs -lrt" ;;
80 esac 76 esac
81 CC="%{l_cc}" \ 77 CC="%{l_cc} -fpermissive" \
82 CFLAGS="%{l_cflags -O}" \ 78 CFLAGS="%{l_cflags -O}" \
83 CPPFLAGS="%{l_cppflags}" \ 79 CPPFLAGS="%{l_cppflags}" \
80 CXX="%{l_cxx}" \
81 CXXFLAGS="%{l_cxxflags -O}" \
84 LDFLAGS="%{l_ldflags}" \ 82 LDFLAGS="%{l_ldflags}" \
85 LIBS="$libs" \ 83 LIBS="$libs" \
86 ./configure \ 84 ./configure \
87 --prefix=%{l_prefix} \ 85 --prefix=%{l_prefix} \
88 --mandir=%{l_prefix}/man \ 86 --mandir=%{l_prefix}/man \
90 --with-libevent-dir=%{l_prefix} \ 88 --with-libevent-dir=%{l_prefix} \
91 --disable-asciidoc 89 --disable-asciidoc
92 %{l_make} %{l_mflags -O} 90 %{l_make} %{l_mflags -O}
93 91
94 %install 92 %install
95 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 93 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
96 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 94 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
97 mv $RPM_BUILD_ROOT%{l_prefix}/etc/tor/torrc.sample \ 95 mv $RPM_BUILD_ROOT%{l_prefix}/etc/tor/torrc.sample \
98 $RPM_BUILD_ROOT%{l_prefix}/etc/tor/torrc 96 $RPM_BUILD_ROOT%{l_prefix}/etc/tor/torrc
99 %{l_shtool} subst \ 97 %{l_shtool} subst \
100 -e 's;exec tsocks;exec %{l_prefix}/bin/tsocks;' \ 98 -e 's;exec tsocks;exec %{l_prefix}/bin/tsocks;' \

mercurial