summaryrefslogtreecommitdiffstats
path: root/plugins/apps/tor.mk
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-08-28 20:10:17 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-12-03 23:10:45 (GMT)
commitb885e09922dee2bfd0274a39fa589aea39c02235 (patch)
tree30884d7ff2944777685bd068b751e3269be69f44 /plugins/apps/tor.mk
parent5d3e9cdfc1d06063b6fa196d2e3004c20f2a188e (diff)
downloadmxe-b885e09922dee2bfd0274a39fa589aea39c02235.zip
mxe-b885e09922dee2bfd0274a39fa589aea39c02235.tar.gz
mxe-b885e09922dee2bfd0274a39fa589aea39c02235.tar.bz2
add package "tor" to plugin "apps"
Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security. https://www.torproject.org/
Diffstat (limited to 'plugins/apps/tor.mk')
-rw-r--r--plugins/apps/tor.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/apps/tor.mk b/plugins/apps/tor.mk
new file mode 100644
index 0000000..f75933b
--- /dev/null
+++ b/plugins/apps/tor.mk
@@ -0,0 +1,27 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := tor
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 0.2.6.10
+$(PKG)_CHECKSUM := 0542c0efe43b86619337862fa7eb02c7a74cb23a79d587090628a5f0f1224b8d
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := https://torproject.org/dist/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libevent openssl zlib
+
+define $(PKG)_UPDATE
+$(WGET) -q -O- 'https://torproject.org/download/download' | \
+ $(SED) -n 's,.*tor-\([0-9][^"]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && \
+ LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \
+ ./configure \
+ $(MXE_CONFIGURE_OPTS)
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_DOCS)
+endef
+
+$(PKG)_BUILD_SHARED =