packages/howl: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28904 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
48d24de492
commit
6a3ba63e60
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006-2010 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=howl
|
PKG_NAME:=howl
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.0.0
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://www.porchdogsoft.com/download/
|
PKG_SOURCE_URL:=http://www.porchdogsoft.com/download/
|
||||||
@ -117,7 +117,7 @@ define Package/howl-autoipd/install
|
|||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/autoipd $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/autoipd $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_DATA) ./files/autoipd.init $(1)/etc/init.d/autoipd
|
$(INSTALL_BIN) ./files/autoipd.init $(1)/etc/init.d/autoipd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/howl-mdnsresponder/install
|
define Package/howl-mdnsresponder/install
|
||||||
@ -133,7 +133,7 @@ define Package/howl-nifd/install
|
|||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nifd $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nifd $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_DATA) ./files/nifd.init $(1)/etc/init.d/nifd
|
$(INSTALL_BIN) ./files/nifd.init $(1)/etc/init.d/nifd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/howl-utils/install
|
define Package/howl-utils/install
|
||||||
|
@ -1,18 +1,15 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
|
|
||||||
START=50
|
START=50
|
||||||
|
|
||||||
DEFAULT=/etc/default/autopid
|
# XXX: pid-file is /var/run/autoipd-<INTERFACE>.pid
|
||||||
RUN_D=/var/run
|
SERVICE_USE_PID=
|
||||||
PID_F=$RUN_D/autoipd.pid
|
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ -f $DEFAULT ] && . $DEFAULT
|
service_start /usr/sbin/autoipd
|
||||||
[ -d $RUN_D ] || mkdir -p $RUN_D
|
|
||||||
autoipd $OPTIONS
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
service_stop /usr/sbin/autoipd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,17 +1,14 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
|
|
||||||
START=50
|
START=50
|
||||||
|
|
||||||
DEFAULT=/etc/default/mDNSResponder
|
SERVICE_USE_PID=1
|
||||||
RUN_D=/var/run
|
|
||||||
PID_F=$RUN_D/mDNSResponder.pid
|
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ -f $DEFAULT ] && . $DEFAULT
|
service_start /usr/sbin/mDNSResponder
|
||||||
[ -d $RUN_D ] || mkdir -p $RUN_D
|
|
||||||
mDNSResponder $OPTIONS
|
|
||||||
}
|
}
|
||||||
stop() {
|
stop() {
|
||||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
service_stop /usr/sbin/mDNSResponder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,17 +1,14 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
|
|
||||||
START=50
|
START=50
|
||||||
|
|
||||||
DEFAULT=/etc/default/nifd
|
SERVICE_USE_PID=1
|
||||||
RUN_D=/var/run
|
|
||||||
PID_F=$RUN_D/nifd.pid
|
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ -f $DEFAULT ] && . $DEFAULT
|
service_start /usr/sbin/nifd
|
||||||
[ -d $RUN_D ] || mkdir -p $RUN_D
|
|
||||||
nifd $OPTIONS
|
|
||||||
}
|
}
|
||||||
stop() {
|
stop() {
|
||||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
service_stop /usr/sbin/nifd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user