2006-08-01 14:54:27 +00:00
|
|
|
#
|
2011-05-24 10:01:23 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-08-01 14:54:27 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=dhcp
|
2008-01-08 17:07:25 +00:00
|
|
|
PKG_VERSION:=3.1.0
|
2011-05-24 10:01:23 +00:00
|
|
|
PKG_RELEASE:=3
|
2006-08-01 14:54:27 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/
|
2008-01-08 17:07:25 +00:00
|
|
|
PKG_MD5SUM:=27d179a3c3fbef576566b456a1168246
|
2006-08-01 14:54:27 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/dhcp/Default
|
2006-08-01 14:54:27 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 06:16:47 +00:00
|
|
|
SUBMENU:=IP Addresses and Names
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE:=ISC's DHCP
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=https://www.isc.org/software/dhcp
|
2006-08-01 14:54:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dhcp-relay
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/dhcp/Default)
|
|
|
|
TITLE+= relay
|
2006-08-01 14:54:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dhcp-server
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/dhcp/Default)
|
|
|
|
TITLE+= server
|
2006-08-01 14:54:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
# it's not GNU autoconf stuff
|
2006-08-01 14:54:27 +00:00
|
|
|
(cd $(PKG_BUILD_DIR) ; \
|
2007-04-01 15:26:01 +00:00
|
|
|
UNAME_S=Linux \
|
|
|
|
UNAME_M=$(ARCH) \
|
2008-01-08 17:07:25 +00:00
|
|
|
UNAME_R=2.6.23 \
|
2006-08-01 14:54:27 +00:00
|
|
|
./configure \
|
2006-10-30 13:51:50 +00:00
|
|
|
--copts "$(TARGET_CFLAGS)" \
|
2006-08-01 14:54:27 +00:00
|
|
|
);
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-04-01 15:26:01 +00:00
|
|
|
UNAME_S=Linux \
|
|
|
|
UNAME_M=$(ARCH) \
|
2008-01-08 17:07:25 +00:00
|
|
|
UNAME_R=2.6.23 \
|
2006-08-01 14:54:27 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
2008-06-15 18:19:42 +00:00
|
|
|
|
2006-08-01 14:54:27 +00:00
|
|
|
define Package/dhcp-relay/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(1)/usr/sbin/
|
2006-08-01 14:54:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dhcp-server/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2008-01-08 20:56:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/local/lib
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(1)/usr/sbin/
|
2008-01-08 20:56:19 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/omshell $(1)/usr/bin/
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/local/lib/*.a $(1)/usr/local/lib
|
2007-10-10 13:28:25 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/dhcpd.init $(1)/etc/init.d/dhcpd
|
2006-08-01 14:54:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,dhcp-relay))
|
|
|
|
$(eval $(call BuildPackage,dhcp-server))
|