ports/79036: port sysutils/portbrowser, use correct INDEX
Reinhard Lenninger
reinhard.lenninger at web.de
Sun Mar 20 02:40:04 UTC 2005
>Number: 79036
>Category: ports
>Synopsis: port sysutils/portbrowser, use correct INDEX
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 20 02:40:03 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Reinhard Lenninger
>Release: FreeBSD 5.3-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD 5.3-RELEASE-p5 #0: Sun Jan 30 15:44:51 UTC 2005
toor at freebsd.megatron:/usr/obj/usr/src/sys/BEASTIE5_3
>Description:
port sysutils/portbrowser (a gui frontend for the ports system) tries to use /usr/port/INDEX which is ok for FreeBSD 4.x but is not ok for FreeBSD
5.x. the following patch for sysutils/portbrowser/Makefile should fix this.
>How-To-Repeat:
>Fix:
--- Makefile-patch begins here ---
--- Makefile.orig Sat Mar 12 10:53:25 2005
+++ Makefile Sun Mar 20 03:04:18 2005
@@ -23,4 +23,16 @@
MAN1= pbrowser.1
-.include <bsd.port.mk>
+USE_REINPLACE= yes
+
+.include <bsd.port.pre.mk>
+
+pre-build:
+.if ${OSVERSION} >= 500036
+ @${REINPLACE_CMD} "s/PORTS_DIR\"INDEX/PORTS_DIR\"INDEX-5/" ${WRKSRC}/src/pkgobject.h
+.endif
+.if ${OSVERSION} >= 600000
+ @${REINPLACE_CMD} "s/PORTS_DIR\"INDEX/PORTS_DIR\"INDEX-6/" ${WRKSRC}/src/pkgobject.h
+.endif
+
+.include <bsd.port.post.mk>
--- Makefile-patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list