packages: add missing conffiles define
[openwrt/svn-archive/archive.git] / net / n2n / 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_BRANCH:=trunk
11 PKG_SOURCE_URL:=https://svn.ntop.org/svn/ntop/trunk/n2n
12 PKG_REV:=3875
13
14 PKG_NAME:=n2n
15 PKG_VERSION:=$(PKG_REV)
16 PKG_RELEASE:=3
17
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
20 PKG_SOURCE_PROTO:=svn
21 PKG_SOURCE_VERSION:=$(PKG_REV)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/n2n
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=VPN tunneling daemon
29 URL:=http://www.ntop.org/n2n/
30 SUBMENU:=VPN
31 DEPENDS:=+libpthread +kmod-tun
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 $(TARGET_CONFIGURE_OPTS) \
37 CFLAGS="$(TARGET_CFLAGS)" \
38 INSTALL_PROG=":"
39 endef
40
41 define Package/n2n/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/edge $(1)/usr/sbin/
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/supernode $(1)/usr/sbin/
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_DATA) ./files/n2n.config $(1)/etc/config/n2n
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/n2n.init $(1)/etc/init.d/n2n
49 endef
50
51 define Package/n2n/conffiles
52 /etc/config/n2n
53 endef
54
55 $(eval $(call BuildPackage,n2n))