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
19 include $(INCLUDE_DIR)/package.mk
24 TITLE:=Ad-Hoc Configuration Protocol daemon
25 URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/ahcp/
26 MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
27 DEPENDS:=+kmod-ipv6 +ip +librt
30 define Package/ahcpd/description
31 Ahcpd is a daemon for configuring an IPv6 network using the Ad-Hoc
32 Configuration Protocol (AHCP). AHCP is designed for wireless mesh
33 networks, where IPv6 autoconfiguration and DHCPv6 do not work, but may
34 also be used on wired networks.
37 define Package/ahcpd/conffiles
42 EXTRA_DEFINES="$(TARGET_CFLAGS)"
44 define Package/ahcpd/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_DIR) $(1)/etc/ahcp
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcp-config.sh $(1)/etc/ahcp/
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcpd $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/etc/config
51 $(INSTALL_CONF) ./files/ahcpd.config $(1)/etc/config/ahcpd
52 $(INSTALL_DIR) $(1)/etc/init.d
53 $(INSTALL_BIN) ./files/ahcpd.init $(1)/etc/init.d/ahcpd
56 $(eval $(call BuildPackage,ahcpd))