bcaeeaf9e56af1e8ebccc16cf3a6b046ca4e1ce9
[openwrt/svn-archive/archive.git] / net / vpzone / Makefile
1 #
2 # Copyright (C) 2010-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:=vpzone
11 PKG_VERSION:=0.1.2
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/vpzone
16 PKG_MD5SUM:=9b8a142a217f69ece0163b2026dc8585
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/vpzone
24 CATEGORY:=Network
25 SECTION:=net
26 SUBMENU:=VPN
27 TITLE:=A flexible multipurpose layer 3 VPN daemon
28 URL:=http://vpzone.sourceforge.net/
29 DEPENDS:=+libcares +libevent +libgnutls +kmod-ipv6 +kmod-tun
30 endef
31
32 define Package/vpzone/conffiles
33 /etc/vpzone/vpzone.conf
34 endef
35
36 define Package/vpzone/install
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(CP) $(PKG_INSTALL_DIR)/usr/bin/vpzone $(1)/usr/bin/
39 $(INSTALL_DIR) $(1)/usr/lib/vpzone
40 $(CP) $(PKG_INSTALL_DIR)/usr/lib/vpzone/*.so $(1)/usr/lib/vpzone/
41 $(INSTALL_DIR) $(1)/etc/init.d
42 $(INSTALL_BIN) ./files/vpzone.init $(1)/etc/init.d/vpzone
43 $(INSTALL_DIR) $(1)/etc/vpzone
44 $(INSTALL_CONF) ./files/vpzone.conf $(1)/etc/vpzone/
45 endef
46
47 $(eval $(call BuildPackage,vpzone))