From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 14 23:30:24 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56BCB16A4B3 for ; Tue, 14 Oct 2003 23:30:24 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6EB743FDD for ; Tue, 14 Oct 2003 23:30:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9F6UEFY059257 for ; Tue, 14 Oct 2003 23:30:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9F6UEKP059256; Tue, 14 Oct 2003 23:30:14 -0700 (PDT) (envelope-from gnats) Resent-Date: Tue, 14 Oct 2003 23:30:14 -0700 (PDT) Resent-Message-Id: <200310150630.h9F6UEKP059256@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Statue Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE1EE16A4B3 for ; Tue, 14 Oct 2003 23:20:23 -0700 (PDT) Received: from freebsd.sinica.edu.tw (freebsd.sinica.edu.tw [140.109.13.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFE8B43F75 for ; Tue, 14 Oct 2003 23:20:22 -0700 (PDT) (envelope-from statue@freebsd.sinica.edu.tw) Received: by freebsd.sinica.edu.tw (Postfix, from userid 1014) id 9041EB09; Wed, 15 Oct 2003 14:20:23 +0800 (CST) Message-Id: <20031015062023.9041EB09@freebsd.sinica.edu.tw> Date: Wed, 15 Oct 2003 14:20:23 +0800 (CST) From: Statue To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/58053: New port: chinese/ftpd X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Statue List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 06:30:24 -0000 >Number: 58053 >Category: ports >Synopsis: New port: chinese/ftpd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Oct 14 23:30:14 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Statue >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD freebsd.sinica.edu.tw 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Mon Sep 15 18:44:48 CST 2003 root@freebsd.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386 >Description: Remove GLOB_BRACE and GLOB_QUOTE from ftpd downloading. GLOB_BRACE Pre-process the pattern string to expand `{pat,pat,...}' strings like csh(1). The pattern `{}' is left unex- panded for historical reasons (and csh(1) does the same thing to ease typing of find(1) patterns). GLOB_QUOTE Use the backslash (`\') character for quoting: every occurrence of a backslash followed by a character in the pattern is replaced by that character, avoiding any spe- cial interpretation of the character. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ftpd/ # ftpd/Makefile # ftpd/files # ftpd/pkg-descr # ftpd/pkg-plist # ftpd/files/patch-ftpcmd.y # echo c - ftpd/ mkdir -p ftpd/ > /dev/null 2>&1 echo x - ftpd/Makefile sed 's/^X//' >ftpd/Makefile << 'END-of-ftpd/Makefile' X# New ports collection makefile for: ftpd X# Date created: 1 April 2003 X# Whom: Chen Chuan-Hsing X# X# $FreeBSD$ X# X XPORTNAME= ftpd XPORTVERSION= 1.0 XCATEGORIES= chinese XMASTER_SITES= # none XDISTFILES= # none X XMAINTAINER= statue@freebsd.sinica.edu.tw XCOMMENT= Remove GLOB_BRACE and GLOB_QUOTE from ftpd downloading X XSRCDIR= /usr/src/libexec/ftpd XLSDIR= /usr/src/bin/ls XUSE_REINPLACE= yes XWRKSRC= ${WRKDIR}/libexec/ftpd X XMAN8= zh-ftpd.8 X Xdo-extract: X.if exists (${SRCDIR}) && exists (${LSDIR}) X @${MKDIR} ${WRKDIR}/libexec X @${CP} -R ${SRCDIR} ${WRKDIR}/libexec X @${MKDIR} ${WRKDIR}/bin X @${CP} -R ${LSDIR} ${WRKDIR}/bin X.else XBROKEN= "You need to build this port with ${SRCDIR} and ${LSDIR}" X.endif X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/ftpd ${PREFIX}/libexec/zh-ftpd X @${INSTALL_MAN} ${WRKSRC}/ftpd.8 ${PREFIX}/man/man8/${MAN8} X X.include END-of-ftpd/Makefile echo c - ftpd/files mkdir -p ftpd/files > /dev/null 2>&1 echo x - ftpd/pkg-descr sed 's/^X//' >ftpd/pkg-descr << 'END-of-ftpd/pkg-descr' XRemove GLOB_BRACE and GLOB_QUOTE from ftpd downloading. X X GLOB_BRACE Pre-process the pattern string to expand `{pat,pat,...}' X strings like csh(1). The pattern `{}' is left unex- X panded for historical reasons (and csh(1) does the same X thing to ease typing of find(1) patterns). X X GLOB_QUOTE Use the backslash (`\') character for quoting: every X occurrence of a backslash followed by a character in the X pattern is replaced by that character, avoiding any spe- X cial interpretation of the character. END-of-ftpd/pkg-descr echo x - ftpd/pkg-plist sed 's/^X//' >ftpd/pkg-plist << 'END-of-ftpd/pkg-plist' X@comment $FreeBSD: outta-port/ftpd/pkg-plist,v 1.1 2003/04/01 09:09:58 statue Exp $ Xlibexec/zh-ftpd END-of-ftpd/pkg-plist echo x - ftpd/files/patch-ftpcmd.y sed 's/^X//' >ftpd/files/patch-ftpcmd.y << 'END-of-ftpd/files/patch-ftpcmd.y' X--- ftpcmd.y.orig Tue Apr 1 16:57:40 2003 X+++ ftpcmd.y Tue Apr 1 16:58:26 2003 X@@ -972,7 +972,7 @@ X if (logged_in && $1) { X glob_t gl; X int flags = X- GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE; X+ GLOB_NOCHECK|GLOB_TILDE|GLOB_NOESCAPE; X X memset(&gl, 0, sizeof(gl)); X flags |= GLOB_MAXPATH; END-of-ftpd/files/patch-ftpcmd.y exit >Release-Note: >Audit-Trail: >Unformatted: