mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-05 17:31:06 +02:00
Simplify configure and add target optimizations,
Rename dhcp package to dhcp-server, Add dhcp-relay package. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1405 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
28fd9cd55a
commit
936ed6e3e6
@ -1,7 +1,25 @@
|
|||||||
config BR2_PACKAGE_DHCP
|
config BR2_PACKAGE_DHCP
|
||||||
tristate "dhcp"
|
bool
|
||||||
|
default n
|
||||||
|
depends BR2_PACKAGE_DHCP_RELAY || BR2_PACKAGE_DHCP_SERVER
|
||||||
|
|
||||||
|
config BR2_PACKAGE_DHCP_RELAY
|
||||||
|
tristate "dhcp-relay - ISC DHCP relay"
|
||||||
default m if CONFIG_DEVEL
|
default m if CONFIG_DEVEL
|
||||||
help
|
help
|
||||||
dhcp server
|
ISC (Internet Software Consortium) DHCP (Dynamic Host Configuration
|
||||||
|
Protocol) relay daemon.
|
||||||
|
|
||||||
|
http://www.isc.org/
|
||||||
|
|
||||||
|
|
||||||
|
config BR2_PACKAGE_DHCP_SERVER
|
||||||
|
tristate "dhcp-server - ISC DHCP server"
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
help
|
||||||
|
ISC (Internet Software Consortium) DHCP (Dynamic Host Configuration
|
||||||
|
Protocol) server daemon.
|
||||||
|
|
||||||
|
http://www.isc.org/
|
||||||
|
|
||||||
|
|
||||||
http://www.isc.org
|
|
||||||
|
@ -16,15 +16,14 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|||||||
|
|
||||||
include $(TOPDIR)/package/rules.mk
|
include $(TOPDIR)/package/rules.mk
|
||||||
|
|
||||||
$(eval $(call PKG_template,DHCP,dhcp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
$(eval $(call PKG_template,DHCP_RELAY,dhcp-relay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,DHCP_SERVER,dhcp-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
|
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
|
||||||
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
(cd $(PKG_BUILD_DIR) ; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
|
||||||
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|
||||||
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|
||||||
./configure \
|
./configure \
|
||||||
|
--copts "$(TARGET_CFLAGS)" \
|
||||||
|
linux-2.2 \
|
||||||
);
|
);
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
@ -37,8 +36,14 @@ $(PKG_BUILD_DIR)/.built:
|
|||||||
all install
|
all install
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(IPKG_DHCP):
|
$(IPKG_DHCP_RELAY):
|
||||||
install -d -m0755 $(IDIR_DHCP)/usr/sbin
|
install -d -m0755 $(IDIR_DHCP_RELAY)/usr/sbin
|
||||||
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(IDIR_DHCP)/usr/sbin
|
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(IDIR_DHCP_RELAY)/usr/sbin/
|
||||||
$(RSTRIP) $(IDIR_DHCP)
|
$(RSTRIP) $(IDIR_DHCP_RELAY)
|
||||||
$(IPKG_BUILD) $(IDIR_DHCP) $(PACKAGE_DIR)
|
$(IPKG_BUILD) $(IDIR_DHCP_RELAY) $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
$(IPKG_DHCP_SERVER):
|
||||||
|
install -d -m0755 $(IDIR_DHCP_SERVER)/usr/sbin
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(IDIR_DHCP_SERVER)/usr/sbin/
|
||||||
|
$(RSTRIP) $(IDIR_DHCP_SERVER)
|
||||||
|
$(IPKG_BUILD) $(IDIR_DHCP_SERVER) $(PACKAGE_DIR)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Package: dhcp
|
Package: dhcp-relay
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: net
|
Section: net
|
||||||
Maintainer: OpenWrt Developers <bugs@openwrt.org>
|
Maintainer: OpenWrt Developers <bugs@openwrt.org>
|
||||||
Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/dhcp/
|
Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/dhcp/
|
||||||
Description: isc dhcp server
|
Description: ISC DHCP relay
|
6
openwrt/package/dhcp/ipkg/dhcp-server.control
Normal file
6
openwrt/package/dhcp/ipkg/dhcp-server.control
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Package: dhcp-server
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Maintainer: OpenWrt Developers <bugs@openwrt.org>
|
||||||
|
Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/dhcp/
|
||||||
|
Description: ISC DHCP server
|
Loading…
x
Reference in New Issue
Block a user