2 # Copyright (C) 2008-2014 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://www.torproject.org
/dist \
16 https
://archive.torproject.org
/tor-package-archive
17 PKG_MD5SUM
:=9e39928e310612c3bffee727f554c63f
18 PKG_MAINTAINER
:=Hauke Mehrtens
<hauke@hauke-m.de
>
19 PKG_LICENSE_FILE
:=LICENSE
21 PKG_BUILD_DEPENDS
:=libminiupnpc libnatpmp
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/tor
/Default
29 URL
:=https
://www.torproject.org
/
32 define Package
/tor
/Default
/description
33 Tor is a toolset for a wide range of organizations and people that want to
34 improve their safety and security on the Internet. Using Tor can help you
35 anonymize web browsing and publishing
, instant messaging
, IRC
, SSH
, and
36 more. Tor also provides a platform on which software developers can build
37 new applications with built-in anonymity
, safety
, and privacy features.
41 $(call Package
/tor
/Default
)
42 TITLE
:=An anonymous Internet communication system
43 DEPENDS
:=+libevent2
+libopenssl
+libpthread
+librt
+SSP_SUPPORT
:libssp
46 define Package
/tor
/description
47 $(call Package
/tor
/Default
/description
)
48 This package contains the tor daemon.
51 define Package
/tor-fw-helper
52 $(call Package
/tor
/Default
)
53 TITLE
:=Firewall helper for tor
54 DEPENDS
:=+tor
+libminiupnpc
+libnatpmp
57 define Package
/tor-fw-helper
/description
58 $(call Package
/tor
/Default
/description
)
59 This package contains a helper for automatically configuring port forwarding.
62 define Package
/tor-geoip
63 $(call Package
/tor
/Default
)
64 TITLE
:=GeoIP db for tor
68 define Package
/tor-geoip
/description
69 $(call Package
/tor
/Default
/description
)
70 This package contains a GeoIP database mapping IP addresses to countries.
73 define Package
/tor
/conffiles
78 --with-libevent-dir
="$(STAGING_DIR)/usr" \
79 --with-ssl-dir
="$(STAGING_DIR)/usr" \
81 --with-libminiupnpc-dir
="$(STAGING_DIR)/usr" \
83 --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"
99 define Package
/tor
/install
100 $(INSTALL_DIR
) $(1)/usr
/sbin
101 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/tor
$(1)/usr
/sbin
/
102 $(INSTALL_DIR
) $(1)/etc
/init.d
103 $(INSTALL_BIN
) .
/files
/tor.init
$(1)/etc
/init.d
/tor
104 $(INSTALL_DIR
) $(1)/etc
/tor
105 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/tor
/torrc.sample
$(1)/etc
/tor
/torrc
108 define Package
/tor-fw-helper
/install
109 $(INSTALL_DIR
) $(1)/usr
/bin
110 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/tor-fw-helper
$(1)/usr
/bin
/
113 define Package
/tor-geoip
/install
114 $(INSTALL_DIR
) $(1)/usr
/share
/tor
115 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/tor
/geoip
$(1)/usr
/share
/tor
/
118 $(eval
$(call BuildPackage
,tor
))
119 $(eval
$(call BuildPackage
,tor-fw-helper
))
120 $(eval
$(call BuildPackage
,tor-geoip
))