2 # Copyright (C) 2008-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=0.2.4.15-rc
14 PKG_SOURCE
:=tor-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://www.torproject.org
/dist \
16 https
://archive.torproject.org
/tor-package-archive
17 PKG_MD5SUM
:=d05da33b2c99978adc55c78ead8b25d2
19 PKG_BUILD_DEPENDS
:=libminiupnpc libnatpmp
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/tor-
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/tor-alpha
/Default
28 URL
:=https
://www.torproject.org
/
31 define Package
/tor-alpha
/Default
/description
32 Tor is a toolset for a wide range of organizations and people that want to
33 improve their safety and security on the Internet. Using Tor can help you
34 anonymize web browsing and publishing
, instant messaging
, IRC
, SSH
, and
35 more. Tor also provides a platform on which software developers can build
36 new applications with built-in anonymity
, safety
, and privacy features.
39 define Package
/tor-alpha
40 $(call Package
/tor-alpha
/Default
)
41 TITLE
:=An anonymous Internet communication system
42 DEPENDS
:=+libevent2
+libopenssl
+libpthread
+librt
+SSP_SUPPORT
:libssp
45 define Package
/tor-alpha
/description
46 $(call Package
/tor-alpha
/Default
/description
)
47 This package contains the tor daemon.
50 define Package
/tor-alpha-fw-helper
51 $(call Package
/tor-alpha
/Default
)
52 TITLE
:=Firewall helper for tor
53 DEPENDS
:=+tor-alpha
+libminiupnpc
+libnatpmp
56 define Package
/tor-alpha-fw-helper
/description
57 $(call Package
/tor-alpha
/Default
/description
)
58 This package contains a helper for automatically configuring port forwarding.
61 define Package
/tor-alpha-geoip
62 $(call Package
/tor-alpha
/Default
)
63 TITLE
:=GeoIP db for tor
67 define Package
/tor-alpha-geoip
/description
68 $(call Package
/tor-alpha
/Default
/description
)
69 This package contains a GeoIP database mapping IP addresses to countries.
72 define Package
/tor-alpha
/conffiles
77 --with-libevent-dir
="$(STAGING_DIR)/usr" \
78 --with-ssl-dir
="$(STAGING_DIR)/usr" \
80 --with-libminiupnpc-dir
="$(STAGING_DIR)/usr" \
82 --with-libnatpmp-dir
="$(STAGING_DIR)/usr" \
86 ifneq ($(CONFIG_SSP_SUPPORT
),y
)
88 --disable-gcc-hardening
90 CFLAGS
="$(TARGET_CFLAGS)"
93 CFLAGS
="$(TARGET_CFLAGS) -fPIC"
100 define Package
/tor-alpha
/install
101 $(INSTALL_DIR
) $(1)/usr
/sbin
102 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/tor
$(1)/usr
/sbin
/
103 $(INSTALL_DIR
) $(1)/etc
/init.d
104 $(INSTALL_BIN
) .
/files
/tor.init
$(1)/etc
/init.d
/tor
105 $(INSTALL_DIR
) $(1)/etc
/tor
106 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/tor
/torrc.sample
$(1)/etc
/tor
/torrc
109 define Package
/tor-alpha-fw-helper
/install
110 $(INSTALL_DIR
) $(1)/usr
/bin
111 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/tor-fw-helper
$(1)/usr
/bin
/
114 define Package
/tor-alpha-geoip
/install
115 $(INSTALL_DIR
) $(1)/usr
/share
/tor
116 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/tor
/geoip
$(1)/usr
/share
/tor
/
119 $(eval
$(call BuildPackage
,tor-alpha
))
120 $(eval
$(call BuildPackage
,tor-alpha-fw-helper
))
121 $(eval
$(call BuildPackage
,tor-alpha-geoip
))