Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Feb 2004 15:07:03 +0100 (CET)
From:      Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jmelo@freebsdbrasil.com.br
Subject:   ports/62691: [patch] www/chpasswd: Fix build (bento)
Message-ID:  <200402111407.i1BE72I2067627@menelaos.informatik.rwth-aachen.de>
Resent-Message-ID: <200402111410.i1BEAJmf027240@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.mk>
--- /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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402111407.i1BE72I2067627>