typo in libnotimpl
[openwrt/svn-archive/archive.git] / ipv6 / ahcpd / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ahcpd
12 PKG_VERSION:=0.1
13 PKG_RELEASE:=1
14
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
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ahcpd
22 SECTION:=ipv6
23 CATEGORY:=IPv6
24 TITLE:=Ad-Hoc Configuration Protocol daemon
25 URL:=http://www.pps.jussieu.fr/~jch/software/ahcp/
26 DEPENDS:=+kmod-ipv6 +ip
27 endef
28
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.
34 endef
35
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 ; \
40 )
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 CC="$(TARGET_CC)" \
46 CFLAGS="$(TARGET_CFLAGS)" \
47 all
48 endef
49
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/
57 endef
58
59 $(eval $(call BuildPackage,ahcpd))