ports/153622: [patch] sysutils/jfbterm: improve TERMCAP option
Anonymous
swell.k at gmail.com
Wed Jan 26 16:00:22 UTC 2011
The following reply was made to PR ports/153622; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: beat at FreeBSD.org
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/153622: [patch] sysutils/jfbterm: improve TERMCAP option
Date: Wed, 26 Jan 2011 18:40:19 +0300
beat at FreeBSD.org writes:
> The backup file is left behind on deinstall: /usr/share/misc/termcap.bak
>
> Should we delete this file after working on termcap?
Not sure. It's a backup for system termcap file and has a value for debugging.
But just like with use.perl script after install+deinstall the traces of
original file are forever lost because backup files are not versioned.
TERMCAP is optional as jfbterm works with `xterm' termcap record just fine.
--- a.diff begins here ---
Index: sysutils/jfbterm/Makefile
===================================================================
RCS file: /a/.cvsup/ports/sysutils/jfbterm/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- sysutils/jfbterm/Makefile 22 Sep 2010 05:44:08 -0000 1.14
+++ sysutils/jfbterm/Makefile 26 Jan 2011 15:34:54 -0000
@@ -107,6 +124,10 @@ post-extract: .SILENT
post-patch: .SILENT
${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' \
${WRKSRC}/*.[0-9] ${WRKSRC}/*.conf.sample
+.if defined(WITHOUT_TERMCAP)
+ ${REINPLACE_CMD} '/^term/s/:.*/: xterm/' \
+ ${WRKSRC}/*.conf.sample
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
--- a.diff ends here ---
More information about the freebsd-ports-bugs
mailing list