Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2004 22:00:13 +0800 (CST)
From:      Autrijus Tang <autrijus@autrijus.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/64340: mail/sympa update: fix rc.d and install on amd64
Message-ID:  <20040316140013.795CD3FD7@mail.autrijus.org>
Resent-Message-ID: <200403161400.i2GE0fRF005189@freefall.freebsd.org>

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

>Number:         64340
>Category:       ports
>Synopsis:       mail/sympa update: fix rc.d and install on amd64
>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:   Tue Mar 16 06:00:41 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Autrijus Tang
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
System: FreeBSD aut.dyndns.org 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Thu Oct 30 08:47:57 CST 2003 root@aut.dyndns.org:/usr/src/sys/compile/NOR i386


>Description:
	bento reported that amd64 built incorrectly; kris@
	suggested that changing HAS_CONFIGURE to GNU_CONFIGURE
	will fix it.

	also, etc/rc.d/sympa.sh was disabled and now works.
	
>How-To-Repeat:
	n/a

>Fix:

	Apply this patch against /usr/ports/mail/sympa/.

diff -dur /usr/ports/mail/sympa/Makefile sympa/Makefile
--- /usr/ports/mail/sympa/Makefile	Tue Feb 17 01:24:18 2004
+++ sympa/Makefile	Tue Mar 16 21:53:03 2004
@@ -56,7 +56,7 @@
 .endif
 .endif
 
-HAS_CONFIGURE=	yes
+GNU_CONFIGURE=	yes
 USE_PERL5=	yes
 CONFIGURE_ARGS+=--prefix=${PREFIX}/sympa \
 		--with-confdir=${PREFIX}/etc \
@@ -73,6 +73,9 @@
 
 pre-install:
 	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
+post-install:
+	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 
 post-deinstall:
 	PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
diff -dur /usr/ports/mail/sympa/files/patch-src-etc-script-sympa sympa/files/patch-src-etc-script-sympa
--- /usr/ports/mail/sympa/files/patch-src-etc-script-sympa	Tue Dec  9 06:33:04 2003
+++ sympa/files/patch-src-etc-script-sympa	Tue Mar 16 21:52:04 2004
@@ -36,7 +36,7 @@
 -	if [ ${OSTYPE} = "IRIX" ]; then
 -		$sympadir/$1.pl $startparam && echo "success" || echo "failure"
 +	if [ ${OSTYPE} = "IRIX" -o ${OSTYPE} = "FreeBSD" ]; then
-+		su sympa -c "$sympadir/$1.pl $startparam" && echo "success" || echo "failure"
++		su -m sympa -c "$sympadir/$1.pl $startparam" && echo "success" || echo "failure"
  	else
  		$sympadir/$1.pl $startparam && success || failure
  	fi
diff -dur /usr/ports/mail/sympa/pkg-install sympa/pkg-install
--- /usr/ports/mail/sympa/pkg-install	Mon Dec 22 16:52:11 2003
+++ sympa/pkg-install	Tue Mar 16 21:52:04 2004
@@ -2,6 +2,10 @@
 # $FreeBSD: ports/mail/sympa/pkg-install,v 1.2 2003/12/22 08:52:11 demon Exp $
 #
 
+if [ "$2" = "POST-INSTALL" ]; then
+	mv ${PKG_PREFIX}/etc/rc.d/sympa ${PKG_PREFIX}/etc/rc.d/sympa.sh 2>/dev/null
+fi
+
 if [ "$2" != "PRE-INSTALL" ]; then
 	exit 0
 fi
diff -dur /usr/ports/mail/sympa/pkg-plist sympa/pkg-plist
--- /usr/ports/mail/sympa/pkg-plist	Mon Dec 22 09:02:36 2003
+++ sympa/pkg-plist	Tue Mar 16 21:52:04 2004
@@ -1,6 +1,6 @@
 etc/sympa.conf
 etc/wwsympa.conf
-etc/rc.d/sympa
+etc/rc.d/sympa.sh
 sympa/bin/etc/scenari/access_web_archive.closed
 sympa/bin/etc/scenari/visibility.private
 sympa/bin/etc/scenari/visibility.noconceal
>Release-Note:
>Audit-Trail:
>Unformatted:



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