This updates the aprx package to the latest version and enhances
functionality. Thanks to bassbuff and swalker.

Signed-off-by: Jon Hopper jrhopper at gmail dott com

Index: patches/100-Makefile_in.patch
===================================================================
--- patches/100-Makefile_in.patch       (revision 21637)
+++ patches/100-Makefile_in.patch       (working copy)
@@ -1,19 +1,19 @@
-diff -ruN aprx-0.22.svn115.orig/Makefile.in aprx-0.22.svn115/Makefile.in
---- aprx-0.22.svn115.orig/Makefile.in  2008-07-06 17:28:27.000000000 -0400
-+++ aprx-0.22.svn115/Makefile.in       2008-07-06 17:29:42.000000000 -0400
-@@ -25,7 +25,8 @@
- CFLAGS=               @CFLAGS@ $(DEFS)
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -27,8 +27,9 @@ CC=          @CC@
+ CFLAGS=               @CFLAGS@

  # Linker and flags
 -LD=           @LD@
 +LD=           @CC@
- LDFLAGS=      @LDFLAGS@
+ LDFLAGS=      @LDFLAGS@ $(PROF)
 +datarootdir = @datarootdir@

  INSTALL=      $(srcdir)/install-sh
-@@ -75,10 +75,10 @@
- all:          $(PROGAPRX) $(PROGSTAT) man aprx.conf
+ INSTALL_PROGRAM=$(INSTALL)  -m 755
+@@ -89,10 +90,10 @@ profile:

+
  $(PROGAPRX):  $(OBJSAPRX) VERSION Makefile
 -              $(LD) $(LDFLAGS) -o $@ $(OBJSAPRX) $(LIBS)
 +              $(CC) $(CFLAGS) -o $@ $(OBJSAPRX) $(LIBS)
Index: Makefile
===================================================================
--- Makefile    (revision 21637)
+++ Makefile    (working copy)
@@ -8,8 +8,8 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=aprx
-PKG_REV:=121
-PKG_VERSION:=0.99_r$(PKG_REV)
+PKG_REV:=367
+PKG_VERSION:=1.99_r$(PKG_REV)
 PKG_RELEASE:=1

 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
@@ -18,31 +18,37 @@
 PKG_SOURCE_VERSION:=$(PKG_REV)
 PKG_SOURCE_PROTO:=svn

+PKG_INSTALL:=1
+
 include $(INCLUDE_DIR)/package.mk

 define Package/aprx
   SECTION:=net
   CATEGORY:=Network
-  TITLE:=APRS RX only I-gate
+  TITLE:=APRS digipeater and Rx/Tx I-Gate
   URL:=http://ham.zmailer.org/oh2mqk/aprx/
 endef

 define Package/aprx/description
-       This daemon listens for traffic on the specified serial interfaces.
-       It then forwards appropriate packets to APRS-IS servers.
+       This daemon passes APRS traffic on the specified serial interfaces.
+       It can digipeat, act as a Tx-IGate or Rx-IGate and requires
very minimal resources.
 endef

+define Package/aprx/conffiles
+/etc/aprx.conf
+endef
+
 CONFIGURE_ARGS += \
        --with-embedded \

-define Package/aprx/install
+define Package/aprx/install
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/aprx.init $(1)/etc/init.d/aprx
        $(INSTALL_DIR) $(1)/etc
-       $(INSTALL_CONF) $(PKG_BUILD_DIR)/aprx.conf $(1)/etc/
+       $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/aprx.conf $(1)/etc/
        $(INSTALL_DIR) $(1)/usr/sbin
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/aprx $(1)/usr/sbin/
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/aprx-stat $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/aprx $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/aprx-stat $(1)/usr/sbin/
 endef

 $(eval $(call BuildPackage,aprx))
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to