source: packages/net/tor/Makefile @ 29177

Last change on this file since 29177 was 29177, checked in by nico, 5 years ago

packages/tor{,-alpha}: use a fixed predictable pid-file location (patch from Peter Wagner), remove PidFile config entry

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1#
2# Copyright (C) 2008-2011 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
11PKG_VERSION:=0.2.2.34
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=https://www.torproject.org/dist \
16        https://archive.torproject.org/tor-package-archive
17PKG_MD5SUM:=0f1bbb8e086ea2aba41ff7f898fcf3bd
18
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/tor/Default
24  SECTION:=net
25  CATEGORY:=Network
26  URL:=https://www.torproject.org/
27endef
28
29define Package/tor/Default/description
30 Tor is a toolset for a wide range of organizations and people that want to
31 improve their safety and security on the Internet. Using Tor can help you
32 anonymize web browsing and publishing, instant messaging, IRC, SSH, and
33 more. Tor also provides a platform on which software developers can build
34 new applications with built-in anonymity, safety, and privacy features.
35endef
36
37define Package/tor
38$(call Package/tor/Default)
39  TITLE:=An anonymous Internet communication system
40  DEPENDS:=+libevent2 +libopenssl +libpthread +librt
41endef
42
43define Package/tor-geoip
44$(call Package/tor/Default)
45  TITLE:=GeoIP db for tor
46  DEPENDS:=+tor
47endef
48
49define Package/tor/conffiles
50/etc/tor/torrc
51endef
52
53CONFIGURE_ARGS += \
54        --with-libevent-dir="$(STAGING_DIR)/usr" \
55        --with-ssl-dir="$(STAGING_DIR)/usr" \
56        --disable-asciidoc
57
58CONFIGURE_VARS += \
59        CROSS_COMPILE="yes"
60
61# pass CFLAGS again to override -O2 set by configure
62MAKE_FLAGS += \
63        CFLAGS="$(TARGET_CFLAGS)"
64
65define Package/tor/install
66        $(INSTALL_DIR) $(1)/usr/sbin
67        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tor $(1)/usr/sbin/
68        $(INSTALL_DIR) $(1)/etc/init.d
69        $(INSTALL_BIN) ./files/tor.init $(1)/etc/init.d/tor
70        $(INSTALL_DIR) $(1)/etc/tor
71        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/tor/torrc.sample $(1)/etc/tor/torrc
72endef
73
74define Package/tor-geoip/install
75        $(INSTALL_DIR) $(1)/usr/share/tor
76        $(CP) $(PKG_INSTALL_DIR)/usr/share/tor/geoip $(1)/usr/share/tor/
77endef
78
79$(eval $(call BuildPackage,tor))
80$(eval $(call BuildPackage,tor-geoip))
Note: See TracBrowser for help on using the repository browser.