massive Makefile cleanup, add missing 'svn:keywords' property
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ssltunnel
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=+ppp +libopenssl
29   TITLE:=A PPP over SSL vpn tool
30   URL:=http://www.hsc.fr/ressources/outils/ssltunnel/index.html
31 endef
32
33 define Build/Configure
34         $(call Build/Configure/Default, \
35                 , \
36                 BUILD_CC="$(TARGET_CC)" \
37                 HOSTCC="$(HOSTCC)" \
38         )
39 endef
40
41 define Build/Compile
42         $(MAKE) -C $(PKG_BUILD_DIR) \
43                 DESTDIR="$(PKG_INSTALL_DIR)" \
44                 all install
45 endef
46
47 define Package/ssltunnel/install        
48         install -d -m0755 $(1)/usr/bin
49         install -m0755 $(PKG_INSTALL_DIR)/usr/bin/pppclient $(1)/usr/bin/
50         install -d -m0755 $(1)/usr/sbin
51         install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppwho $(1)/usr/sbin/
52         install -d -m0755 $(1)/usr/lib
53         install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppserver $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,ssltunnel))