2006-08-10 21:44:54 +00:00
|
|
|
#
|
2012-06-16 19:34:14 +00:00
|
|
|
# Copyright (C) 2008-2012 OpenWrt.org
|
2006-08-10 21:44:54 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=tor
|
2012-07-15 01:03:34 +00:00
|
|
|
PKG_VERSION:=0.2.2.37
|
2011-12-18 19:30:51 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-08-10 21:44:54 +00:00
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-03-02 07:00:08 +00:00
|
|
|
PKG_SOURCE_URL:=https://www.torproject.org/dist \
|
|
|
|
https://archive.torproject.org/tor-package-archive
|
2012-07-15 01:03:34 +00:00
|
|
|
PKG_MD5SUM:=5aafdca4fb6af6e12b503d32b03f14a7
|
2010-01-21 05:18:45 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2006-08-10 21:44:54 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-02-03 18:23:41 +00:00
|
|
|
define Package/tor/Default
|
2006-08-10 21:44:54 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-02 07:00:08 +00:00
|
|
|
URL:=https://www.torproject.org/
|
2006-08-10 21:44:54 +00:00
|
|
|
endef
|
|
|
|
|
2011-02-03 18:23:41 +00:00
|
|
|
define Package/tor/Default/description
|
2008-07-06 10:46:00 +00:00
|
|
|
Tor is a toolset for a wide range of organizations and people that want to
|
|
|
|
improve their safety and security on the Internet. Using Tor can help you
|
|
|
|
anonymize web browsing and publishing, instant messaging, IRC, SSH, and
|
|
|
|
more. Tor also provides a platform on which software developers can build
|
2007-09-19 01:31:42 +00:00
|
|
|
new applications with built-in anonymity, safety, and privacy features.
|
|
|
|
endef
|
|
|
|
|
2011-02-03 18:23:41 +00:00
|
|
|
define Package/tor
|
|
|
|
$(call Package/tor/Default)
|
|
|
|
TITLE:=An anonymous Internet communication system
|
2011-09-10 08:06:21 +00:00
|
|
|
DEPENDS:=+libevent2 +libopenssl +libpthread +librt
|
2011-02-03 18:23:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tor-geoip
|
|
|
|
$(call Package/tor/Default)
|
|
|
|
TITLE:=GeoIP db for tor
|
|
|
|
DEPENDS:=+tor
|
|
|
|
endef
|
|
|
|
|
2006-08-10 21:44:54 +00:00
|
|
|
define Package/tor/conffiles
|
|
|
|
/etc/tor/torrc
|
|
|
|
endef
|
|
|
|
|
2007-08-19 11:44:23 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-libevent-dir="$(STAGING_DIR)/usr" \
|
|
|
|
--with-ssl-dir="$(STAGING_DIR)/usr" \
|
2011-09-03 22:53:04 +00:00
|
|
|
--disable-asciidoc
|
2006-08-10 21:44:54 +00:00
|
|
|
|
2007-09-19 01:31:42 +00:00
|
|
|
CONFIGURE_VARS += \
|
2011-09-03 22:53:04 +00:00
|
|
|
CROSS_COMPILE="yes"
|
2007-09-19 01:31:42 +00:00
|
|
|
|
|
|
|
# pass CFLAGS again to override -O2 set by configure
|
2010-01-21 05:18:45 +00:00
|
|
|
MAKE_FLAGS += \
|
2011-09-03 22:53:04 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)"
|
2007-09-19 01:31:42 +00:00
|
|
|
|
|
|
|
define Package/tor/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2009-12-05 01:06:54 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tor $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/tor.init $(1)/etc/init.d/tor
|
|
|
|
$(INSTALL_DIR) $(1)/etc/tor
|
2009-12-05 01:06:54 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/tor/torrc.sample $(1)/etc/tor/torrc
|
2006-08-10 21:44:54 +00:00
|
|
|
endef
|
|
|
|
|
2011-02-03 18:23:41 +00:00
|
|
|
define Package/tor-geoip/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/tor
|
2011-03-02 07:00:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/tor/geoip $(1)/usr/share/tor/
|
2011-02-03 18:23:41 +00:00
|
|
|
endef
|
|
|
|
|
2006-08-10 21:44:54 +00:00
|
|
|
$(eval $(call BuildPackage,tor))
|
2011-02-03 18:23:41 +00:00
|
|
|
$(eval $(call BuildPackage,tor-geoip))
|