[packages] dhcp-forwarder: update to 0.10

git-svn-id: svn://svn.openwrt.org/openwrt/packages@32478 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
luka 2012-06-20 22:40:16 +00:00
parent 38dc23b628
commit 0ede23b788
2 changed files with 11 additions and 16 deletions

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006-2012 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.
@ -8,17 +8,17 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=dhcp-forwarder PKG_NAME:=dhcp-forwarder
PKG_VERSION:=0.8 PKG_VERSION:=0.10
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://savannah.nongnu.org/download/dhcp-fwd PKG_SOURCE_URL:=http://savannah.nongnu.org/download/dhcp-fwd
PKG_MD5SUM:=fb3670dee9f71af1e55ac5dcd64e213e PKG_MD5SUM:=3b96dd27f6d05502d4048acab453808d
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
--disable-dietlibc --disable-dietlibc
define Package/dhcp-forwarder define Package/dhcp-forwarder
SECTION:=net SECTION:=net
@ -28,12 +28,6 @@ define Package/dhcp-forwarder
URL:=http://www.nongnu.org/dhcp-fwd/ URL:=http://www.nongnu.org/dhcp-fwd/
endef endef
define Package/dhcp-forwarder/conffiles
/etc/dhcp-fwd.conf
endef
# uses GNU configure
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
cfg_filename="/etc/dhcp-fwd.conf" \ cfg_filename="/etc/dhcp-fwd.conf" \
@ -41,12 +35,14 @@ define Build/Compile
all install all install
endef endef
define Package/dhcp-forwarder/conffiles
/etc/dhcp-fwd.conf
endef
define Package/dhcp-forwarder/install define Package/dhcp-forwarder/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin $(1)/etc $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/contrib/dhcp-fwd.conf $(1)/etc/ $(INSTALL_CONF) $(PKG_BUILD_DIR)/contrib/dhcp-fwd.conf $(1)/etc/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/dhcp-fwd.init $(1)/etc/init.d/dhcp-fwd $(INSTALL_BIN) ./files/dhcp-fwd.init $(1)/etc/init.d/dhcp-fwd
endef endef

View File

@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50 START=50
LOG_D=/var/log LOG_D=/var/log
@ -15,4 +15,3 @@ start() {
stop() { stop() {
[ -f $PID_F ] && kill $(cat $PID_F) [ -f $PID_F ] && kill $(cat $PID_F)
} }