2 # Copyright (C) 2007-2013 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.bz2
15 PKG_SOURCE_URL:=ftp://roy.marples.name/pub/dhcpcd
16 PKG_MD5SUM:=6070040c57492925af9ac6aed980de2a
20 include $(INCLUDE_DIR)/package.mk
25 SUBMENU:=IP Addresses and Names
26 TITLE:=DHCP client for automatically configuring IPv4 networking
28 URL:=http://roy.marples.name/projects/dhcpcd
31 define Package/dhcpcd/description
32 Simple configuration: supports executions of a script when the
36 define Package/dhcpcd/install
37 $(INSTALL_DIR) $(1)/sbin $(1)/etc $(1)/etc/dhcpcd.enter-hook
38 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcpcd $(1)/sbin/
39 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dhcpcd-run-hooks $(1)/sbin/
40 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/dhcpcd.conf $(1)/etc/dhcpcd.conf
41 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/usr/lib/dhcpcd-hooks/* $(1)/etc/dhcpcd.enter-hook/
44 $(eval $(call BuildPackage,dhcpcd))