From petef@electron.databits.net  Sun Jun 10 07:25:59 2001
Return-Path: <petef@electron.databits.net>
Received: from electron.databits.net (electron.databits.net [207.29.204.16])
	by hub.freebsd.org (Postfix) with ESMTP id 12B3C37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 10 Jun 2001 07:25:57 -0700 (PDT)
	(envelope-from petef@electron.databits.net)
Received: (from petef@localhost)
	by electron.databits.net (8.11.3/8.11.3) id f5AEPSB08194;
	Sun, 10 Jun 2001 10:25:28 -0400 (EDT)
	(envelope-from petef)
Message-Id: <200106101425.f5AEPSB08194@electron.databits.net>
Date: Sun, 10 Jun 2001 10:25:28 -0400 (EDT)
From: petef@databits.net
Reply-To: petef@databits.net
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: net/amyc
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28011
>Category:       ports
>Synopsis:       New port: net/amyc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    roam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 10 07:30:01 PDT 2001
>Closed-Date:    Tue Jul 3 01:44:47 PDT 2001
>Last-Modified:  Tue Jul 03 01:44:56 PDT 2001
>Originator:     Pete Fritchman
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Databits Network Services, Inc.
>Environment:
System: FreeBSD electron.databits.net 4.3-STABLE FreeBSD 4.3-STABLE #5: Sat Jun 2 18:08:29 EDT 2001 root@electron.databits.net:/usr/obj/usr/src/sys/ELECTRON i386

>Description:

"About my Cache" is a powerful utility to help you keep track of
what's going on in Netscape's cache directory. It does basically
the same as entering "about:cache", but provides a much better
overview.  

WWW: http://www.crevola.com/about/

>How-To-Repeat:

N/A

>Fix:

