#
-# Copyright (C) 2006-2010 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=howl
PKG_VERSION:=1.0.0
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.porchdogsoft.com/download/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/autoipd $(1)/usr/sbin/
$(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
define Package/howl-mdnsresponder/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nifd $(1)/usr/sbin/
$(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
define Package/howl-utils/install
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
START=50
-DEFAULT=/etc/default/autopid
-RUN_D=/var/run
-PID_F=$RUN_D/autoipd.pid
+# XXX: pid-file is /var/run/autoipd-<INTERFACE>.pid
+SERVICE_USE_PID=
start() {
- [ -f $DEFAULT ] && . $DEFAULT
- [ -d $RUN_D ] || mkdir -p $RUN_D
- autoipd $OPTIONS
+ service_start /usr/sbin/autoipd
}
-
stop() {
- [ -f $PID_F ] && kill $(cat $PID_F)
+ service_stop /usr/sbin/autoipd
}
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
START=50
-DEFAULT=/etc/default/mDNSResponder
-RUN_D=/var/run
-PID_F=$RUN_D/mDNSResponder.pid
+SERVICE_USE_PID=1
start() {
- [ -f $DEFAULT ] && . $DEFAULT
- [ -d $RUN_D ] || mkdir -p $RUN_D
- mDNSResponder $OPTIONS
+ service_start /usr/sbin/mDNSResponder
}
stop() {
- [ -f $PID_F ] && kill $(cat $PID_F)
+ service_stop /usr/sbin/mDNSResponder
}
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
START=50
-DEFAULT=/etc/default/nifd
-RUN_D=/var/run
-PID_F=$RUN_D/nifd.pid
+SERVICE_USE_PID=1
start() {
- [ -f $DEFAULT ] && . $DEFAULT
- [ -d $RUN_D ] || mkdir -p $RUN_D
- nifd $OPTIONS
+ service_start /usr/sbin/nifd
}
stop() {
- [ -f $PID_F ] && kill $(cat $PID_F)
+ service_stop /usr/sbin/nifd
}