Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2003 19:00:15 -0800 (PST)
From:      "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/47551: update port: misc/colortail
Message-ID:  <200301290300.h0T30Fq7001179@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/47551; it has been noted by GNATS.

From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Cc: freebsd-gnats-submit@freebsd.org, lehmann@ans-netz.de
Subject: Re: ports/47551: update port: misc/colortail
Date: Wed, 29 Jan 2003 03:59:47 +0100

 --X=.w9npBh+?8Hvk4
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Lately Volker Stolz told:
 
 >  There's something wrong in the code. I suggest that
 >  a) the patch is applied, and
 >  b) this port is marked BROKEN until someone comes up with a good fix.
 
 uhm yea. just look at the code :) here it is:
 
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/misc/colortail/Makefile,v
 retrieving revision 1.14
 diff -u -r1.14 Makefile
 --- Makefile	26 Nov 2002 00:34:06 -0000	1.14
 +++ Makefile	28 Jan 2003 14:28:50 -0000
 @@ -7,23 +7,25 @@
  
  PORTNAME=	colortail
  PORTVERSION=	0.3.0
 +PORTREVISION=	1
  CATEGORIES=	misc
  MASTER_SITES=	http://www.student.hk-r.se/~pt98jan/
  
  MAINTAINER=	ports@FreeBSD.org
  
 -LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
 -
  GNU_CONFIGURE=	yes
 -CONFIGURE_ENV=	CPPFLAGS="-DHAVE_DECL_GETOPT=1 -I${LOCALBASE}/include" \
 -		LDFLAGS="-L${LOCALBASE}/lib"
 +CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 +
 +.if !exists(/usr/include/getopt.h)
 +LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
 +CPPFLAGS+=	-I${LOCALBASE}/include
 +LDFLAGS+=	-L${LOCALBASE}/lib -lgnugetopt
 +.endif
  
 +.if !defined(NOPORTDOCS)
  post-install:
 -	@ ${MKDIR} ${PREFIX}/share/colortail
 -	@ ${INSTALL_DATA} ${WRKSRC}/example-conf/conf* ${PREFIX}/share/colortail/
 -	@ ${ECHO} "*********************************************"
 -	@ ${ECHO} "Examples of the color configuration files are"
 -	@ ${ECHO} "in ${PREFIX}/share/colortail/"
 -	@ ${ECHO} "*********************************************"
 +	@${MKDIR} ${EXAMPLESDIR}
 +	@${INSTALL_DATA} ${WRKSRC}/example-conf/conf* ${EXAMPLESDIR}
 +.endif
  
  .include <bsd.port.mk>
 Index: pkg-plist
 ===================================================================
 RCS file: /home/ncvs/ports/misc/colortail/pkg-plist,v
 retrieving revision 1.2
 diff -u -r1.2 pkg-plist
 --- pkg-plist	28 Jun 2000 17:20:28 -0000	1.2
 +++ pkg-plist	28 Jan 2003 14:28:24 -0000
 @@ -1,7 +1,7 @@
  bin/colortail
 -share/colortail/conf.daemon
 -share/colortail/conf.kernel
 -share/colortail/conf.messages
 -share/colortail/conf.secure
 -share/colortail/conf.xferlog
 -@dirrm share/colortail
 +%%PORTDOCS%%share/examples/colortail/conf.daemon
 +%%PORTDOCS%%share/examples/colortail/conf.kernel
 +%%PORTDOCS%%share/examples/colortail/conf.messages
 +%%PORTDOCS%%share/examples/colortail/conf.secure
 +%%PORTDOCS%%share/examples/colortail/conf.xferlog
 +%%PORTDOCS%%@dirrm share/examples/colortail
 Index: files/patch-OptionsParser.cc
 ===================================================================
 RCS file: files/patch-OptionsParser.cc
 diff -N files/patch-OptionsParser.cc
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ files/patch-OptionsParser.cc	28 Jan 2003 14:09:46 -0000
 @@ -0,0 +1,20 @@
 +--- OptionsParser.cc.orig	Thu Aug  5 01:23:39 1999
 ++++ OptionsParser.cc	Tue Jan 28 13:11:52 2003
 +@@ -136,6 +136,8 @@
 + 	       {
 + 		  if (optarg[pos] == ',')
 + 		  {
 ++		     filename.put('\0');
 ++
 + 		     // found seperator
 + 		     // set filename in options class
 + 		     o->cfg_filenames[o->nr_cfg_files] = filename.str();
 +@@ -152,6 +154,8 @@
 + 
 + 		  if (optarg[pos] == '\0')
 + 		  {
 ++		     filename.put('\0');
 ++
 + 		     // found end of string
 + 		     // set filename in options class
 + 		     o->cfg_filenames[o->nr_cfg_files] = filename.str();
 Index: files/patch-configure
 ===================================================================
 RCS file: files/patch-configure
 diff -N files/patch-configure
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ files/patch-configure	28 Jan 2003 14:09:46 -0000
 @@ -0,0 +1,11 @@
 +--- configure.orig	Sun Aug 15 16:36:25 1999
 ++++ configure	Tue Jan 28 15:06:04 2003
 +@@ -1206,7 +1206,7 @@
 + 
 + fi
 + 
 +-for ac_hdr in malloc.h unistd.h regex.h gnuregex.h
 ++for ac_hdr in malloc.h unistd.h regex.h
 + do
 + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
 
 cheers
   simon
 
 -- 
 /"\   http://corecode.ath.cx/#donate
 \ /
  \     ASCII Ribbon Campaign
 / \  Against HTML Mail and News
 
 --X=.w9npBh+?8Hvk4
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE+N0Omr5S+dk6z85oRAqL5AJ0YuUzsIigq7CU6U8Fv+Iud+/1P3gCfat1D
 i+QFCfBJkq7XII1h8qzOCyY=
 =OT4W
 -----END PGP SIGNATURE-----
 
 --X=.w9npBh+?8Hvk4--

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




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