(Note: the included patch has been submitted to the author)

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	amyc
#	amyc/pkg-descr
#	amyc/pkg-plist
#	amyc/Makefile
#	amyc/distinfo
#	amyc/pkg-comment
#	amyc/files
#	amyc/files/patch-src::amyc_prefs.c
#
echo c - amyc
mkdir -p amyc > /dev/null 2>&1
echo x - amyc/pkg-descr
sed 's/^X//' >amyc/pkg-descr << 'END-of-amyc/pkg-descr'
X"About my Cache" is a powerful utility to help you keep track of
Xwhat's going on in Netscape's cache directory. It does basically
Xthe same as entering "about:cache", but provides a much better
Xoverview.  
X
XWWW: http://www.crevola.com/about/
X
X- Pete
Xpetef@databits.net
END-of-amyc/pkg-descr
echo x - amyc/pkg-plist
sed 's/^X//' >amyc/pkg-plist << 'END-of-amyc/pkg-plist'
Xbin/amyc
X%%WITH_GTK%%bin/amycg
Xshare/locale/fr/LC_MESSAGES/amyc.mo
X@unexec rmdir share/locale/fr/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir share/locale/fr 2>/dev/null || true
END-of-amyc/pkg-plist
echo x - amyc/Makefile
sed 's/^X//' >amyc/Makefile << 'END-of-amyc/Makefile'
X# New ports collection makefile for:	amyc
X# Date Created:				10 June 2001
X# Whom:					Pete Fritchman <petef@databits.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	amyc
XPORTVERSION=	0.9.159
XCATEGORIES=	net
XMASTER_SITES=	http://www.crevola.com/about/current/
X
XMAINTAINER=	petef@databits.net
X
XLIB_DEPENDS=	db3.2:${PORTSDIR}/databases/db3 \
X		intl.1:${PORTSDIR}/devel/gettext
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	CFLAGS="${CFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include"
X
XWANT_GTK=	yes
X
X.include <bsd.port.pre.mk>
X
X.if defined(HAVE_GTK)
XUSE_GTK=	yes
XCONFIGURE_ENV+=	GTK_CONFIG="${GTK_CONFIG}"
XPLIST_SUB=	WITH_GTK=""
X.else
XPLIST_SUB=	WITH_GTK="@comment "
X.endif
X
X.include <bsd.port.post.mk>
END-of-amyc/Makefile
echo x - amyc/distinfo
sed 's/^X//' >amyc/distinfo << 'END-of-amyc/distinfo'
XMD5 (amyc-0.9.159.tar.gz) = 5c56091fb75bb3dfd31c5e1f2828d843
END-of-amyc/distinfo
echo x - amyc/pkg-comment
sed 's/^X//' >amyc/pkg-comment << 'END-of-amyc/pkg-comment'
XDisplay the contents of your Netscape cache
END-of-amyc/pkg-comment
echo c - amyc/files
mkdir -p amyc/files > /dev/null 2>&1
echo x - amyc/files/patch-src::amyc_prefs.c
sed 's/^X//' >amyc/files/patch-src::amyc_prefs.c << 'END-of-amyc/files/patch-src::amyc_prefs.c'
X--- src/amyc_prefs.c.orig	Fri Jun  8 18:21:45 2001
X+++ src/amyc_prefs.c	Sun Jun 10 10:09:42 2001
X@@ -126,7 +126,7 @@
X     }
X     if (prefs->resultdirectory == NULL) {
X 	prefs->resultdirectory = malloc (LINE_LEN * sizeof (char));
X-	sprintf (prefs->resultdirectory, "%s", "/tmp");
X+	sprintf (prefs->resultdirectory, "%s", getenv("HOME"));
X 	used_default_value = 1;
X     }
X 
X@@ -307,6 +307,7 @@
X 	sprintf (filename, "%s/result.html", prefs->resultdirectory);
X 	strtmp = give_correct_path ((char *)filename);
X 	output = fopen (strtmp, "w");
X+	printf ("Dumping results to %s\n", filename);
X 	if (output == NULL) {
X 	    perror (strtmp);
X #warning TOTO: better error handling
END-of-amyc/files/patch-src::amyc_prefs.c
exit

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->roam 
Responsible-Changed-By: roam 
Responsible-Changed-When: Mon Jun 11 00:51:53 PDT 2001 
Responsible-Changed-Why:  
I'll take care of this. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28011 

From: Peter Pentchev <roam@orbitel.bg>
To: petef@databits.net
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/28011: New port: net/amyc
Date: Wed, 27 Jun 2001 15:42:45 +0300

 On Sun, Jun 10, 2001 at 10:25:28AM -0400, petef@databits.net wrote:
 > 
 > >Number:         28011
 > >Category:       ports
 > >Synopsis:       New port: net/amyc
 > >Originator:     Pete Fritchman
 > >Description:
 > 
 > "About my Cache" is a powerful utility to help you keep track of
 > what's going on in Netscape's cache directory. It does basically
 > the same as entering "about:cache", but provides a much better
 > overview.  
 > 
 > WWW: http://www.crevola.com/about/
 
 OK, attached is a little patch which makes the port build a bit
 cleaner :)  This patch does several things.
 
 1. The databases/db3 dependency was removed: this port works
    perfectly fine with the db-1.85 which is in FreeBSD's libc.
    True, it needed a couple of tweaking to make it so - it tried
    to check for an out-of-libc libdb, and failed; this was fixed
    with a patch that might have to remain a FreeBSD-port-specific
    patch.
 
 2. A patch to aclocal.m4 was added, so amyc can correctly pick up
    an existing gettext installation - it failed to set INTLLIBS
    to a proper value, and at the link stage, failed to actually
    link against libintl.so.  This patch might as well go into
    the amyc distribution, for it is not FreeBSD-specific, and it
    would affect any system with a pre-installed instance of GNU
    gettext.
 
 3. The CONFIGURE_ENV setup was tweaked a little: it is added to,
    instead of replaced (thus allowing for user-specified additions),
    and the variables are set more explicitly.  Case in point,
    the GNU gettext check includes checking for headers, where CFLAGS
    is not used - CPPFLAGS is used instead, so it should also be
    set appropriately.
 
 4. USE_AUTOCONF was added.  This was for two reasons: to activate
    the aclocal.m4 gettext patch, and to remove the libdb checking.
    If the amyc author incorporates the gettext patch, USE_AUTOCONF
    may go, and the libdb checking may be performed with a patch
    to the configure script itself.  However, I personally do not
    consider USE_AUTOCONF to be too much of a drawback.
 
 If any of those makes amyc no longer work for you, feel free
 to bash me with a big stick :)
 
 G'luck,
 Peter
 
 -- 
 This would easier understand fewer had omitted.
 
 diff -urN amyc/Makefile amyc-r1/Makefile
 --- amyc/Makefile	Wed Jun 27 15:15:36 2001
 +++ amyc-r1/Makefile	Wed Jun 27 15:33:46 2001
 @@ -12,19 +12,19 @@
  
  MAINTAINER=	petef@databits.net
  
 -LIB_DEPENDS=	db3.2:${PORTSDIR}/databases/db3 \
 -		intl.1:${PORTSDIR}/devel/gettext
 +LIB_DEPENDS=	intl.1:${PORTSDIR}/devel/gettext
  
 +USE_AUTOCONF=	yes
  GNU_CONFIGURE=	yes
 -CONFIGURE_ENV=	CFLAGS="${CFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include"
 +CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" \
 +		LDFLAGS="-L${LOCALBASE}/lib" \
 +		CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
  
  WANT_GTK=	yes
  
  .include <bsd.port.pre.mk>
  
  .if defined(HAVE_GTK)
 -USE_GTK=	yes
 -CONFIGURE_ENV+=	GTK_CONFIG="${GTK_CONFIG}"
  PLIST_SUB=	WITH_GTK=""
  .else
  PLIST_SUB=	WITH_GTK="@comment "
 diff -urN amyc/files/patch-aclocal.m4 amyc-r1/files/patch-aclocal.m4
 --- amyc/files/patch-aclocal.m4	Thu Jan  1 02:00:00 1970
 +++ amyc-r1/files/patch-aclocal.m4	Wed Jun 27 15:33:01 2001
 @@ -0,0 +1,12 @@
 +--- aclocal.m4.orig	Wed Jun 27 15:31:51 2001
 ++++ aclocal.m4	Wed Jun 27 15:32:46 2001
 +@@ -395,6 +395,9 @@
 + 		INSTOBJEXT=.mo
 + 	      fi
 + 	    fi
 ++	    if test "$gt_cv_func_gettext_libintl" = "yes"; then
 ++		INTLLIBS='-lintl'
 ++	    fi
 + 	])
 + 
 +         if test "$CATOBJEXT" = "NONE"; then
 diff -urN amyc/files/patch-configure.in amyc-r1/files/patch-configure.in
 --- amyc/files/patch-configure.in	Thu Jan  1 02:00:00 1970
 +++ amyc-r1/files/patch-configure.in	Wed Jun 27 15:29:41 2001
 @@ -0,0 +1,18 @@
 +--- configure.in.orig	Wed Jun 27 15:29:12 2001
 ++++ configure.in	Wed Jun 27 15:29:30 2001
 +@@ -16,15 +16,10 @@
 + USE_GTK=
 + AM_PATH_GTK(1.2.0, USE_GTK=amycg, AC_MSG_WARN(AboutMyCache will not use GTK))
 + AC_SUBST(USE_GTK)
 +-AC_CHECK_LIB(db1, dbopen,, AC_CHECK_LIB(db, dbopen,, AC_MSG_ERROR(AboutMyCache needs Berkeley DB 1.85)))
 + 
 + dnl Checks for header files.
 + AC_HEADER_STDC
 + AC_CHECK_HEADERS(fcntl.h limits.h malloc.h strings.h unistd.h)
 +-AC_CHECK_HEADERS(db1/db.h, db1=true, db1=false)
 +-if test "x$db1" = "xfalse"; then
 +-    AC_CHECK_HEADERS(db_185.h,,AC_MSG_WARN(AboutMyCache needs Berkeley DB 1.85, but it can\'t fint it!!))
 +-fi
 + 
 + dnl Checks for typedefs, structures, and compiler characteristics.
 + AC_C_CONST
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Tue Jul 3 01:44:47 PDT 2001 
State-Changed-Why:  
Committed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28011 
>Unformatted:
