2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/files/
16 PKG_MD5SUM:=a1a610bf20965aa522cd766bf3d5829a
20 include $(INCLUDE_DIR)/package.mk
25 TITLE:=Ad-Hoc Configuration Protocol daemon
26 URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/ahcp/
27 MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
28 DEPENDS:=@IPV6 +ip +librt
31 define Package/ahcpd/description
32 Ahcpd is a daemon for configuring an IPv6 network using the Ad-Hoc
33 Configuration Protocol (AHCP). AHCP is designed for wireless mesh
34 networks, where IPv6 autoconfiguration and DHCPv6 do not work, but may
35 also be used on wired networks.
38 define Package/ahcpd/conffiles
43 EXTRA_DEFINES="$(TARGET_CFLAGS)"
45 define Package/ahcpd/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_DIR) $(1)/etc/ahcp
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcp-config.sh $(1)/etc/ahcp/
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcpd $(1)/usr/sbin/
51 $(INSTALL_DIR) $(1)/etc/config
52 $(INSTALL_CONF) ./files/ahcpd.config $(1)/etc/config/ahcpd
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/ahcpd.init $(1)/etc/init.d/ahcpd
57 $(eval $(call BuildPackage,ahcpd))