Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=dhcpcd
  9. PKG_VERSION:=6.4.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=ftp://roy.marples.name/pub/dhcpcd \
  12. http://roy.marples.name/downloads/dhcpcd
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  14. PKG_MD5SUM:=b22005c131e7108ecf598b6a4ac091eb
  15. PKG_LICENSE:=BSD-2c
  16. PKG_LICENSE_FILES:=
  17. PKG_MAINTAINER:=Roy Marples <roy@marples.name>
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/dhcpcd
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=DHCPv4/IPv4LL/IPv6RS/DHCPv6 quad stack client
  25. URL:=http://roy.marples.name/projects/dhcpcd
  26. endef
  27. define Package/dhcpcd/description
  28. DHCPv4, IPv6RS and DHCPv6 client with IPv4LL support
  29. dhcpcd is a one stop network management daemon which includes
  30. * RFC compliant DHCPv4 and DHCPv6 clients
  31. * DHCPv6 Prefix Delegation support
  32. * IPv4LL (aka ZeroConf) support
  33. * ARP address conflict resolution
  34. * Link carrier detection
  35. * Wireless SSID profiles
  36. * ARP ping profiles
  37. endef
  38. CONFIGURE_ARGS+= --prefix=/ --sbindir=/sbin \
  39. --libexecdir=/lib/dhcpcd --dbdir=/var/dhcpcd
  40. define Package/dhcpcd/install
  41. $(INSTALL_DIR) $(1)/sbin $(1)/etc $(1)/lib/dhcpcd/dhcpcd-hooks
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/dhcpcd $(1)/sbin/
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/dhcpcd/dhcpcd-run-hooks \
  44. $(1)/lib/dhcpcd/
  45. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/lib/dhcpcd/dhcpcd-hooks/* \
  46. $(1)/lib/dhcpcd/dhcpcd-hooks/
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/dhcpcd.init $(1)/etc/init.d/dhcpcd
  49. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/dhcpcd.conf $(1)/etc/dhcpcd.conf
  50. endef
  51. $(eval $(call BuildPackage,dhcpcd))