3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=04800a111521e7442749b2ce883f962b
10 PKG_SOURCE_URL
:=ftp
://ftp.isc.org
/isc
/dhcp
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,DHCP
,dhcp
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
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)" \
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
)