remove PKG_CAT from packages
[packages.git] / net / ssltunnel / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ssltunnel
12 PKG_VERSION:=1.15
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=${PKG_NAME}-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.hsc.fr/ressources/outils/ssltunnel/download
17 PKG_MD5SUM:=bfe529edb9b6c97bc03d213676b1f35d
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ssltunnel
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+ppp +libopenssl
28   TITLE:=A PPP over SSL vpn tool
29   URL:=http://www.hsc.fr/ressources/outils/ssltunnel/index.html
30 endef
31
32 define Build/Configure
33         $(call Build/Configure/Default, \
34                 , \
35                 BUILD_CC="$(TARGET_CC)" \
36                 HOSTCC="$(HOSTCC)" \
37         )
38 endef
39
40 define Build/Compile
41         $(MAKE) -C $(PKG_BUILD_DIR) \
42                 DESTDIR="$(PKG_INSTALL_DIR)" \
43                 all install
44 endef
45
46 define Package/ssltunnel/install        
47         $(INSTALL_DIR) $(1)/usr/bin
48         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pppclient $(1)/usr/bin/
49         $(INSTALL_DIR) $(1)/usr/sbin
50         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppwho $(1)/usr/sbin/
51         $(INSTALL_DIR) $(1)/usr/lib
52         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/pppserver $(1)/usr/lib/
53 endef
54
55 $(eval $(call BuildPackage,ssltunnel))