@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := tor
PKG_VERSION := 0.4.4.5
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://dist.torproject.org/ \
@ -31,6 +31,8 @@ define Package/tor/Default
CATEGORY:= Network
URL:= https://www.torproject.org/
USERID:= tor = 52:tor= 52
DEPENDS:= +libevent2 +libopenssl +libpthread +librt +zlib +libcap
TITLE:= Tor routing daemon
e n d e f
d e f i n e P a c k a g e / t o r / D e f a u l t / d e s c r i p t i o n
@ -43,21 +45,36 @@ endef
d e f i n e P a c k a g e / t o r
$( call Package /tor /Default )
TITLE:= An anonymous Internet communication system
DEPENDS:= +libevent2 +libopenssl +libpthread +librt +zlib +libcap
TITLE += ( full)
CONFLICTS:= tor-basic
PROVIDES:= tor-basic
VARIANT:= full
e n d e f
d e f i n e P a c k a g e / t o r / d e s c r i p t i o n
$( call Package /tor /Default /description )
T h i s p a c k a g e c o n t a i n s t h e t o r d a e m o n .
T h i s p a c k a g e c o n t a i n s t h e f u l l t o r d a e m o n .
e n d e f
d e f i n e P a c k a g e / t o r - b a s i c
$( call Package /tor /Default )
TITLE += ( no bridge/relay support)
VARIANT:= basic
e n d e f
d e f i n e P a c k a g e / t o r - b a s i c / d e s c r i p t i o n
$( call Package /tor /Default /description )
T h i s p a c k a g e c o n t a i n s t h e b a s i c t o r d a e m o n , w i t h o u t b r i d g e / r e l a y s u p p o r t .
e n d e f
d e f i n e P a c k a g e / t o r - g e n c e r t
$( call Package /tor /Default )
TITLE:= Tor certificate generation
DEPENDS:= +tor
DEPENDS:= tor
e n d e f
d e f i n e P a c k a g e / t o r - g e n c e r t / d e s c r i p t i o n
@ -70,7 +87,7 @@ endef
d e f i n e P a c k a g e / t o r - r e s o l v e
$( call Package /tor /Default )
TITLE:= tor hostname resolve
DEPENDS:= + tor
DEPENDS:= tor-basic
e n d e f
d e f i n e P a c k a g e / t o r - r e s o l v e / d e s c r i p t i o n
@ -83,7 +100,7 @@ endef
d e f i n e P a c k a g e / t o r - g e o i p
$( call Package /tor /Default )
TITLE:= GeoIP db for tor
DEPENDS:= + tor
DEPENDS:= tor-basic
e n d e f
d e f i n e P a c k a g e / t o r - g e o i p / d e s c r i p t i o n
@ -100,6 +117,8 @@ define Package/tor/conffiles
/ e t c / c o n f i g / t o r
e n d e f
P a c k a g e / t o r - b a s i c / conffiles = $( Package/tor/conffiles)
CONFIGURE_ARGS += \
--with-libevent-dir= " $( STAGING_DIR) /usr " \
--with-openssl-dir= " $( STAGING_DIR) /usr " \
@ -114,6 +133,10 @@ CONFIGURE_ARGS += \
--with-tor-group= tor \
--enable-pic
i f e q ( $( BUILD_VARIANT ) , b a s i c )
CONFIGURE_ARGS += --disable-module-relay
e n d i f
TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
TARGET_LDFLAGS += -Wl,--gc-sections -flto
@ -132,6 +155,8 @@ define Package/tor/install
$( INSTALL_CONF) ./files/tor.conf $( 1) /etc/config/tor
e n d e f
P a c k a g e / t o r - b a s i c / install = $( Package/tor/install)
d e f i n e P a c k a g e / t o r - g e n c e r t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/tor-gencert $( 1) /usr/sbin/
@ -151,6 +176,7 @@ define Package/tor-geoip/install
e n d e f
$( eval $ ( call BuildPackage ,tor ) )
$( eval $ ( call BuildPackage ,tor -basic ) )
$( eval $ ( call BuildPackage ,tor -gencert ) )
$( eval $ ( call BuildPackage ,tor -resolve ) )
$( eval $ ( call BuildPackage ,tor -geoip ) )