From eugen@grosbein.pp.ru  Sat Mar 27 01:53:16 2004
Return-Path: <eugen@grosbein.pp.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 1446616A4CE; Sat, 27 Mar 2004 01:53:16 -0800 (PST)
Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.130])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id E0C6C43D1D; Sat, 27 Mar 2004 01:53:14 -0800 (PST)
	(envelope-from eugen@grosbein.pp.ru)
Received: from grosbein.pp.ru (eugen@localhost [127.0.0.1])
	by grosbein.pp.ru (8.12.11/8.12.11) with ESMTP id i2R9rCZB007068;
	Sat, 27 Mar 2004 16:53:12 +0700 (KRAT)
	(envelope-from eugen@grosbein.pp.ru)
Received: (from eugen@localhost)
	by grosbein.pp.ru (8.12.11/8.12.11/Submit) id i2R9rBTo007067;
	Sat, 27 Mar 2004 16:53:11 +0700 (KRAT)
	(envelope-from eugen)
Message-Id: <200403270953.i2R9rBTo007067@grosbein.pp.ru>
Date: Sat, 27 Mar 2004 16:53:11 +0700 (KRAT)
From: Eugene Grosbein <eugen@grosbein.pp.ru>
Reply-To: Eugene Grosbein <eugen@grosbein.pp.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: krion@freebsd.org
Subject: Update ports/net/AquaGatekeeper to version 1.21
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         64797
>Category:       ports
>Synopsis:       Update ports/net/AquaGatekeeper to version 1.21
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 27 02:00:29 PST 2004
>Closed-Date:    Sat Mar 27 12:10:32 PST 2004
>Last-Modified:  Sat Mar 27 12:10:32 PST 2004
>Originator:     Eugene Grosbein
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
Svyaz Service JSC
>Environment:
System: FreeBSD grosbein.pp.ru 4.9-STABLE FreeBSD 4.9-STABLE #12: Sun Mar 21 20:55:21 KRAT 2004 eu@grosbein.pp.ru:/tmp/obj/usr/local/src/sys/DADV i386

>Description:
	The patch updates ports/net/AquaGatekeeper to version 1.21.
	Note that binary wants crypto.3 and port will not install
	if a system is not fresh enough.

	This version brings a support for AMD64 also. However, its untested
	as I do not have an access to such system.

>How-To-Repeat:
	N/A

>Fix:

diff -urN /usr/ports/net/AquaGatekeeper/Makefile AquaGatekeeper/Makefile
--- /usr/ports/net/AquaGatekeeper/Makefile	Wed Mar 24 23:28:54 2004
+++ AquaGatekeeper/Makefile	Sat Mar 27 16:49:19 2004
@@ -6,11 +6,10 @@
 #
 
 PORTNAME=	AquaGatekeeper
-PORTVERSION=	1.20
+PORTVERSION=	1.21
 CATEGORIES=	net
 MASTER_SITES=	ftp://ftp.aqua.comptek.ru/pub/GateKeeper/ \
 		ftp://www.kuzbass.ru/pub/FreeBSD/ports/distfiles/
-DISTNAME=	AquaGatekeeper120FreeBSD
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	eugen@grosbein.pp.ru
@@ -18,7 +17,8 @@
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 NO_BUILD=	yes
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	amd64 i386
+MD5_FILE=       ${MASTERDIR}/distinfo.${ARCH}
 
 NO_PACKAGE=	"No commercial redistribution"
 NO_CDROM=	"No commercial redistribution"
@@ -27,6 +27,14 @@
 IS_INTERACTIVE=	yes
 .endif
 
+.if !defined(HAS_CRYPTO3)
+HAS_CRYPTO3!=	ldconfig -r | fgrep -q -- -lcrypto.2 && echo yes || echo no
+.endif
+
+.if ${HAS_CRYPTO3} != "yes"
+IGNORE=		This port requires libcrypto.3, upgrade base system or define HAS_CRYPTO3=yes to skip this test
+.endif
+
 do-install:
 	@${INSTALL_PROGRAM} ${WRKSRC}/AquaGatekeeper ${PREFIX}/sbin/
 	@${INSTALL_SCRIPT} ${FILESDIR}/agk.sh.sample ${PREFIX}/etc/rc.d/
@@ -54,6 +62,12 @@
 BROKEN=		"Supported only on 4.x systems and later"
 .elif ${OSVERSION} >= 500000
 LIB_DEPENDS=	c.4:${PORTSDIR}/misc/compat4x
+.endif
+
+.if ${ARCH} == "amd64"
+DISTNAME=	AquaGatekeeper121FreeBSDamd64
+.else
+DISTNAME=	AquaGatekeeper121FreeBSD
 .endif
 
 .include <bsd.port.post.mk>
diff -urN /usr/ports/net/AquaGatekeeper/distinfo AquaGatekeeper/distinfo
--- /usr/ports/net/AquaGatekeeper/distinfo	Wed Mar 24 23:28:55 2004
+++ AquaGatekeeper/distinfo	Thu Jan  1 07:00:00 1970
@@ -1,2 +0,0 @@
-MD5 (AquaGatekeeper120FreeBSD.tgz) = 3b4815f45c2cba37937728a3f81a4fb0
-SIZE (AquaGatekeeper120FreeBSD.tgz) = 749914
diff -urN /usr/ports/net/AquaGatekeeper/distinfo.amd64 AquaGatekeeper/distinfo.amd64
--- /usr/ports/net/AquaGatekeeper/distinfo.amd64	Thu Jan  1 07:00:00 1970
+++ AquaGatekeeper/distinfo.amd64	Sat Mar 27 15:11:54 2004
@@ -0,0 +1,2 @@
+MD5 (AquaGatekeeper121FreeBSDamd64.tgz) = 4b8e4c03282d1edafcbdc513c430ae44
+SIZE (AquaGatekeeper121FreeBSDamd64.tgz) = 648409
diff -urN /usr/ports/net/AquaGatekeeper/distinfo.i386 AquaGatekeeper/distinfo.i386
--- /usr/ports/net/AquaGatekeeper/distinfo.i386	Thu Jan  1 07:00:00 1970
+++ AquaGatekeeper/distinfo.i386	Sat Mar 27 15:11:49 2004
@@ -0,0 +1,2 @@
+MD5 (AquaGatekeeper121FreeBSD.tgz) = 30d1d73c6fce0f704951a5bed47fa5bd
+SIZE (AquaGatekeeper121FreeBSD.tgz) = 743725


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->krion 
Responsible-Changed-By: krion 
Responsible-Changed-When: Sat Mar 27 07:46:12 PST 2004 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64797 
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Sat Mar 27 12:10:25 PST 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64797 
>Unformatted:
