From 3dad5aa969e56645ba6fa77b51758bc23222c1bb Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 30 Dec 2009 18:32:32 +0000 Subject: [PATCH] add arpwatch init script (#6384) SVN-Revision: 18973 --- net/arpwatch/Makefile | 4 +++- net/arpwatch/files/arpwatch.init | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 net/arpwatch/files/arpwatch.init diff --git a/net/arpwatch/Makefile b/net/arpwatch/Makefile index 08724e4b3..9a7112869 100644 --- a/net/arpwatch/Makefile +++ b/net/arpwatch/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=arpwatch PKG_VERSION:=2.1a15 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=ftp://ftp.free.fr/.mirrors1/ftp.gentoo.org/distfiles/ @@ -52,6 +52,8 @@ define Package/arpwatch/install $(CP) $(PKG_BUILD_DIR)/arp.dat $(1)/etc/arpwatch/ $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/arpwatch.init $(1)/etc/init.d/arpwatch endef $(eval $(call BuildPackage,arpwatch)) diff --git a/net/arpwatch/files/arpwatch.init b/net/arpwatch/files/arpwatch.init new file mode 100644 index 000000000..56d13e3ad --- /dev/null +++ b/net/arpwatch/files/arpwatch.init @@ -0,0 +1,10 @@ +#!/bin/sh /etc/rc.common +START=90 + +start () { + arpwatch -f /etc/arpwatch/arp.dat -i br-lan +} + +stop() { + killall arpwatch +} -- 2.30.2