Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2018 17:37:53 +0000 (UTC)
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r487604 - head/net-mgmt/librenms
Message-ID:  <201812161737.wBGHbr7w015886@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bofh
Date: Sun Dec 16 17:37:53 2018
New Revision: 487604
URL: https://svnweb.freebsd.org/changeset/ports/487604

Log:
  net-mgmtt/librenms: Fix build with EXAMPLES disabled
  
  - Pet portlint
  
  PR:			233202
  Submitted by:		pizzamig

Modified:
  head/net-mgmt/librenms/Makefile

Modified: head/net-mgmt/librenms/Makefile
==============================================================================
--- head/net-mgmt/librenms/Makefile	Sun Dec 16 17:01:42 2018	(r487603)
+++ head/net-mgmt/librenms/Makefile	Sun Dec 16 17:37:53 2018	(r487604)
@@ -3,11 +3,7 @@
 
 PORTNAME=	librenms
 PORTVERSION=	1.45
-PORTREVISION=	1
-# RELEASE_TIMESTAMP is used for a patch inside the vendor code
-# it represents the release date via: git show --pretty='%H|%ct' -s 1.42.01
-# It sits here so you remember to update it with each release
-RELEASE_TIMESTAMP=	1539772408
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	LOCAL/dvl:vendor
@@ -18,8 +14,14 @@ COMMENT=	Autodiscovering PHP/MySQL/SNMP based network 
 
 LICENSE=	GPLv3
 
-# perhaps we also need python-memcache python-mysqldb
+USES=		python${PY_MYSQL} shebangfix
 
+# RELEASE_TIMESTAMP is used for a patch inside the vendor code
+# it represents the release date via: git show --pretty='%H|%ct' -s 1.42.01
+# It sits here so you remember to update it with each release
+RELEASE_TIMESTAMP=	1539772408
+
+# perhaps we also need python-memcache python-mysqldb
 RUN_DEPENDS+=	rrdtool:databases/rrdtool \
 		dot:graphics/graphviz \
 		${LOCALBASE}/share/pear/Net/IPv4.php:net/pear-Net_IPv4@${PHP_FLAVOR} \
@@ -28,8 +30,6 @@ RUN_DEPENDS+=	rrdtool:databases/rrdtool \
 		bash:shells/bash \
 		sudo:security/sudo
 
-USES=		python${PY_MYSQL} shebangfix
-
 USE_PHP=	ctype curl filter gd hash json ldap mbstring mysqli openssl pdo pdo_mysql posix session simplexml snmp tokenizer xml zip
 
 USE_GITHUB=	yes
@@ -157,6 +157,9 @@ do-install:
 # Ensure PHP and Python scripts are executable
 	${FIND} ${STAGEDIR}/${WWWDIR} -type f -name '*.py' -or -type f -name \
 	       '*.php' -exec ${CHMOD} +x {} \;
+# these values should be outside the www tree now
+	${MKDIR} ${STAGEDIR}/var/log/${PORTNAME}
+	${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
 
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}/${DOCSDIR}
@@ -170,10 +173,6 @@ do-install-EXAMPLES-on:
 .for f in ${PORTEXAMPLES}
 	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${EXAMPLESDIR}
 .endfor
-
-# these values should be outside the www tree now
-	${MKDIR} ${STAGEDIR}/var/log/${PORTNAME}
-	${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
 
 post-install:
 	@${FIND} -s ${STAGEDIR}${WWWDIR} -type f '(' -name '*.orig' -or -name '*.bak' -or -name '.gitignore' ')' -delete



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