1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-25 09:20:16 +02:00
openwrt-xburst/package/dhcp/Makefile
nico 1547ec7559 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/openwrt@1405 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-07-11 15:35:30 +00:00

50 lines
1.3 KiB
Makefile

# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=dhcp
PKG_VERSION:=3.0.2
PKG_RELEASE:=1
PKG_MD5SUM:=04800a111521e7442749b2ce883f962b
PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(TOPDIR)/package/rules.mk
$(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
(cd $(PKG_BUILD_DIR) ; \
./configure \
--copts "$(TARGET_CFLAGS)" \
linux-2.2 \
);
touch $@
$(PKG_BUILD_DIR)/.built:
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
touch $@
$(IPKG_DHCP_RELAY):
install -d -m0755 $(IDIR_DHCP_RELAY)/usr/sbin
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(IDIR_DHCP_RELAY)/usr/sbin/
$(RSTRIP) $(IDIR_DHCP_RELAY)
$(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)