70a72c5caea425907b6c93f00e5a26cc7ad94611
[openwrt.git] / package / dhcp / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=dhcp
6 PKG_VERSION:=3.0.2
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=04800a111521e7442749b2ce883f962b
9
10 PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,DHCP,dhcp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
27 ./configure \
28 );
29 touch $@
30
31 $(PKG_BUILD_DIR)/.built:
32 rm -rf $(PKG_INSTALL_DIR)
33 mkdir -p $(PKG_INSTALL_DIR)
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 $(TARGET_CONFIGURE_OPTS) \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 all install
38 touch $@
39
40 $(IPKG_DHCP):
41 install -d -m0755 $(IDIR_DHCP)/usr/sbin
42 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(IDIR_DHCP)/usr/sbin
43 $(RSTRIP) $(IDIR_DHCP)
44 $(IPKG_BUILD) $(IDIR_DHCP) $(PACKAGE_DIR)
This page took 0.048494 seconds and 3 git commands to generate.