Changeset 4266


Ignore:
Timestamp:
2006-07-24T20:45:15+02:00 (12 years ago)
Author:
nico
Message:

port vsftpd to buildroot-ng

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

Legend:

Unmodified
Added
Removed
  • packages/net/vsftpd/Makefile

    r3112 r4266  
     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:=2.0.4 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=ftp://vsftpd.beasts.org/users/cevans/ 
    818PKG_MD5SUM:=c0bf8c7b8e15ab15827172786fc56115 
    9  
    10 PKG_SOURCE_URL:=ftp://vsftpd.beasts.org/users/cevans/ 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    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,VSFTPD,vsftpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/vsftpd 
     26  SECTION:=net 
     27  CATEGORY:=Network 
     28  TITLE:=A fast and secure FTP server 
     29  DESCRIPTION:=A fast and secure FTP server. 
     30  URL:=http://vsftpd.beasts.org/ 
     31endef 
    2032 
    21 $(PKG_BUILD_DIR)/.configured: 
    22         touch $@ 
     33define Package/vsftpd/conffiles 
     34/etc/vsftpd.conf 
     35endef 
    2336 
    24 $(PKG_BUILD_DIR)/.built: 
     37define Build/Configure 
     38endef 
     39 
     40define Build/Compile 
    2541        rm -rf $(PKG_INSTALL_DIR) 
    2642        mkdir -p $(PKG_INSTALL_DIR) 
     
    3046                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    3147                vsftpd install 
    32         touch $@ 
     48endef 
    3349 
    34 $(IPKG_VSFTPD): 
    35         install -d -m0755 $(IDIR_VSFTPD)/etc 
    36         install -m0644 ./files/vsftpd.conf $(IDIR_VSFTPD)/etc/vsftpd.conf 
    37         install -d -m0755 $(IDIR_VSFTPD)/etc/init.d 
    38         install -m0755 ./files/vsftpd.init $(IDIR_VSFTPD)/etc/init.d/vsftpd 
    39         install -d -m0755 $(IDIR_VSFTPD)/usr/sbin 
    40         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/vsftpd $(IDIR_VSFTPD)/usr/sbin/ 
    41         $(RSTRIP) $(IDIR_VSFTPD) 
    42         $(IPKG_BUILD) $(IDIR_VSFTPD) $(PACKAGE_DIR) 
     50define Package/vsftpd/install 
     51        install -d -m0755 $(1)/etc 
     52        install -m0644 ./files/vsftpd.conf $(1)/etc/vsftpd.conf 
     53        install -d -m0755 $(1)/etc/init.d 
     54        install -m0755 ./files/vsftpd.init $(1)/etc/init.d/vsftpd 
     55        install -d -m0755 $(1)/usr/sbin 
     56        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/vsftpd $(1)/usr/sbin/ 
     57endef 
     58 
     59$(eval $(call BuildPackage,vsftpd)) 
Note: See TracChangeset for help on using the changeset viewer.