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.

66 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_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
  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+= \
  39. --prefix=/ \
  40. --sbindir=/sbin \
  41. --libexecdir=/lib/dhcpcd \
  42. --dbdir=/var/dhcpcd
  43. define Package/dhcpcd/install
  44. $(INSTALL_DIR) $(1)/sbin $(1)/etc $(1)/lib/dhcpcd/dhcpcd-hooks
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/dhcpcd $(1)/sbin/
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/dhcpcd/dhcpcd-run-hooks \
  47. $(1)/lib/dhcpcd/
  48. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/lib/dhcpcd/dhcpcd-hooks/* \
  49. $(1)/lib/dhcpcd/dhcpcd-hooks/
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/dhcpcd.init $(1)/etc/init.d/dhcpcd
  52. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/dhcpcd.conf $(1)/etc/dhcpcd.conf
  53. endef
  54. $(eval $(call BuildPackage,dhcpcd))