From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 27 01:00:09 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D8AD16A401 for ; Tue, 27 Feb 2007 01:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0ECFC13C47E for ; Tue, 27 Feb 2007 01:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1R108A6063762 for ; Tue, 27 Feb 2007 01:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1R108BO063757; Tue, 27 Feb 2007 01:00:08 GMT (envelope-from gnats) Resent-Date: Tue, 27 Feb 2007 01:00:08 GMT Resent-Message-Id: <200702270100.l1R108BO063757@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, Jose Alonso Cardenas Marquez Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC43716A400 for ; Tue, 27 Feb 2007 00:52:48 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id DD58A13C441 for ; Tue, 27 Feb 2007 00:52:48 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l1R0qmi3020698 for ; Tue, 27 Feb 2007 00:52:48 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l1R0qmpp020697; Tue, 27 Feb 2007 00:52:48 GMT (envelope-from nobody) Message-Id: <200702270052.l1R0qmpp020697@www.freebsd.org> Date: Tue, 27 Feb 2007 00:52:48 GMT From: Jose Alonso Cardenas Marquez To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/109583: [PATCH] ftp/proftpd: fix problem with NLS option X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 01:00:09 -0000 >Number: 109583 >Category: ports >Synopsis: [PATCH] ftp/proftpd: fix problem with NLS option >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 Feb 27 01:00:08 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Jose Alonso Cardenas Marquez >Release: FreeBSD 6.2-STABLE >Organization: BSDPeru (http://www.bsd.org.pe) >Environment: FreeBSD HellFire.BSD.org.pe 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Feb 21 04:56:50 PET 2007 >Description: - Fix problem with NLS option - Replace the NLS patch file with REINPLACE_CMD - Move pkg-message to files directory - Bump PORTREVISION btw, what do you think about to move the current ftp/proftpd port to ftp/proftpd-devel, and downgrade the ftp/proftpd port to 1.3.0a? >How-To-Repeat: Try to install ftp/proftpd, marking the NLS option. >Fix: ===> Generating patch ===> Viewing diff with more diff -ruN --exclude=CVS /usr/ports/ftp/proftpd/Makefile /usr/ports/ftp/proftpd-new/Makefile --- /usr/ports/ftp/proftpd/Makefile Mon Jan 22 23:27:17 2007 ++ + /usr/ports/ftp/proftpd-new/Makefile Mon Feb 26 19:41:01 2007 @@ -7,7 +7,7 @@ PORTNAME= proftpd DISTVERSION= 1.3.1rc2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= ftp MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \ ftp://ftp.fastorama.com/mirrors/ftp.proftpd.org/distrib/source/ \ @@ -36,7 +36,9 @@ GNU_CONFIGURE=yes USE_RC_SUBR= proftpd.sh +SUB_FILES= pkg-message +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd ${OSREL} CONFIGURE_ARGS= --localstatedir=/var/run \ --sysconfdir=${EXAMPLESDIR}/etc \ --disable-sendfile @@ -136,7 +138,6 @@ CONFIGURE_ARGS+= --enable-nls USE_GETTEXT=yes PROFTPD_LIBS+= -lintl -L${LOCALBASE}/lib -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-nls-Makefile.in .endif #allow user to override @@ -229,6 +230,9 @@ -e 's:/usr/bin:${PREFIX}/bin:' \ ${WRKSRC}/src/proftpd.8 ${WRKSRC}/utils/ftpshut.8 \ ${WRKSRC}/utils/ftpcount.1 +.if defined(WITH_NLS) + ${REINPLACE_CMD} -e 's|-lsupp|-lsupp -lintl|g' ${WRKSRC}/Makefile.in +.endif post-install: @if [ ! -f ${PREFIX}/etc/proftpd.conf ]; then \ diff -ruN --exclude=CVS /usr/ports/ftp/proftpd/files/extra-patch-nls-Makefile.in /usr/ports/ftp/proftpd-new/files/extra-patch-nls-Makefile.in --- /usr/ports/ftp/proftpd/files/extra-patch-nls-Makefile.in Sat Dec 30 17:45:40 2006 ++ + /usr/ports/ftp/proftpd-new/files/extra-patch-nls-Makefile.in Wed Dec 31 19:00:00 1969 @@ -1,15 +0,0 @@ ---- Makefile.in Fri Dec 29 09:19:12 2006 -+++ Makefile.in.new Fri Dec 29 09:19:22 2006 -@@ -63,10 +63,10 @@ - $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPSHUT_OBJS) - - ftptop$(EXEEXT): lib utils -- $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPTOP_OBJS) $(CURSES_LIBS) -lsupp -+ $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPTOP_OBJS) $(CURSES_LIBS) -lsupp -lintl - - ftpwho$(EXEEXT): lib utils -- $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPWHO_OBJS) -lsupp -+ $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPWHO_OBJS) -lsupp -lintl - - - # BSD install -d doesn't work, so ... diff -ruN --exclude=CVS /usr/ports/ftp/proftpd/pkg-message /usr/ports/ftp/proftpd-new/pkg-message --- /usr/ports/ftp/proftpd/pkg-message Tue Feb 26 02:23:24 2002 + ++ /usr/ports/ftp/proftpd-new/pkg-message Wed Dec 31 19:00:00 1969 @@ -1,8 +0,0 @@ -### -Make sure you have the following lines in your PAM configuration file -so that ProFTPd's PAM module can authenticate users correctly. - -ftpd auth required pam_unix.so try_first_pass -ftpd account required pam_unix.so try_first_pass -ftpd session required pam_permit.so -### diff -ruN --exclude=CVS /usr/ports/ftp/proftpd/proftpd.diff /usr/ports/ftp/proftpd-new/proftpd.diff --- /usr/ports/ftp/proftpd/proftpd.diff Wed Dec 31 19:00:00 1969 +++ /usr/ports/ftp/proftpd-new/proftpd.diff Mon Feb 26 19:48:21 2007 @@ -0,0 +1 @@ +===> Generating patch ===> Done >Release-Note: >Audit-Trail: >Unformatted: