ahcpd: use SHA256 hash and use HTTPS everywhere
[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:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
16 PKG_HASH:=a4622e817d2b2a9b878653f085585bd57f3838cc546cca6028d3b73ffcac0d52
17
18 PKG_MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
19 PKG_LICENSE:=MIT
20 PKG_LICENSE_FILES:=LICENCE
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ahcpd
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Ad-Hoc Configuration Protocol daemon
28 URL:=https://www.irif.fr/~jch/software/ahcp/
29 DEPENDS:=@IPV6 +ip +librt
30 endef
31
32 define Package/ahcpd/description
33 Ahcpd is a daemon for configuring an IPv6 network using the Ad-Hoc
34 Configuration Protocol (AHCP). AHCP is designed for wireless mesh
35 networks, where IPv6 autoconfiguration and DHCPv6 do not work, but may
36 also be used on wired networks.
37 endef
38
39 define Package/ahcpd/conffiles
40 /etc/config/ahcpd
41 endef
42
43 MAKE_FLAGS += \
44 EXTRA_DEFINES="$(TARGET_CFLAGS)"
45
46 define Package/ahcpd/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_DIR) $(1)/etc/ahcp
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcp-config.sh $(1)/etc/ahcp/
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ahcpd $(1)/usr/sbin/
52 $(INSTALL_DIR) $(1)/etc/config
53 $(INSTALL_CONF) ./files/ahcpd.config $(1)/etc/config/ahcpd
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/ahcpd.init $(1)/etc/init.d/ahcpd
56 endef
57
58 $(eval $(call BuildPackage,ahcpd))