2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/
17 PKG_MD5SUM:=10779877e69605ab22675b36fbe3b8a4
19 include $(INCLUDE_DIR)/package.mk
24 TITLE:=Ad-Hoc Configuration Protocol daemon
25 URL:=http://www.pps.jussieu.fr/~jch/software/ahcp/
26 DEPENDS:=+kmod-ipv6 +ip
29 define Package/ahcpd/description
30 Ahcpd is a daemon for configuring an IPv6 network using the Ad-Hoc
31 Configuration Protocol (AHCP). AHCP is designed for wireless mesh
32 networks, where IPv6 autoconfiguration and DHCPv6 do not work, but may
33 also be used on wired networks.
36 define Build/Configure
37 ( cd $(PKG_BUILD_DIR); \
38 $(SED) 's,/usr/local/bin/,/usr/lib/ahcp/,g' ahcpd.c ; \
39 $(SED) 's,/usr/local/lib/ahcp/,/usr/lib/ahcp/,g' ahcp-config.sh ; \
44 $(MAKE) -C $(PKG_BUILD_DIR) \
46 CFLAGS="$(TARGET_CFLAGS)" \
50 define Package/ahcpd/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcp-generate{,-address} $(1)/usr/bin/
53 $(INSTALL_DIR) $(1)/usr/lib/ahcp
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcp-config.sh $(1)/usr/lib/ahcp/
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcpd $(1)/usr/sbin/
59 $(eval $(call BuildPackage,ahcpd))