source: packages/net/tor-alpha/Makefile @ 30429

Last change on this file since 30429 was 30429, checked in by swalker, 4 years ago

[packages] tor-alpha: update to 0.2.3.11-alpha

File size: 3.1 KB
Line 
1#
2# Copyright (C) 2008-2012 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=tor-alpha
11PKG_VERSION:=0.2.3.11-alpha
12PKG_RELEASE:=1
13
14PKG_SOURCE:=tor-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=https://www.torproject.org/dist \
16        https://archive.torproject.org/tor-package-archive
17PKG_MD5SUM:=917f2952f464371727641320292c9a9e
18
19PKG_BUILD_DEPENDS:=libnatpmp
20PKG_BUILD_DIR:=$(BUILD_DIR)/tor-$(PKG_VERSION)
21PKG_INSTALL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/tor-alpha/Default
26  SECTION:=net
27  CATEGORY:=Network
28  URL:=https://www.torproject.org/
29endef
30
31define 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.
37endef
38
39define Package/tor-alpha
40$(call Package/tor-alpha/Default)
41  TITLE:=An anonymous Internet communication system
42  DEPENDS:=+libevent2 +libevent2-openssl +libpthread +librt
43endef
44
45define Package/tor-alpha/description
46$(call Package/tor-alpha/Default/description)
47 This package contains the tor daemon.
48endef
49
50define Package/tor-alpha-fw-helper
51$(call Package/tor-alpha/Default)
52  TITLE:=Firewall helper for tor
53  DEPENDS:=+tor-alpha +libnatpmp
54endef
55
56define Package/tor-alpha-fw-helper/description
57$(call Package/tor-alpha/Default/description)
58 This package contains a helper for automatically configuring port forwarding.
59endef
60
61define Package/tor-alpha-geoip
62$(call Package/tor-alpha/Default)
63  TITLE:=GeoIP db for tor
64  DEPENDS:=+tor-alpha
65endef
66
67define Package/tor-alpha-geoip/description
68$(call Package/tor-alpha/Default/description)
69 This package contains a GeoIP database mapping IP addresses to countries.
70endef
71
72define Package/tor-alpha/conffiles
73/etc/tor/torrc
74endef
75
76CONFIGURE_ARGS += \
77        --with-libevent-dir="$(STAGING_DIR)/usr" \
78        --with-ssl-dir="$(STAGING_DIR)/usr" \
79        --enable-nat-pmp \
80        --with-libnatpmp-dir="$(STAGING_DIR)/usr" \
81        --enable-bufferevents \
82        --disable-asciidoc
83
84CONFIGURE_VARS += \
85        CROSS_COMPILE="yes"
86
87# pass CFLAGS again to override -O2 set by configure
88MAKE_FLAGS += \
89        CFLAGS="$(TARGET_CFLAGS)"
90
91define Package/tor-alpha/install
92        $(INSTALL_DIR) $(1)/usr/sbin
93        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tor $(1)/usr/sbin/
94        $(INSTALL_DIR) $(1)/etc/init.d
95        $(INSTALL_BIN) ./files/tor.init $(1)/etc/init.d/tor
96        $(INSTALL_DIR) $(1)/etc/tor
97        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/tor/torrc.sample $(1)/etc/tor/torrc
98endef
99
100define Package/tor-alpha-fw-helper/install
101        $(INSTALL_DIR) $(1)/usr/bin
102        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tor-fw-helper $(1)/usr/bin/
103endef
104
105define Package/tor-alpha-geoip/install
106        $(INSTALL_DIR) $(1)/usr/share/tor
107        $(CP) $(PKG_INSTALL_DIR)/usr/share/tor/geoip $(1)/usr/share/tor/
108endef
109
110$(eval $(call BuildPackage,tor-alpha))
111$(eval $(call BuildPackage,tor-alpha-fw-helper))
112$(eval $(call BuildPackage,tor-alpha-geoip))
Note: See TracBrowser for help on using the repository browser.