Fix dhcp-forwarder build, move init-script to ./files/
authorNicolas Thill <nico@openwrt.org>
Sun, 15 May 2005 13:04:57 +0000 (13:04 +0000)
committerNicolas Thill <nico@openwrt.org>
Sun, 15 May 2005 13:04:57 +0000 (13:04 +0000)
SVN-Revision: 909

openwrt/package/Makefile
openwrt/package/dhcp-forwarder/Config.in
openwrt/package/dhcp-forwarder/Makefile
openwrt/package/dhcp-forwarder/files/dhcp-fwd.init [new file with mode: 0644]
openwrt/package/dhcp-forwarder/ipkg/dhcp-forwarder.init [deleted file]

index 7fc50c1be4d5e12034371ff933542879c86b26eb..872489fb970983a27a8dc37b2398743f49576fe1 100644 (file)
@@ -74,7 +74,7 @@ package-$(BR2_PACKAGE_USBUTILS) += usbutils
 package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
 package-$(BR2_PACKAGE_WOL) += wol
 package-$(BR2_PACKAGE_ZLIB) += zlib
-package-$(BR2_PACKAGE_DHCPFWD) += dhcp-forwarder
+package-$(BR2_PACKAGE_DHCP_FORWARDER) += dhcp-forwarder
 package-$(BR2_PACKAGE_LIBGD) += libgd
 package-$(BR2_PACKAGE_LIBNET) += libnet
 package-$(BR2_PACKAGE_LIBMYSQLCLIENT) += mysql
index 34ff1c01671fcf9f9fbdd5e3d6c83862b74c645c..7cddf97478522cbfec731148bb092bc8a87dc956 100644 (file)
@@ -1,5 +1,5 @@
 config BR2_PACKAGE_DHCP_FORWARDER
-       tristate "dhcp-forwarder (a DHCP relay agent)"
+       tristate "dhcp-forwarder - a DHCP relay agent"
        default m if CONFIG_DEVEL
        help
          A DHCP relay agent
index 7b9f23841f3757d9c6eebe9996b642b5775e681e..7da19289825dc26a69a9c5c91b666e8febda78ef 100644 (file)
@@ -56,10 +56,10 @@ $(PKG_BUILD_DIR)/.built:
        touch $(PKG_BUILD_DIR)/.built
        
 $(IPKG_DHCP_FORWARDER):
-       install -m0755 -d $(IDIR_DHCP_FORWARDER)/etc/init.d
-       install -m0755 ./ipkg/$(PKG_NAME).init $(IDIR_DHCP_FORWARDER)/etc/init.d/dhcp-fwd
        install -m0755 -d $(IDIR_DHCP_FORWARDER)/etc
        install -m0644 $(PKG_BUILD_DIR)/contrib/dhcp-fwd.conf $(IDIR_DHCP_FORWARDER)/etc/
+       install -m0755 -d $(IDIR_DHCP_FORWARDER)/etc/init.d
+       install -m0755 ./files/dhcp-fwd.init $(IDIR_DHCP_FORWARDER)/etc/init.d/dhcp-fwd
        install -m0755 -d $(IDIR_DHCP_FORWARDER)/usr/bin
        cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(IDIR_DHCP_FORWARDER)/usr/bin/
        $(RSTRIP) $(IDIR_DHCP_FORWARDER)
diff --git a/openwrt/package/dhcp-forwarder/files/dhcp-fwd.init b/openwrt/package/dhcp-forwarder/files/dhcp-fwd.init
new file mode 100644 (file)
index 0000000..6ad3858
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+LOG_D=/var/log
+RUN_D=/var/run
+PID_F=$RUN_D/dhcpd-fwd.pid
+
+case $1 in
+ start)
+  [ -d $LOG_D ] || mkdir -p $LOG_D
+  [ -d $RUN_D ] || mkdir -p $RUN_D
+  dhcp-fwd
+  ;;
+ stop)
+  [ -f $PID_F ] && kill $(cat $PID_F)
+  ;;
+ *)
+  echo "usage: $0 (start|stop)"
+  exit 1
+esac
+
+exit $?
diff --git a/openwrt/package/dhcp-forwarder/ipkg/dhcp-forwarder.init b/openwrt/package/dhcp-forwarder/ipkg/dhcp-forwarder.init
deleted file mode 100644 (file)
index 6ad3858..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-LOG_D=/var/log
-RUN_D=/var/run
-PID_F=$RUN_D/dhcpd-fwd.pid
-
-case $1 in
- start)
-  [ -d $LOG_D ] || mkdir -p $LOG_D
-  [ -d $RUN_D ] || mkdir -p $RUN_D
-  dhcp-fwd
-  ;;
- stop)
-  [ -f $PID_F ] && kill $(cat $PID_F)
-  ;;
- *)
-  echo "usage: $0 (start|stop)"
-  exit 1
-esac
-
-exit $?