packages/aprx: use new service functions
[openwrt/svn-archive/archive.git] / net / aprx / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=aprx
11 PKG_REV:=421
12 PKG_VERSION:=2.00_r$(PKG_REV)
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://repo.ham.fi/svn/aprx/trunk/
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=svn
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/aprx
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=APRS RX only I-gate
27 URL:=http://ham.zmailer.org/oh2mqk/aprx/
28 endef
29
30 define Package/aprx/description
31 This daemon listens for traffic on the specified serial interfaces.
32 It then forwards appropriate packets to APRS-IS servers.
33 endef
34
35 CONFIGURE_ARGS += \
36 --with-embedded \
37
38 define Package/aprx/install
39 $(INSTALL_DIR) $(1)/etc/init.d
40 $(INSTALL_BIN) ./files/aprx.init $(1)/etc/init.d/aprx
41 $(INSTALL_DIR) $(1)/etc
42 $(INSTALL_CONF) $(PKG_BUILD_DIR)/aprx.conf $(1)/etc/
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aprx $(1)/usr/sbin/
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aprx-stat $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,aprx))