branch Attitude Adjustment packages
[12.09/packages.git] / net / peervpn / 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:=peervpn
11 PKG_VERSION:=0-023
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR :=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL :=http://www.peervpn.net/files
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/peervpn
21   SECTION:=net
22   CATEGORY:=Network
23   TITLE:=PeerVPN the open source peer-to-peer VPN
24   URL:=http://www.peervpn.net/
25   DEPENDS:=+libopenssl +ip
26 endef
27
28 define Package/peervpn/description
29   PeerVPN is software that builds virtual ethernet networks between multiple
30   computers. Adding a new node to an existing network doesn't require the
31   existing nodes to alter their configuration, because its IP address is
32   automatically distributed across the whole virtual network.
33 endef
34
35 define Package/peervpn/install
36         $(INSTALL_DIR) $(1)/sbin
37         $(INSTALL_BIN) $(PKG_BUILD_DIR)/peervpn $(1)/sbin/
38         $(INSTALL_DIR) $(1)/etc/peervpn
39         $(INSTALL_CONF) $(PKG_BUILD_DIR)/peervpn.conf $(1)/etc/peervpn
40 endef
41
42 $(eval $(call BuildPackage,peervpn))