You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

  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:=7.2.2
  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.xz
  14. PKG_HASH:=3db7ff18cba9274da1d2176fb3c7cbe23926a8e58d5c8e244ad55c62d38ba09e
  15. PKG_LICENSE:=BSD-2c
  16. PKG_LICENSE_FILES:=
  17. PKG_CPE_ID:=cpe:/a:roy_marples:dhcpcd
  18. PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/dhcpcd
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=DHCPv4/IPv4LL/IPv6RS/DHCPv6 quad stack client
  26. URL:=http://roy.marples.name/projects/dhcpcd
  27. endef
  28. define Package/dhcpcd/description
  29. DHCPv4, IPv6RS and DHCPv6 client with IPv4LL support
  30. dhcpcd is a one stop network management daemon which includes
  31. * RFC compliant DHCPv4 and DHCPv6 clients
  32. * DHCPv6 Prefix Delegation support
  33. * IPv4LL (aka ZeroConf) support
  34. * ARP address conflict resolution
  35. * Link carrier detection
  36. * Wireless SSID profiles
  37. * ARP ping profiles
  38. endef
  39. CONFIGURE_ARGS+= \
  40. --prefix=/ \
  41. --sbindir=/sbin \
  42. --libexecdir=/lib/dhcpcd \
  43. --dbdir=/var/dhcpcd
  44. define Package/dhcpcd/install
  45. $(INSTALL_DIR) $(1)/sbin $(1)/etc $(1)/lib/dhcpcd/dhcpcd-hooks
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/dhcpcd $(1)/sbin/
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/dhcpcd/dhcpcd-run-hooks \
  48. $(1)/lib/dhcpcd/
  49. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/lib/dhcpcd/dhcpcd-hooks/* \
  50. $(1)/lib/dhcpcd/dhcpcd-hooks/
  51. $(INSTALL_DIR) $(1)/etc/init.d
  52. $(INSTALL_BIN) ./files/dhcpcd.init $(1)/etc/init.d/dhcpcd
  53. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/dhcpcd.conf $(1)/etc/dhcpcd.conf
  54. endef
  55. $(eval $(call BuildPackage,dhcpcd))