ports/136678: [PATCH] net/rtg: fix custom LOCALBASE build + other Makefile refinements
Sahil Tandon
sahil at tandon.net
Sun Jul 12 07:00:05 UTC 2009
>Number: 136678
>Category: ports
>Synopsis: [PATCH] net/rtg: fix custom LOCALBASE build + other Makefile refinements
>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: Sun Jul 12 07:00:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Sahil Tandon
>Release: 7.1-RELEASE
>Organization:
>Environment:
FreeBSD internal.hamla.org 7.1-RELEASE FreeBSD 7.1-RELEASE
>Description:
- Fix custom LOCALBASE build
- USE_MYSQL macro unless there is a reason to depend specifically on mysql41
- Use SF MASTER_SITES abbreviation
>How-To-Repeat:
http://qatty.tecnik93.com//errors/7-STABLE-FPT-CustDir/rtg-0.7.4_4.log
>Fix:
Apply patch:
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/rtg/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile 29 Mar 2008 11:02:36 -0000 1.9
+++ Makefile 12 Jul 2009 06:43:10 -0000
@@ -9,19 +9,22 @@
PORTVERSION= 0.7.4
PORTREVISION= 4
CATEGORIES= net
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= rtg
+MASTER_SITES= SF
+MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports at FreeBSD.org
COMMENT= A flexible, high-performance SNMP statistics monitoring system
-LIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql41-client \
- netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
+LIB_DEPENDS= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
+
+USE_MYSQL= yes
MAN1= rtgplot.1 rtgpoll.1
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/rtg
+CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/${PORTNAME} \
+ --with-mysql=${LOCALBASE} \
+ --with-snmp=${LOCALBASE}
pre-configure:
@${REINPLACE_CMD} -e 's,-pthread,${PTHREAD_LIBS},g' ${WRKSRC}/configure
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list