Bug 5605

Summary: new port - bitchx - alternative irc client
Product: Ports & Packages Reporter: Jimbo Bahooli <griffin>
Component: Individual Port(s)Assignee: mph <mph>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
BitchX.tar.gz none

Description Jimbo Bahooli 1998-01-30 23:30:01 UTC
	/usr/ports/net/BitchX - An alternative irc client, includes
	full color and many other features helpful to scripting.
	Popular among irc users, also I have contacted the author and he
	is very supportive of a FreeBSD ports version and was wondering why 
	one did not already exist.

Fix: UUENCODED tarball follows.
Comment 1 mph 1998-04-17 07:37:04 UTC
Tim Vanderhoek suggested that the ports committers could use the
input of reviewers.  A bout of insomnia has prodded me to review.

The BitchX port by griffin@blackhole.iceworld.org looks like the
work of someone new to the game.  The enclosed patch makes it pass
portlint and respect PREFIX.

diff -urN BitchX.orig/Makefile BitchX/Makefile
--- BitchX.orig/Makefile	Tue Jan 27 00:07:51 1998
+++ BitchX/Makefile	Fri Apr 17 02:35:06 1998
@@ -3,12 +3,11 @@
 # Date created:		26 Jan 1998
 # Whom:			griffin
 #
-# $Id: Makefile,v 1.15 1998/01/25 20:40:00 torstenb Exp $
+# $Id$
 #
 
-PKGNAME=	BitchX-74p2
 DISTNAME=	ircii-pana-74p2
-
+PKGNAME=	bitchx-74p2
 CATEGORIES=	net
 MASTER_SITES=	ftp://ftp.bitchx.com/pub/BitchX/source/
 
@@ -17,13 +16,15 @@
 GNU_CONFIGURE=	yes
 
 WRKSRC=		${WRKDIR}/BitchX
-NOMAN=		NO MAN PAGES INCLUDED
 
+post-patch:
+	${SED} -e s,__PREFIX__,$(PREFIX), $(WRKSRC)/include/config.h > $(WRKSRC)/include/config.h.new
+	${MV} $(WRKSRC)/include/config.h.new $(WRKSRC)/include/config.h
 
 do-install:
 	${MKDIR} ${PREFIX}/lib/BitchX
 	${INSTALL_PROGRAM} ${WRKSRC}/source/BitchX ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/source/wserv ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/BitchX.help ${PREFIX}/lib/BitchX	
+	${INSTALL_DATA} ${WRKSRC}/BitchX.help ${PREFIX}/lib/BitchX
 
 .include <bsd.port.mk>
diff -urN BitchX.orig/patches/patch-aa BitchX/patches/patch-aa
--- BitchX.orig/patches/patch-aa	Tue Jan 27 00:01:56 1998
+++ BitchX/patches/patch-aa	Fri Apr 17 02:18:33 1998
@@ -1,11 +1,20 @@
---- include/config.h.orig		Fri Dec 26 19:24:15 1997
-+++ include/config.h		Mon Jan 26 22:18:12 1998
+--- include/config.h.orig	Fri Dec 26 20:24:15 1997
++++ include/config.h	Fri Apr 17 02:15:40 1998
+@@ -249,7 +249,7 @@
+  */
+  
+ #undef TRANSLATE
+-#define TRANSLATION_PATH "/usr/local/lib/irc/translation"
++#define TRANSLATION_PATH "__PREFIX__/lib/irc/translation"
+ 
+ /*
+  * Below are the IRCII variable defaults.  For boolean variables, use 1 for
 @@ -432,7 +432,7 @@
  #define DEFAULT_SCRIPT_HELP_FILE DEFAULT_CTOOLZ_DIR"/BitchX.hlp"
  #define DEFAULT_BITCHX_HELP_FILE DEFAULT_CTOOLZ_DIR"/BitchX.hlp"
  #else
 -#define DEFAULT_CTOOLZ_DIR "~/.BitchX"
-+#define DEFAULT_CTOOLZ_DIR "/usr/local/lib/BitchX"
++#define DEFAULT_CTOOLZ_DIR "__PREFIX__/lib/BitchX"
  #define DEFAULT_SCRIPT_HELP_FILE DEFAULT_CTOOLZ_DIR"/BitchX.help"
  #define DEFAULT_BITCHX_HELP_FILE DEFAULT_CTOOLZ_DIR"/BitchX.help"
  #endif
diff -urN BitchX.orig/pkg/PLIST BitchX/pkg/PLIST
--- BitchX.orig/pkg/PLIST	Tue Jan 27 00:07:31 1998
+++ BitchX/pkg/PLIST	Fri Apr 17 02:34:26 1998
@@ -1,4 +1,4 @@
 bin/BitchX
 bin/wserv
 lib/BitchX/BitchX.help
-
+@dirrm lib/BitchX

-- 
Matthew Hunt <mph@pobox.com> * Stay close to the Vorlon.
http://mph124.rh.psu.edu/~mph/pgp.key for PGP public key 0x67203349.
Comment 2 mph freebsd_committer freebsd_triage 1998-04-17 23:10:08 UTC
Responsible Changed
From-To: freebsd-ports->mph

I reviewed and modified this port. 
Comment 3 mph freebsd_committer freebsd_triage 1998-04-18 03:05:19 UTC
State Changed
From-To: open->closed

Imported, with the changes indicated in a followup to the PR. 
Briefly: Package name lowercased to "bitchx" since caps are only 
for major packages.  Changed to obey PREFIX.  Added a @dirrm to the 
PLIST. 

Thanks for your contribution.