mcproxy: add initial
[feed/routing.git] / ahcpd / Makefile
1 #
2 # Copyright (C) 2007-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ahcpd
11 PKG_VERSION:=0.53
12 PKG_RELEASE:=2
13
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
17
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ahcpd
22 SECTION:=net
23 CATEGORY:=Network
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
28 endef
29
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.
35 endef
36
37 define Package/ahcpd/conffiles
38 /etc/config/ahcpd
39 endef
40
41 MAKE_FLAGS += \
42 EXTRA_DEFINES="$(TARGET_CFLAGS)"
43
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
54 endef
55
56 $(eval $(call BuildPackage,ahcpd))