Date: Wed, 15 Oct 2003 14:20:23 +0800 (CST) From: Statue <statue@freebsd.sinica.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/58053: New port: chinese/ftpd Message-ID: <20031015062023.9041EB09@freebsd.sinica.edu.tw> Resent-Message-ID: <200310150630.h9F6UEKP059256@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <statue@freebsd.sinica.edu.tw> 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 <bsd.port.mk> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031015062023.9041EB09>