Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2002 22:28:19 -0800 (PST)
From:      John Merryweather Cooper <john_m_cooper@yahoo.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        sobomax@freebsd.org
Subject:   ports/34103: [NEW PORT] gfax (missing-in-action for fifth-toe)
Message-ID:  <20020121062819.5EE0215504@johncoop.MSHOME>

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

>Number:         34103
>Category:       ports
>Synopsis:       [NEW PORT] gfax (missing-in-action for fifth-toe)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 20 22:30:01 PST 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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