ports/62787: [patch] www/chpasswd: Fix build (bento)
Jean Milanez Melo
jmelo at freebsdbrasil.com.br
Fri Feb 13 14:20:20 UTC 2004
>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 at 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 at 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:
More information about the freebsd-ports-bugs
mailing list