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
:= e628b4fab70edb4727715b23cf2931375a9f7685ac08f2c59ea498a178463a86
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 # -DNDEBUG not supported
26 CONFIGURE_ENV
+= ac_cv_libevent_normal
=yes \
27 ac_cv_libevent_linker_option
="" \
28 ac_cv_libevent_dir
="${STAGING_TARGET_DIR}/usr" \
29 ac_cv_openssldir
="${STAGING_TARGET_DIR}/usr" \
30 ac_cv_openssl_linker_option
="" \
31 tor_cv_time_t_signed
=yes \
32 tor_cv_null_is_zero
=yes \
33 tor_cv_unaligned_ok
=yes
35 CONFIGURE_ARGS
+= --disable-tool-name-check
37 ifeq ($(ADK_TARGET_USE_SSP
),y
)
38 CONFIGURE_ARGS
+= --enable-gcc-hardening
40 CONFIGURE_ARGS
+= --disable-gcc-hardening
44 ${INSTALL_DIR} ${IDIR_TOR}/usr
/bin
${IDIR_TOR}/etc
/tor
45 ${INSTALL_DATA} .
/files
/torrc
${IDIR_TOR}/etc
/tor
/
46 ${CP} ${WRKINST}/usr
/bin
/tor
${IDIR_TOR}/usr
/bin
/
48 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk