unfs3 is not parallel build safe
[openwrt/svn-archive/archive.git] / net / vtun / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=vtun
11 PKG_VERSION:=3.0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/vtun
16 PKG_MD5SUM:=d3d8bc4d58886498a1c338670eab9315
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/vtun
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+kmod-tun +liblzo +libopenssl
24 TITLE:=VPN tunneling daemon
25 URL:=http://vtun.sourceforge.net
26 SUBMENU:=VPN
27 endef
28
29 define Package/vtun/conffiles
30 /etc/vtund.conf
31 endef
32
33 CONFIGURE_ARGS += \
34 --with-lzo-headers="$(STAGING_DIR)/usr/include/lzo" \
35 --with-lzo-lib="$(STAGING_DIR)/usr/lib/" \
36 --with-ssl-headers="$(STAGING_DIR)/usr/include/openssl" \
37
38 CONFIGURE_VARS += \
39 LIBS="$(TARGET_LDFLAGS)" \
40 BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
41 LZO_HDR_DIR="$(STAGING_DIR)/usr/include/lzo" \
42 SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
43
44 define Build/Compile
45 $(call Build/Compile/Default,vtund)
46 endef
47
48 define Package/vtun/install
49 $(INSTALL_DIR) $(1)/etc
50 $(INSTALL_CONF) $(PKG_BUILD_DIR)/vtund.conf $(1)/etc/
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/vtund $(1)/usr/sbin/
53 endef
54
55 $(eval $(call BuildPackage,vtun))