Makefile cleanup
[packages.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 # $Id: Makefile 2 07/06/2008 18:59:01Z jrhopper@gmail.com$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=aprx
12 PKG_VERSION:=0.99
13 PKG_RELEASE:=svn121
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).$(PKG_RELEASE).tar.gz
16 PKG_SOURCE_URL:=http://ham.zmailer.org/oh2mqk/aprx
17 PKG_MD5SUM:=095ec0aa24432196002ae717593bfe5c
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_RELEASE)
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 define Build/Configure
36         $(call Build/Configure/Default, \
37                 --with-embedded \
38         )
39 endef
40
41 define Package/aprx/install     
42         $(INSTALL_DIR) $(1)/etc/init.d
43         $(INSTALL_BIN) ./files/aprx.init $(1)/etc/init.d/aprx
44         $(INSTALL_DIR) $(1)/etc
45         $(INSTALL_CONF) $(PKG_BUILD_DIR)/aprx.conf $(1)/etc/
46         $(INSTALL_DIR) $(1)/usr/sbin
47         $(INSTALL_BIN) $(PKG_BUILD_DIR)/aprx $(1)/usr/sbin/
48         $(INSTALL_BIN) $(PKG_BUILD_DIR)/aprx-stat $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,aprx))