Changeset 4250


Ignore:
Timestamp:
2006-07-24T09:16:02+02:00 (12 years ago)
Author:
nico
Message:

port matrixtunnel to buildroot-ng

Location:
packages/net/matrixtunnel
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/net/matrixtunnel/Makefile

    r3779 r4250  
     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# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=0.1 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=http://znerol.ch/files 
    818PKG_MD5SUM:=ffbbe0c50cc1863f6080aca302f7e2c8 
    9  
    10 PKG_SOURCE_URL:=http://znerol.ch/files 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
    1521PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1622 
    17 include $(TOPDIR)/package/rules.mk 
     23include $(INCLUDE_DIR)/package.mk 
    1824 
    19 $(eval $(call PKG_template,MATRIXTUNNEL,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/matrixtunnel 
     26  SECTION:=net 
     27  CATEGORY:=Network 
     28  DEPENDS:=+libmatrixssl 
     29  TITLE:=SSL tunnel based on matrixssl 
     30  DESCRIPTION:=SSL tunnel based on matrixssl.\\\ 
     31    matrixtunnel is a stripped down version of stunnel \\\ 
     32    based on matrixssl library 
     33  URL:=http://znerol.ch/svn/matrixtunnel/trunk/ 
     34endef 
    2035 
    21 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared 
    22         (cd $(PKG_BUILD_DIR); \ 
     36define Build/Configure 
     37        (cd $(PKG_BUILD_DIR); rm -f config.cache; \ 
    2338                $(TARGET_CONFIGURE_OPTS) \ 
    2439                CFLAGS="$(TARGET_CFLAGS)" \ 
     
    4964                        --with-matrixssl-src=$(BUILD_DIR)/matrixssl \ 
    5065        ); 
    51         touch $@ 
     66endef 
    5267 
    53 $(PKG_BUILD_DIR)/.built: 
     68define Build/Compile 
    5469        rm -rf $(PKG_INSTALL_DIR) 
    5570        mkdir -p $(PKG_INSTALL_DIR) 
     
    5772                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    5873                all install 
    59         touch $@ 
     74endef 
    6075 
    61 $(IPKG_MATRIXTUNNEL): 
    62         install -d -m0755 $(IDIR_MATRIXTUNNEL)/usr/sbin 
    63         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/matrixtunnel $(IDIR_MATRIXTUNNEL)/usr/sbin/ 
    64         $(RSTRIP) $(IDIR_MATRIXTUNNEL) 
    65         $(IPKG_BUILD) $(IDIR_MATRIXTUNNEL) $(PACKAGE_DIR) 
     76define Package/matrixtunnel/install 
     77        install -d -m0755 $(1)/usr/sbin 
     78        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/matrixtunnel $(1)/usr/sbin/ 
     79endef 
    6680 
    67 mostlyclean: 
    68         $(MAKE) -C $(PKG_BUILD_DIR) clean 
    69         rm -f $(PKG_BUILD_DIR)/.built 
     81$(eval $(call BuildPackage,matrixtunnel)) 
Note: See TracChangeset for help on using the changeset viewer.