ports/69154: Fix ports/net/happystats link on FreeBSD >= 5.x

Andrej Zverev az at inec.ru
Fri Jul 16 15:30:15 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list