[packages] arm: add arm, the anonymizing relay monitor for Tor
[openwrt/svn-archive/archive.git] / lang / arm / Makefile
1 #
2 # Copyright (C) 2011-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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=arm
11 PKG_VERSION:=1.4.5.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://archive.torproject.org/arm
16 PKG_MD5SUM:=f85f306e50b90796ab7097d948e8fcf2
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21 $(call include_mk, python-package.mk)
22
23 define Package/arm
24 SECTION:=lang
25 CATEGORY:=Languages
26 SUBMENU:=Python
27 TITLE:=Terminal status monitor for Tor relays
28 URL:=http://www.atagar.com/arm/
29 DEPENDS:=+python +python-ncurses +python-readline
30 endef
31
32 define Package/arm/description
33 Command line application for monitoring Tor, providing real time status
34 information such as the current configuration, bandwidth usage, message log,
35 connections, etc. This uses a curses interface much like 'top' does for system
36 usage. The application is intended for command-line aficionados, ssh
37 connections, and anyone with a tty terminal for checking their relay's status.
38 endef
39
40 define Build/Compile
41 $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
42 endef
43
44 define Package/arm/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(CP) $(PKG_INSTALL_DIR)/usr/bin/arm $(1)/usr/bin/
47 $(INSTALL_DIR) $(1)/usr/share
48 $(CP) $(PKG_INSTALL_DIR)/usr/share/arm $(1)/usr/share/
49 endef
50
51 $(eval $(call BuildPackage,arm))