1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 663a3ba7b8a124c0f8a7351eaa2dda6fd518de3f3c4ee28fff869bfb03860d48
10 PKG_DESCR
:= anonymous internet communication system
11 PKG_SECTION
:= net
/proxy
12 PKG_DEPENDS
:= libevent zlib libressl
13 PKG_BUILDDEP
:= libevent zlib libressl
15 PKG_URL
:= https
://www.torproject.org
/
16 PKG_SITES
:= https
://www.torproject.org
/dist/
18 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
20 include ${ADK_TOPDIR}/mk
/package.mk
22 $(eval
$(call PKG_template
,TOR
,tor
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 AUTOTOOL_STYLE
:= autoreconf
25 # -DNDEBUG not supported
27 CONFIGURE_ENV
+= ac_cv_libevent_normal
=yes \
28 ac_cv_libevent_linker_option
="" \
29 ac_cv_libevent_dir
="${STAGING_TARGET_DIR}/usr" \
30 ac_cv_openssldir
="${STAGING_TARGET_DIR}/usr" \
31 ac_cv_openssl_linker_option
="" \
32 tor_cv_time_t_signed
=yes \
33 tor_cv_null_is_zero
=yes \
34 tor_cv_unaligned_ok
=yes
36 CONFIGURE_ARGS
+= --disable-tool-name-check
38 ifeq ($(ADK_TARGET_USE_SSP
),y
)
39 CONFIGURE_ARGS
+= --enable-gcc-hardening
41 CONFIGURE_ARGS
+= --disable-gcc-hardening
45 ${INSTALL_DIR} ${IDIR_TOR}/usr
/bin
${IDIR_TOR}/etc
/tor
46 ${INSTALL_DATA} .
/files
/torrc
${IDIR_TOR}/etc
/tor
/
47 ${CP} ${WRKINST}/usr
/bin
/tor
${IDIR_TOR}/usr
/bin
/
49 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk