Date: Fri, 16 Jul 2004 19:33:08 +0400 (MSD) From: Andrej Zverev <az@inec.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/69154: Fix ports/net/happystats link on FreeBSD >= 5.x Message-ID: <200407161533.i6GFX8Er089929@waterwall.inec.ru> Resent-Message-ID: <200407161530.i6GFUEjS032359@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 69154 >Category: ports >Synopsis: Fix ports/net/happystats link on FreeBSD >= 5.x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 16 15:30:13 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Andrej Zverev >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD az.inec.ru 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Wed Jul 14 14:46:11 MSD 2004 root@az.inec.ru:/usr/obj/usr/src/sys/az i386 >Description: port market as broken on FreeBSD >= 5.x >How-To-Repeat: Just have FreeBSD 5.x and try make >Fix: Add extra check after patch to make sure we need gnugetopt or not --- /usr/ports/net/happystats/Makefile Sat Apr 3 18:02:43 2004 +++ Makefile Fri Jul 16 18:33:28 2004 @@ -22,6 +22,8 @@ rrd.0:${PORTSDIR}/net/rrdtool USE_GETOPT_LONG= yes +USE_REINPLACE= yes + MAN1= happystats.1 MANCOMPRESSED= yes @@ -29,12 +31,14 @@ .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 502108 -BROKEN= "Does not link on FreeBSD >= 5.x" -.endif - do-configure: @cd ${WRKSRC} && ${MAKE} dep + +post-configure: +.if ${OSVERSION} > 500041 + @${REINPLACE_CMD} -E -e 's|-lgnugetopt||g' \ + ${WRKSRC}/Makefile +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/happystats ${PREFIX}/bin >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407161533.i6GFX8Er089929>