From root@johncoop.MSHOME.bmi.net  Sun Jan 20 22:28:34 2002
Return-Path: <root@johncoop.MSHOME.bmi.net>
Received: from yoda.bmi.net (yoda.bmi.net [204.57.191.163])
	by hub.freebsd.org (Postfix) with ESMTP
	id B31F737B402; Sun, 20 Jan 2002 22:28:32 -0800 (PST)
Received: from johncoop.MSHOME (drumheller-router.bmi.net [206.63.201.3] (may be forged))
	by yoda.bmi.net (Pro-8.9.3/Pro-8.9.3) with ESMTP id WAA12129;
	Sun, 20 Jan 2002 22:27:16 -0800
Received: by johncoop.MSHOME (Postfix, from userid 0)
	id 5EE0215504; Sun, 20 Jan 2002 22:28:19 -0800 (PST)
Message-Id: <20020121062819.5EE0215504@johncoop.MSHOME>
Date: Sun, 20 Jan 2002 22:28:19 -0800 (PST)
From: John Merryweather Cooper <john_m_cooper@yahoo.com>
Reply-To: John Merryweather Cooper <john_m_cooper@yahoo.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sobomax@freebsd.org
Subject: [NEW PORT] gfax (missing-in-action for fifth-toe)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         34103
>Category:       ports
>Synopsis:       [NEW PORT] gfax (missing-in-action for fifth-toe)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 20 22:30:01 PST 2002
>Closed-Date:    Thu Nov 21 23:40:46 PST 2002
>Last-Modified:  Thu Nov 21 23:40:46 PST 2002
>Originator:     John Merryweather Cooper
>Release:        FreeBSD 4.5-RC i386
>Organization:
>Environment:
System: FreeBSD johncoop.MSHOME 4.5-RC FreeBSD 4.5-RC #50: Thu Jan 17 22:58:12 PST 2002 jmcoopr@johncoop.MSHOME:/usr/obj/usr/src/sys/JOHNCOOP i386


	
>Description:
	I'm trying to port some of the GNOME programs missing from the
	FreeBSD GNOME distribution in x11/gnome-fifth-toe.  GFax is one
	of them.:)

	NOTE:  This might be a candidate for pkg-install; particularly if
	uninstall can be done this way.

	NOTE2:  Might need the late-model gettext . . . not sure on this
	point.

	NOTE3:  There is a version 0.5, but this one is listed as the
	current release.

>How-To-Repeat:
	N/A

>Fix:

	Prepare to receive the hated-and-despised shar file:

