Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Aug 2011 13:58:56 -0500
From:      Mark Felder <feld@feld.me>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ashish@FreeBSD.org
Subject:   ports/159655: [PATCH] mail/archiveopteryx: [SUMMARIZE CHANGES]
Message-ID:  <E1QrDzU-000FtQ-Qp@feld.me>
Resent-Message-ID: <201108101930.p7AJUCjP088732@freefall.freebsd.org>

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

>Number:         159655
>Category:       ports
>Synopsis:       [PATCH] mail/archiveopteryx: [SUMMARIZE CHANGES]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 10 19:30:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Mark Felder
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD nas.feld.me 8.2-STABLE FreeBSD 8.2-STABLE #1: Sun Jul  3 05:04:20 CDT
>Description:
Unbreak on 9.0 with patch approved by upstream.

Also fix jail permissions in pkg-install

Added file(s):
- files/patch-core_configuration.cpp

Port maintainer (ashish@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- archiveopteryx-3.1.3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/mail/archiveopteryx.orig/Makefile /usr/ports/mail/archiveopteryx/Makefile
--- /usr/ports/mail/archiveopteryx.orig/Makefile	2011-08-10 13:55:18.932615550 -0500
+++ /usr/ports/mail/archiveopteryx/Makefile	2011-08-10 13:57:33.889562008 -0500
@@ -7,6 +7,7 @@
 
 PORTNAME=	archiveopteryx
 PORTVERSION=	3.1.3
+PORTREVISION?=	0
 CATEGORIES=	mail
 MASTER_SITES=	http://archiveopteryx.org/%SUBDIR%/
 MASTER_SITE_SUBDIR=	download
@@ -39,10 +40,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 900000
-BROKEN=		does not build on FreeBSD 9.X
-.endif
-
 post-patch:
 	@${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
 		-e 's,%%PREFIX%%,${PREFIX},g'
diff -ruN --exclude=CVS /usr/ports/mail/archiveopteryx.orig/files/patch-core_configuration.cpp /usr/ports/mail/archiveopteryx/files/patch-core_configuration.cpp
--- /usr/ports/mail/archiveopteryx.orig/files/patch-core_configuration.cpp	1969-12-31 18:00:00.000000000 -0600
+++ /usr/ports/mail/archiveopteryx/files/patch-core_configuration.cpp	2011-08-10 13:47:22.000000000 -0500
@@ -0,0 +1,11 @@
+--- core/configuration.cpp.orig	2011-08-10 13:45:01.165003888 -0500
++++ core/configuration.cpp	2011-08-10 13:45:35.358002044 -0500
+@@ -684,7 +684,7 @@
+                 in6.sin6_addr.s6_addr[i] = 0;
+                 ++i;
+             }
+-            in6.sin6_addr.s6_addr[15] = ntohs( 1 );
++            in6.sin6_addr.s6_addr[15] = 1;
+             in6.sin6_scope_id = 0;
+             if ( ::bind( s, (struct sockaddr *)&in6, sizeof( in6 ) ) < 0 ) {
+                 if ( errno == EADDRINUSE )
diff -ruN --exclude=CVS /usr/ports/mail/archiveopteryx.orig/pkg-install /usr/ports/mail/archiveopteryx/pkg-install
--- /usr/ports/mail/archiveopteryx.orig/pkg-install	2011-08-10 13:55:18.944617743 -0500
+++ /usr/ports/mail/archiveopteryx/pkg-install	2011-08-10 13:54:22.000000000 -0500
@@ -18,11 +18,11 @@
 if [ "$TARGET" = POST-INSTALL ]; then
 	for i in /var/db/aox/jail /var/db/aox/messages; do
 		${MKDIR} -m 700 -p ${i}
-		${CHOWN} ${AOXUSER}:${AOXGROUP} ${i}
 	done
+	${CHOWN} root:wheel /var/db/aox/jail
 	${CHMOD} 700 /var/db/aox
 	${MKDIR} /var/run/aox
-	${CHOWN} ${AOXUSER}:${AOXGROUP} /var/db/aox /var/run/aox
+	${CHOWN} ${AOXUSER}:${AOXGROUP} /var/db/aox /var/run/aox /var/db/aox/messages
 fi
 
 exit 0
--- archiveopteryx-3.1.3.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1QrDzU-000FtQ-Qp>