[packages] Use default templates instead of custom reimplementations where applicable
[openwrt/svn-archive/archive.git] / net / aprx / Makefile
1 #
2 # Copyright (C) 2008 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_VERSION:=0.99
12 PKG_RELEASE:=svn121
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).$(PKG_RELEASE).tar.gz
15 PKG_SOURCE_URL:=http://ham.zmailer.org/oh2mqk/aprx
16 PKG_MD5SUM:=095ec0aa24432196002ae717593bfe5c
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_RELEASE)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/aprx
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=APRS RX only I-gate
26 URL:=http://ham.zmailer.org/oh2mqk/aprx/
27 endef
28
29 define Package/aprx/description
30 This daemon listens for traffic on the specified serial interfaces.
31 It then forwards appropriate packets to APRS-IS servers.
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --with-embedded \
37 )
38 endef
39
40 define Package/aprx/install
41 $(INSTALL_DIR) $(1)/etc/init.d
42 $(INSTALL_BIN) ./files/aprx.init $(1)/etc/init.d/aprx
43 $(INSTALL_DIR) $(1)/etc
44 $(INSTALL_CONF) $(PKG_BUILD_DIR)/aprx.conf $(1)/etc/
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aprx $(1)/usr/sbin/
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aprx-stat $(1)/usr/sbin/
48 endef
49
50 $(eval $(call BuildPackage,aprx))