2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://ftp.isc.org
/isc
/dhcp
/
17 PKG_MD5SUM
:=27d179a3c3fbef576566b456a1168246
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/dhcp
/Default
28 URL:=http://www.isc.org/
31 define Package/dhcp-relay
32 $(call Package/dhcp/Default)
36 define Package/dhcp-server
37 $(call Package/dhcp/Default)
42 define Build/Configure
43 # it's not GNU autoconf stuff
44 (cd
$(PKG_BUILD_DIR
) ; \
49 --copts
"$(TARGET_CFLAGS)" \
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 $(TARGET_CONFIGURE_OPTS
) \
59 DESTDIR
="$(PKG_INSTALL_DIR)" \
64 define Package
/dhcp-relay
/install
65 $(INSTALL_DIR
) $(1)/usr
/sbin
66 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dhcrelay
$(1)/usr
/sbin
/
69 define Package
/dhcp-server
/install
70 $(INSTALL_DIR
) $(1)/usr
/sbin
71 $(INSTALL_DIR
) $(1)/usr
/bin
72 $(INSTALL_DIR
) $(1)/usr
/local
/lib
73 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dhcpd
$(1)/usr
/sbin
/
74 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/omshell
$(1)/usr
/bin
/
75 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/local
/lib
/*.a
$(1)/usr
/local
/lib
76 $(INSTALL_DIR
) $(1)/etc
/init.d
77 $(INSTALL_BIN
) .
/files
/dhcpd.init
$(1)/etc
/init.d
/dhcpd
80 $(eval
$(call BuildPackage
,dhcp-relay
))
81 $(eval
$(call BuildPackage
,dhcp-server
))