Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2004 12:17:52 -0200 (EDT)
From:      Jean Milanez Melo <jmelo@freebsdbrasil.com.br>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62787: [patch] www/chpasswd: Fix build (bento)
Message-ID:  <20040213141752.D6641CAAF0@patinhas.teleon.com.br>
Resent-Message-ID: <200402131420.i1DEKF2o008119@freefall.freebsd.org>

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

>Number:         62787
>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:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 13 06:20:15 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jean Milanez Melo
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD patinhas.teleon.com.br 4.7-STABLE FreeBSD 4.7-STABLE #6: Thu Apr 10 11:40:43 EST 2003 root@patinhas.teleon.com.br:/usr/src/sys/compile/PATINHAS 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.

Thanks to: Volker Stolz

>How-To-Repeat:
	http://bento.freebsd.org/errorlogs/i386-5-latest/chpasswd-2.2.1_1.log
>Fix:


--- Makefile.patch begins here ---
--- Makefile.orig	Wed Feb  4 03:09:25 2004
+++ Makefile	Fri Feb 13 11:50:34 2004
@@ -7,18 +7,24 @@
 
 PORTNAME=	chpasswd
 PORTVERSION=	2.2.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
-MASTER_SITES=	http://web.onda.com.br/orso/
+MASTER_SITES=	http://web.onda.com.br/orso/ \
+		http://fresh.t-systems-sfr.com/unix/src/privat2/
 
 MAINTAINER=	jmelo@freebsdbrasil.com.br
 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
+
+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>
--- Makefile.patch ends here ---

--- patch-Makefile.in begins here ---
--- /dev/null	Fri Feb 13 12:10:00 2004
+++ files/patch-Makefile.in	Fri Feb 13 11:38:23 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:
--- patch-Makefile.in ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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