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