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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=ftp
://ftp.isc.org
/isc
/dhcp
/
16 PKG_MD5SUM
:=27d179a3c3fbef576566b456a1168246
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/dhcp
/Default
24 URL:=https://www.isc.org/software/dhcp
27 define Package/dhcp-relay
28 $(call Package/dhcp/Default)
32 define Package/dhcp-server
33 $(call Package/dhcp/Default)
38 define Build/Configure
39 # it's not GNU autoconf stuff
40 (cd
$(PKG_BUILD_DIR
) ; \
45 --copts
"$(TARGET_CFLAGS)" \
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 $(TARGET_CONFIGURE_OPTS
) \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 define Package
/dhcp-relay
/install
61 $(INSTALL_DIR
) $(1)/usr
/sbin
62 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dhcrelay
$(1)/usr
/sbin
/
65 define Package
/dhcp-server
/install
66 $(INSTALL_DIR
) $(1)/usr
/sbin
67 $(INSTALL_DIR
) $(1)/usr
/bin
68 $(INSTALL_DIR
) $(1)/usr
/local
/lib
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dhcpd
$(1)/usr
/sbin
/
70 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/omshell
$(1)/usr
/bin
/
71 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/local
/lib
/*.a
$(1)/usr
/local
/lib
72 $(INSTALL_DIR
) $(1)/etc
/init.d
73 $(INSTALL_BIN
) .
/files
/dhcpd.init
$(1)/etc
/init.d
/dhcpd
76 $(eval
$(call BuildPackage
,dhcp-relay
))
77 $(eval
$(call BuildPackage
,dhcp-server
))