Branch oldpackages for 14.07
[14.07/packages.git] / net / dhcpcd / Makefile
1 #
2 # Copyright (C) 2007-2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dhcpcd
11 PKG_VERSION:=6.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://roy.marples.name/pub/dhcpcd
16 PKG_MD5SUM:=6070040c57492925af9ac6aed980de2a
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/dhcpcd
23   SECTION:=net
24   CATEGORY:=Network
25   SUBMENU:=IP Addresses and Names
26   TITLE:=DHCP client for automatically configuring IPv4 networking
27   DEPENDS:=+librt
28   URL:=http://roy.marples.name/projects/dhcpcd
29 endef
30
31 define Package/dhcpcd/description
32         Simple configuration: supports executions of a script when the
33         IP address changes.
34 endef
35
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/
42 endef
43
44 $(eval $(call BuildPackage,dhcpcd))
45