From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 11 06:10:20 2004 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 E5F3D16A4CE for ; Wed, 11 Feb 2004 06:10:19 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C992843D31 for ; Wed, 11 Feb 2004 06:10:19 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i1BEAJbv027241 for ; Wed, 11 Feb 2004 06:10:19 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i1BEAJmf027240; Wed, 11 Feb 2004 06:10:19 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 11 Feb 2004 06:10:19 -0800 (PST) Resent-Message-Id: <200402111410.i1BEAJmf027240@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, Volker Stolz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EBE816A4CE for ; Wed, 11 Feb 2004 06:07:20 -0800 (PST) Received: from atlas.informatik.rwth-aachen.de (atlas.Informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91D0043D1D for ; Wed, 11 Feb 2004 06:07:19 -0800 (PST) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from menelaos.informatik.rwth-aachen.de (menelaos.Informatik.RWTH-Aachen.DE [137.226.194.73]) 8.11.1-0.5-michaelw-20030918) with ESMTP id i1BE75m09327; Wed, 11 Feb 2004 15:07:05 +0100 Received: (from stolz@localhost)i1BE72I2067627; Wed, 11 Feb 2004 15:07:03 +0100 (CET) (envelope-from stolz) Message-Id: <200402111407.i1BE72I2067627@menelaos.informatik.rwth-aachen.de> Date: Wed, 11 Feb 2004 15:07:03 +0100 (CET) From: Volker Stolz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: jmelo@freebsdbrasil.com.br Subject: ports/62691: [patch] www/chpasswd: Fix build (bento) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Volker Stolz List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 14:10:20 -0000 >Number: 62691 >Category: ports >Synopsis: [patch] www/chpasswd: Fix build (bento) >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: Wed Feb 11 06:10:18 PST 2004 >Closed-Date: >Last-Modified: >Originator: Volker Stolz >Release: FreeBSD 4.9-STABLE i386 >Organization: Lehrstuhl für Informatik II >Environment: System: FreeBSD menelaos.informatik.rwth-aachen.de 4.9-STABLE FreeBSD 4.9-STABLE #12: Mon Dec 8 15:14:27 CET 2003 root@menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386 >Description: - fix installation: create missing directory - use PLIST_* - respect CC & CFLAGS - doesn't need gmake - don't create unsafe log file, print post-install message instead. cc: maintainer >How-To-Repeat: http://bento.freebsd.org/errorlogs/i386-5-latest/chpasswd-2.2.1_1.log >Fix: Removed file: pkg-plist Added file: files/patch-Makefile.in --- chpasswd begins here --- --- Makefile.orig Wed Feb 11 14:42:10 2004 +++ Makefile Wed Feb 11 14:58:54 2004 @@ -15,10 +15,18 @@ COMMENT= Allow users to change their Squid or Web password using the browser HAS_CONFIGURE= yes -USE_GMAKE= yes CONFIGURE_ARGS= --prefix=${PREFIX}/etc/chpasswd \ --enable-language=English \ - --enable-cgidir=${PREFIX}/www/cgi-bin \ + --enable-cgidir=${PREFIX}/www/cgi-bin + +PLIST_FILES= etc/chpasswd/chpasswd.conf etc/chpasswd/chpasswd.log www/cgi-bin/chpasswd.cgi +PLIST_DIRS= etc/chpasswd www/cgi-bin + +pre-install: + @${MKDIR} ${PREFIX}/www/cgi-bin + +post-install: + @${ECHO} 'Remember, passwd and log file must be owned by httpd user, or chmod 777' .include --- /dev/null Wed Feb 11 14:59:48 2004 +++ files/patch-Makefile.in Wed Feb 11 14:57:32 2004 @@ -0,0 +1,27 @@ +--- Makefile.in.orig Wed Feb 11 14:56:26 2004 ++++ Makefile.in Wed Feb 11 14:57:15 2004 +@@ -1,13 +1,13 @@ + # Makefile.in for chpasswd.cgi + +-CC = gcc ++CC ?= gcc + LANGUAGE = @LANGUAGE@ + CGIDIR = @CGIDIR@ + SRCDIR = . + VPATH = . + INSTALL = cp + LIBCRYPT = @CRYPTLIB@ +-CFLAGS = -O2 -w $(DEFINES) ++CFLAGS += -w $(DEFINES) + PREFIX = @prefix@ + DEFS = -I. @DEFS@ -DPREFIX=\"@prefix@\" + +@@ -43,7 +43,7 @@ + @if test ! -f $(PREFIX)/chpasswd.log; then \ + echo "touch $(PREFIX)/chpasswd.log"; \ + touch $(PREFIX)/chpasswd.log; \ +- chmod 777 $(PREFIX)/chpasswd.log; \ ++ chmod 775 $(PREFIX)/chpasswd.log; \ + fi + + uninstall: --- chpasswd ends here --- >Release-Note: >Audit-Trail: >Unformatted: