Add send (rfc3971 implementation)
[openwrt/svn-archive/archive.git] / ipv6 / send / Makefile
1 #
2 # Copyright (C) 2008 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:=send
12 PKG_VERSION:=0.2-4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)d_$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://rfc.1924.fr/debian-mobisend/pool/main/s/sendd/
17 PKG_MD5SUM:=57907178cad20fe3a21e2e449de1dc13
18 PKG_BUILD_DIR:=$(BUILD_DIR)/sendd-0.2
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/send
23 SECTION:=ipv6
24 CATEGORY:=IPv6
25 TITLE:=Secure Neighbor Discovery implementation
26 URL:=http://rfc.1924.fr/debian-mobisend.html
27 DEPENDS:=+kmod-ipv6 +ip6tables +libnetfilter-queue +libopenssl +libreadline +libncurses
28 endef
29
30 define Package/send/description
31 DoCoMo's Open Source SEND project provides an implementation of RFC 3971
32 Secure Neighbor Discovery (SEND). SEND cryptographically secures the
33 IPv6 neighbor discovery protocol, countering the threats discussed in
34 RFC 3756 (IPv6 Neighbor Discovery (ND) Trust Models and Threats).
35 endef
36
37 define Package/send/conffiles
38 /etc/sendd/sendd.conf
39 /etc/sendd/params.conf
40 endef
41
42 MAKE_FLAGS += \
43 CC="$(TARGET_CC)" \
44 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnetfilter_queue -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
45 LDFLAGS="$(TARGET_LDFLAGS) -lnfnetlink" \
46
47 define Package/send/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sendd/sendd $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/etc/sendd/
51 $(INSTALL_CONF) $(PKG_BUILD_DIR)/examples/sendd.conf $(1)/etc/sendd/
52 $(INSTALL_CONF) $(PKG_BUILD_DIR)/examples/params.conf $(1)/etc/sendd/
53 endef
54
55 $(eval $(call BuildPackage,send))