Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2000 19:53:22 +1100 (EST)
From:      andrew@ugh.net.au
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22783: mailman port overloads $UNAME
Message-ID:  <20001112085322.08FE4A82F@starbug.ugh.net.au>

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

>Number:         22783
>Category:       ports
>Synopsis:       mailman port overloads $UNAME
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 12 01:00:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andrew
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
UgH!
>Environment:

	

>Description:

The mailman port uses the variable $UNAME to store the default username for
mailman. Unfortunately /usr/ports/Mk/bsd.port.mk uses the $UNAME variable to
store the path of uname(1). This produces errors such as:

mailman: not found
"/usr/ports/Mk/bsd.port.mk", line 518: warning: "mailman -m" returned non-zero status
mailman: not found
"/usr/ports/Mk/bsd.port.mk", line 526: warning: "mailman -s" returned non-zero status
mailman: not found

when running make (at least with make -V VAR and probably other args).

>How-To-Repeat:

cd /usr/ports/mail/mailman && make -V DISTFILES

>Fix:

I hope $USERNAME is free...

diff -ruN mailman.orig/Makefile mailman/Makefile
--- mailman.orig/Makefile	Sun Nov 12 18:41:53 2000
+++ mailman/Makefile	Sun Nov 12 18:40:59 2000
@@ -21,22 +21,22 @@
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS= --with-mail-gid=daemon --with-cgi-gid=nogroup
 
-UNAME?=		mailman
+USERNAME?=		mailman
 UID?=		89
 
 MAILMANDIR?=	${PREFIX}/mailman
 
 pre-configure:
 	# Add the username, uid, group amd gid
-	${SH} ${FILESDIR}/configure.sh ${UNAME} ${UID} ${MAILMANDIR}
+	${SH} ${FILESDIR}/configure.sh ${USERNAME} ${UID} ${MAILMANDIR}
 
 	# Create the dir and the correct permissions for it.
 	${MKDIR} ${MAILMANDIR}
-	${CHOWN} ${UNAME}:${UNAME} ${MAILMANDIR}
+	${CHOWN} ${USERNAME}:${USERNAME} ${MAILMANDIR}
 	${CHMOD} 2775 ${MAILMANDIR}
 
 post-install:
-	@${CHOWN} -R :${UNAME} ${MAILMANDIR}
+	@${CHOWN} -R :${USERNAME} ${MAILMANDIR}
 	@echo All related binaries have been installed in ${MAILMANDIR}/bin
 	@echo See ${WRKDIR}/INSTALL for installation instructions \(prefix == ${MAILMANDIR}\).
 	@echo Sample entry for httpd.conf for Apache:

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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