2007-09-03 14:13:19 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ahcpd
|
2008-05-29 20:57:34 +00:00
|
|
|
PKG_VERSION:=0.5
|
2007-09-03 14:13:19 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/
|
2008-05-29 20:57:34 +00:00
|
|
|
PKG_MD5SUM:=0e5fe1199161eeef214c43eca7eec9a1
|
2007-09-03 14:13:19 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ahcpd
|
|
|
|
SECTION:=ipv6
|
|
|
|
CATEGORY:=IPv6
|
|
|
|
TITLE:=Ad-Hoc Configuration Protocol daemon
|
|
|
|
URL:=http://www.pps.jussieu.fr/~jch/software/ahcp/
|
|
|
|
DEPENDS:=+kmod-ipv6 +ip
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ahcpd/description
|
|
|
|
Ahcpd is a daemon for configuring an IPv6 network using the Ad-Hoc
|
|
|
|
Configuration Protocol (AHCP). AHCP is designed for wireless mesh
|
|
|
|
networks, where IPv6 autoconfiguration and DHCPv6 do not work, but may
|
|
|
|
also be used on wired networks.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
( cd $(PKG_BUILD_DIR); \
|
|
|
|
$(SED) 's,/usr/local/bin/,/usr/lib/ahcp/,g' ahcpd.c ; \
|
|
|
|
$(SED) 's,/usr/local/lib/ahcp/,/usr/lib/ahcp/,g' ahcp-config.sh ; \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
2007-10-10 12:52:10 +00:00
|
|
|
define Package/ahcpd/conffiles
|
|
|
|
/etc/config/ahcpd
|
|
|
|
endef
|
|
|
|
|
2007-09-03 14:13:19 +00:00
|
|
|
define Package/ahcpd/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcp-generate{,-address} $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ahcp
|
2008-02-20 14:11:13 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcp{,-dummy}-config.sh $(1)/usr/lib/ahcp/
|
2007-09-03 14:13:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcpd $(1)/usr/sbin/
|
2007-10-10 12:52:10 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/ahcpd.config $(1)/etc/config/ahcpd
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/ahcpd.init $(1)/etc/init.d/ahcpd
|
2007-09-03 14:13:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ahcpd))
|