# 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:
#
#	gfax
#	gfax/files
#	gfax/files/patch-gfax.install-lpr
#	gfax/files/patch-lpr.gfax
#	gfax/Makefile
#	gfax/distinfo
#	gfax/pkg-comment
#	gfax/pkg-descr
#	gfax/pkg-plist
#
echo c - gfax
mkdir -p gfax > /dev/null 2>&1
echo c - gfax/files
mkdir -p gfax/files > /dev/null 2>&1
echo x - gfax/files/patch-gfax.install-lpr
sed 's/^X//' >gfax/files/patch-gfax.install-lpr << 'END-of-gfax/files/patch-gfax.install-lpr'
X--- gfax.install-lpr	Sun Dec 12 10:47:19 1999
X+++ gfax.install-lpr.new	Sun Jan 20 21:17:31 2002
X@@ -10,9 +10,10 @@
X #
X BINDIR=/usr/bin
X LPRBINDIR=/usr/bin
X+PREFIX=/usr/X11R6/bin
X 
X if [ ! -x $LPRBINDIR/lpr.dist ]; then
X 	mv $LPRBINDIR/lpr $LPRBINDIR/lpr.dist
X-	ln -s $BINDIR/lpr.gfax $BINDIR/lpr
X+	ln -s $PREFIX/lpr.gfax $BINDIR/lpr
X 	chmod +x $BINDIR/lpr
X fi
END-of-gfax/files/patch-gfax.install-lpr
echo x - gfax/files/patch-lpr.gfax
sed 's/^X//' >gfax/files/patch-lpr.gfax << 'END-of-gfax/files/patch-lpr.gfax'
X--- lpr.gfax	Sun Dec 12 10:47:16 1999
X+++ lpr.gfax.new	Sun Jan 20 21:38:07 2002
X@@ -29,8 +29,9 @@
X FAX=
X SPOOL_DIR=/tmp
X 
X-BINDIR=/usr/bin
X+#BINDIR=/usr/bin
X #BINDIR=/usr/local/bin
X+BINDIR=/usr/X11R6/bin
X 
X for i in $*
X do
END-of-gfax/files/patch-lpr.gfax
echo x - gfax/Makefile
sed 's/^X//' >gfax/Makefile << 'END-of-gfax/Makefile'
X# New ports collection makefile for:	gfax
X# Date created:			20 January 2002
X# Whom:				John Merryweather Cooper <jmcoopr@webmail.bmi.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gfax
XPORTVERSION=	0.4.2
XCATEGORIES=	comms print
XMASTER_SITES=	${MASTER_SITE_GNOME}
XMASTER_SITE_SUBDIR=	stable/sources/gfax
X
XMAINTAINER=	jmcoopr@webmail.bmi.net
X
XBUILD_DEPENDS=	${LOCALBASE}/share/automake/install-sh:${PORTSDIR}/devel/automake \
X		${LOCALBASE}/bin/sendfax:${PORTSDIR}/comms/hylafax
XRUN_DEPENDS=	${LOCALBASE}/bin/sendfax:${PORTSDIR}/comms/hylafax
X
XUSE_GMAKE=	yes
XUSE_X_PREFIX=	yes
XUSE_GNOME=	yes
XGNU_CONFIGURE=	yes
X
XCONFIGURE_ENV=	CPPFLAGS="${PTHREAD_CFLAGS}"
X
Xpost-extract:
X	@${LN} -sf ${LOCALBASE}/share/automake/install-sh ${WRKSRC}/install-sh
X	@${LN} -sf ${LOCALBASE}/share/automake/missing ${WRKSRC}/missing
X	@${LN} -sf ${LOCALBASE}/share/automake/mkinstalldirs ${WRKSRC}/mkinstalldirs
X
Xpost-patch:
X	@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
X		 s|DATADIRNAME=lib|DATADIRNAME=share|g' \
X			${WRKSRC}/configure
X	@find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
X		 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
X		 s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g ; \
X		 s|\$\(gnomedatadir\)/gnome|\$\(gnomedatadir\)|g'
X
Xpre-install:
X	@${MV} ${WRKSRC}/gfax.install-lpr ${WRKSRC}/gfax.install-lpr.orig
X	@${SED} \
X		-e 's#/usr/X11R6/#${PREFIX}/#' \
X		${WRKSRC}/gfax.install-lpr.orig > ${WRKSRC}/gfax.install-lpr
X	@${MV} ${WRKSRC}/lpr.gfax ${WRKSRC}/lpr.gfax.orig
X	@${SED} \
X		-e 's#/usr/X11R6/#${PREFIX}/#' \
X		${WRKSRC}/lpr.gfax.orig > ${WRKSRC}/lpr.gfax
X
Xpost-install:
X	@${SH} ${PREFIX}/bin/gfax.install-lpr
X
X.include <bsd.port.mk>
END-of-gfax/Makefile
echo x - gfax/distinfo
sed 's/^X//' >gfax/distinfo << 'END-of-gfax/distinfo'
XMD5 (gfax-0.4.2.tar.gz) = 815523780287a97133e85585f0319a20
END-of-gfax/distinfo
echo x - gfax/pkg-comment
sed 's/^X//' >gfax/pkg-comment << 'END-of-gfax/pkg-comment'
Xa GNOME pop-up fax manager
END-of-gfax/pkg-comment
echo x - gfax/pkg-descr
sed 's/^X//' >gfax/pkg-descr << 'END-of-gfax/pkg-descr'
XGFax is a front end fax program that performs as the familiar pop-up fax
Xmanager when one prints to a fax printer.  GFax works with all X programs
Xthat use lpr as the printer interface--even the command line.
X
XWWW: http://www.gmsys.com/
END-of-gfax/pkg-descr
echo x - gfax/pkg-plist
sed 's/^X//' >gfax/pkg-plist << 'END-of-gfax/pkg-plist'
Xbin/gfax
Xbin/lpr.gfax
Xbin/gfax.install-lpr
Xbin/gfax.uninstall-lpr
Xshare/gnome/gfax/glade/gfax.glade
Xshare/gnome/gfax/glade/setup.glade
Xshare/gnome/gfax/glade/mgettydruid.glade
Xshare/gnome/gfax/glade/spool.glade
Xshare/gnome/help/gfax/C/gfax.html
Xshare/gnome/help/gfax/C/topic.dat
Xshare/gnome/help/gfax/C/index.html
Xshare/gnome/apps/Applications/gfax.desktop
Xshare/gnome/pixmaps/gfax.png
X@unexec /bin/sh %D/bin/gfax.uninstall-lpr
X@exec /bin/sh %D/bin/gfax.install-lpr
X@dirrm share/gnome/gfax/glade
X@dirrm share/gnome/gfax
X@dirrm share/gnome/help/gfax/C
X@dirrm share/gnome/help/gfax
X@dirrm share/gnome/help
X@dirrm share/gnome/apps/Applications
X@dirrm share/gnome/apps
X@dirrm share/gnome/pixmaps
X@dirrm share/gnome
END-of-gfax/pkg-plist
exit

