From 936197aef2440583a78d46d780240cf170fc075b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 5 Feb 2012 14:59:06 +0000 Subject: [PATCH] [packages_10.03.2] aprx: merge r29048, r29199 SVN-Revision: 30191 --- net/aprx/Makefile | 8 ++++++-- net/aprx/files/aprx.init | 20 ++++++-------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/net/aprx/Makefile b/net/aprx/Makefile index 6a38e756a8..16e98badc3 100644 --- a/net/aprx/Makefile +++ b/net/aprx/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2008-2010 OpenWrt.org +# Copyright (C) 2008-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=aprx PKG_REV:=421 PKG_VERSION:=2.00_r$(PKG_REV) -PKG_RELEASE:=1 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://repo.ham.fi/svn/aprx/trunk/ @@ -45,4 +45,8 @@ define Package/aprx/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/aprx-stat $(1)/usr/sbin/ endef +define Package/aprx/conffiles +/etc/aprx.conf +endef + $(eval $(call BuildPackage,aprx)) diff --git a/net/aprx/files/aprx.init b/net/aprx/files/aprx.init index e2dcd89f41..9682eeeb84 100644 --- a/net/aprx/files/aprx.init +++ b/net/aprx/files/aprx.init @@ -1,23 +1,15 @@ #!/bin/sh /etc/rc.common -#Init script for aprx +# Copyright (C) 2008-2011 OpenWrt.org START=99 -APRX_BIN="/usr/sbin/aprx" -APRX_LOG_DIR="/var/log/aprx" - -system_config() { - local cfg="$1" - - config_get hostname "$cfg" hostname -} +SERVICE_USE_PID=1 start() { - [ -x "$APRX_BIN" ] || return 1 - [ -d "$APRX_LOG_DIR" ] || mkdir -p $APRX_LOG_DIR - $APRX_BIN - } + mkdir -m 0755 -p /var/log/aprx + service_start /usr/sbin/aprx +} stop() { - killall aprx + service_stop /usr/sbin/aprx } -- 2.30.2