Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (C) 2007-2011 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:=ahcpd
  9. PKG_VERSION:=0.53
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
  13. PKG_HASH:=a4622e817d2b2a9b878653f085585bd57f3838cc546cca6028d3b73ffcac0d52
  14. PKG_MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENCE
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/ahcpd
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=Ad-Hoc Configuration Protocol daemon
  22. URL:=https://www.irif.fr/~jch/software/ahcp/
  23. DEPENDS:=@IPV6 +ip +librt
  24. endef
  25. define Package/ahcpd/description
  26. Ahcpd is a daemon for configuring an IPv6 network using the Ad-Hoc
  27. Configuration Protocol (AHCP). AHCP is designed for wireless mesh
  28. networks, where IPv6 autoconfiguration and DHCPv6 do not work, but may
  29. also be used on wired networks.
  30. endef
  31. define Package/ahcpd/conffiles
  32. /etc/config/ahcpd
  33. endef
  34. MAKE_FLAGS += \
  35. EXTRA_DEFINES="$(TARGET_CFLAGS)"
  36. define Package/ahcpd/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_DIR) $(1)/etc/ahcp
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcp-config.sh $(1)/etc/ahcp/
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcpd $(1)/usr/sbin/
  42. $(INSTALL_DIR) $(1)/etc/config
  43. $(INSTALL_CONF) ./files/ahcpd.config $(1)/etc/config/ahcpd
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(INSTALL_BIN) ./files/ahcpd.init $(1)/etc/init.d/ahcpd
  46. endef
  47. $(eval $(call BuildPackage,ahcpd))