>Release-Note:
>Audit-Trail:

From: John Merryweather Cooper <john_m_cooper@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org, john_m_cooper@yahoo.com
Cc:  
Subject: Re: ports/34103: [NEW PORT] gfax (missing-in-action for fifth-toe)
Date: Wed, 30 Jan 2002 22:35:09 -0800

 It occurs to me that a cleaner way to enable gfax (and very different 
 from the authors approach) would be to create an actual "fax" entry in 
 /etc/printcap and run all the input through gfax a la apsfilter.
 
 --
 jmc
 
Responsible-Changed-From-To: freebsd-ports->gnome 
Responsible-Changed-By: will 
Responsible-Changed-When: Thu Jun 27 05:19:13 PDT 2002 
Responsible-Changed-Why:  
Refer to the GNOME team for what to do with this port. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34103 

From: Joe Marcus Clarke <marcus@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, john_m_cooper@yahoo.com
Cc:  
Subject: Re: ports/34103: [NEW PORT] gfax (missing-in-action for fifth-toe)
Date: 20 Nov 2002 03:17:37 -0500

 --=-nOgh9GuFbJGPZ02ERdK1
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 Sorry for taking so long in looking at this.  I noticed the WWW site is
 no longer valid.  Is this still a port you'd like to see added?  If so,
 did you want to do the apsfilter thing you talked about?
 
 Joe
 
 --=20
 Joe Marcus Clarke
 FreeBSD GNOME Team	::	marcus@FreeBSD.org
 http://www.FreeBSD.org/gnome
 
 --=-nOgh9GuFbJGPZ02ERdK1
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQA920Ugb2iPiv4Uz4cRAlADAJ9fKoTweQ09AHkCZHMmVoeX2fvfZwCgps6t
 ViA8ek6xp20x8E+rw+ieLfA=
 =gt8B
 -----END PGP SIGNATURE-----
 
 --=-nOgh9GuFbJGPZ02ERdK1--
 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Thu Nov 21 23:40:26 PST 2002 
State-Changed-Why:  
Committed, thanks.  Sorry it took so long. 

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