Ticket #3805: aprx-0.99.patch

File aprx-0.99.patch, 4.6 KB (added by jrhopper@…, 10 years ago)

package update patch

  • files/aprx.init

    diff -ruN package/net/aprx.orig/files/aprx.init package/net/aprx/files/aprx.init
    old new  
     1#!/bin/sh /etc/rc.common 
     2#Init script for aprx 
     3 
     4START=99 
     5APRX_BIN="/usr/sbin/aprx" 
     6APRX_LOG_DIR="/var/log/aprx" 
     7 
     8system_config() { 
     9        local cfg="$1" 
     10 
     11        config_get hostname "$cfg" hostname 
     12} 
     13 
     14 
     15start() { 
     16        [ -x "$APRX_BIN" ] || return 1 
     17        [ -d "$APRX_LOG_DIR" ] || mkdir -p $APRX_LOG_DIR 
     18        $APRX_BIN 
     19        } 
     20 
     21stop() { 
     22        killall aprx 
     23} 
  • package/net/aprx

    diff -ruN package/net/aprx.orig/Makefile package/net/aprx/Makefile
    old new  
    44# This is free software, licensed under the GNU General Public License v2. 
    55# See /LICENSE for more information. 
    66# 
    7 # $Id: $ 
     7# $Id: Makefile 2 07/06/2008 18:59:01Z jrhopper@gmail.com$ 
    88 
    99include $(TOPDIR)/rules.mk 
    1010 
    1111PKG_NAME:=aprx 
    12 PKG_VERSION:=0.22 
    13 PKG_RELEASE:=svn115 
     12PKG_VERSION:=0.99 
     13PKG_RELEASE:=svn121 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).$(PKG_RELEASE).tar.gz 
    1616PKG_SOURCE_URL:=http://ham.zmailer.org/oh2mqk/aprx 
    17 PKG_MD5SUM:=e376bb1c420858b5053584bae00d498d 
     17PKG_MD5SUM:=095ec0aa24432196002ae717593bfe5c 
    1818 
    1919PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_RELEASE) 
    2020PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
     
    3333        It then forwards appropriate packets to APRS-IS servers. 
    3434endef 
    3535 
     36define Build/Configure 
     37        $(call Build/Configure/Default, \ 
     38                --with-embedded \ 
     39        ) 
     40endef 
     41 
    3642define Package/aprx/install      
     43        $(INSTALL_DIR) $(1)/etc/init.d 
     44        $(INSTALL_BIN) ./files/aprx.init $(1)/etc/init.d/aprx 
    3745        $(INSTALL_DIR) $(1)/etc 
    3846        $(INSTALL_CONF) $(PKG_BUILD_DIR)/aprx.conf $(1)/etc/ 
    3947        $(INSTALL_DIR) $(1)/usr/sbin 
  • patches/100-Makefile_in.patch

    diff -ruN package/net/aprx.orig/patches/100-Makefile_in.patch package/net/aprx/patches/100-Makefile_in.patch
    old new  
    11diff -ruN aprx-0.22.svn115.orig/Makefile.in aprx-0.22.svn115/Makefile.in 
    22--- aprx-0.22.svn115.orig/Makefile.in   2008-07-06 17:28:27.000000000 -0400 
    33+++ aprx-0.22.svn115/Makefile.in        2008-07-06 17:29:42.000000000 -0400 
    4 @@ -25,7 +25,7 @@ 
     4@@ -25,7 +25,8 @@ 
    55 CFLAGS=                @CFLAGS@ $(DEFS) 
    66  
    77 # Linker and flags 
    88-LD=            @LD@ 
    99+LD=            @CC@ 
    1010 LDFLAGS=       @LDFLAGS@ 
     11+datarootdir = @datarootdir@ 
    1112  
    1213 INSTALL=       $(srcdir)/install-sh 
    1314@@ -75,10 +75,10 @@ 
  • patches/101-aprx_conf_in.patch

    diff -ruN package/net/aprx.orig/patches/101-aprx_conf_in.patch package/net/aprx/patches/101-aprx_conf_in.patch
    old new  
     1--- aprx-0.99.svn121.orig/aprx.conf.in  2008-02-17 16:31:06.000000000 -0500 
     2+++ aprx-0.99.svn121/aprx.conf.in       2008-07-22 10:36:59.000000000 -0400 
     3@@ -79,23 +79,6 @@ 
     4 # 
     5 #aprxlog @VARLOG@/aprx.log 
     6  
     7-# erlangfile defines a mmap():able binary file, which stores 
     8-# running sums of interfaces upon which the channel erlang 
     9-# estimator runs, and collects data. 
     10-# Depending on the system, it may be running on a filesystem 
     11-# that actually retains data over reboots, or it may not. 
     12-# With this backing store, the system does not loose cumulating 
     13-# erlang data over the current period, if the restart is quick, 
     14-# and does not stradle any exact minute. 
     15-# (Do restarts at 15 seconds over an even minute..) 
     16-# This file is around 0.5 MB per each interface talking APRS. 
     17-# Things go BADLY WRONG if this file can not be created or 
     18-# it is corrupted! 
     19-# 
     20-# Built-in default value is: @VARRUN@/aprx.state 
     21-# 
     22-#erlangfile @VARRUN@/aprx.state 
     23- 
     24 # erlang-loglevel is config file version of the "-l" option 
     25 # pushing erlang data to syslog(3). 
     26 # Valid values are (possibly) following: NONE, LOG_DAEMON, 
     27@@ -118,6 +101,7 @@ 
     28  
     29 # The  radio serial  option.  Parameters are: 
     30 #   - /dev/ttyUSB1    -- tty device 
     31+#   - /dev/tts/1      -- New style Serial tty as used in OpenWRT 
     32 #   - 19200           -- baud rate, supported ones are: 
     33 #                        1200, 2400, 4800, 9600, 19200, 38400 
     34 #   - 8n1             -- 8-bits, no parity, one stop-bit, 
     35@@ -127,7 +111,7 @@ 
     36 # 
     37 # 
     38 #radio serial   /dev/ttyUSB0  19200 8n1    KISS  callsign N0CALL-14 
     39-#radio serial   /dev/ttyUSB1  19200 8n1    TNC2  callsign N0CALL-13 
     40+#radio serial   /dev/tts/1  19200 8n1    TNC2  callsign N0CALL-13 
     41  
     42 # Additional/alternate options for the "radio" line. 
     43 #