Lines 1-16
Link Here
|
1 |
PORTNAME= librenms |
1 |
PORTNAME= librenms |
2 |
PORTVERSION= 21.5.1 |
2 |
PORTVERSION= 21.12.0 |
3 |
PORTREVISION= 3 |
3 |
PORTREVISION= 0 |
4 |
PORTEPOCH= 1 |
4 |
PORTEPOCH= |
5 |
CATEGORIES= net-mgmt |
5 |
CATEGORIES= net-mgmt |
6 |
MASTER_SITES= LOCAL/dvl:vendor |
|
|
7 |
DISTFILES= ${PORTNAME}-vendor-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}:vendor |
8 |
|
6 |
|
9 |
MAINTAINER= dvl@FreeBSD.org |
7 |
MAINTAINER= dvl@FreeBSD.org |
10 |
COMMENT= Autodiscovering PHP/MySQL/SNMP based network monitoring |
8 |
COMMENT= Autodiscovering PHP/MySQL/SNMP based network monitoring |
11 |
|
9 |
|
12 |
LICENSE= GPLv3 |
10 |
LICENSE= GPLv3 |
13 |
|
11 |
|
|
|
12 |
EXTRACT_DEPENDS+= ${LOCALBASE}/bin/composer:devel/php-composer2@${PHP_FLAVOR} |
13 |
|
14 |
# perhaps we also need python-memcache python-mysqldb |
14 |
# perhaps we also need python-memcache python-mysqldb |
15 |
RUN_DEPENDS+= ${LOCALBASE}/share/pear/Net/IPv4.php:net/pear-Net_IPv4@${PHP_FLAVOR} \ |
15 |
RUN_DEPENDS+= ${LOCALBASE}/share/pear/Net/IPv4.php:net/pear-Net_IPv4@${PHP_FLAVOR} \ |
16 |
${LOCALBASE}/share/pear/Net/IPv6.php:net/pear-Net_IPv6@${PHP_FLAVOR} \ |
16 |
${LOCALBASE}/share/pear/Net/IPv6.php:net/pear-Net_IPv6@${PHP_FLAVOR} \ |
Lines 29-36
USE_PHP= ctype curl dom fileinfo filter gd hash json ldap mbstring \
Link Here
|
29 |
snmp sockets tokenizer xml xmlwriter zip |
29 |
snmp sockets tokenizer xml xmlwriter zip |
30 |
USE_RC_SUBR= librenms |
30 |
USE_RC_SUBR= librenms |
31 |
|
31 |
|
32 |
SHEBANG_FILES= ../${PORTNAME}-vendor-${PORTVERSION}/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php \ |
32 |
SHEBANG_FILES= vendor/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php \ |
33 |
../${PORTNAME}-vendor-${PORTVERSION}/tecnickcom/tcpdf/tools/tcpdf_addfont.php \ |
33 |
vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php \ |
34 |
poller-wrapper.py poller.php scripts/auth_test.php \ |
34 |
poller-wrapper.py poller.php scripts/auth_test.php \ |
35 |
scripts/check_requirements.py scripts/github-remove \ |
35 |
scripts/check_requirements.py scripts/github-remove \ |
36 |
scripts/Migration/Standard_Conversion/convert_no_xml.sh \ |
36 |
scripts/Migration/Standard_Conversion/convert_no_xml.sh \ |
Lines 95-101
_SCRIPT_FILES= daily.sh lnms
Link Here
|
95 |
_RELEASE_TIMESTAMP= 1621427246 |
95 |
_RELEASE_TIMESTAMP= 1621427246 |
96 |
_ROOT_DIRS= LibreNMS app bootstrap config contrib database doc html \ |
96 |
_ROOT_DIRS= LibreNMS app bootstrap config contrib database doc html \ |
97 |
includes licenses mibs misc resources routes scripts \ |
97 |
includes licenses mibs misc resources routes scripts \ |
98 |
sql-schema storage tests |
98 |
sql-schema storage tests vendor |
99 |
_DOCS= AUTHORS.md CHANGELOG.md CONTRIBUTING.md LICENSE.txt \ |
99 |
_DOCS= AUTHORS.md CHANGELOG.md CONTRIBUTING.md LICENSE.txt \ |
100 |
README.md |
100 |
README.md |
101 |
# these are directories which require a generic @DIR entry in pkg-plist |
101 |
# these are directories which require a generic @DIR entry in pkg-plist |
Lines 108-113
_OTHER_DIRS= html/js/lang resources/views/overview/custom \
Link Here
|
108 |
vendor/ramsey/collection/bin \ |
108 |
vendor/ramsey/collection/bin \ |
109 |
vendor/symfony/string/Resources/bin |
109 |
vendor/symfony/string/Resources/bin |
110 |
|
110 |
|
|
|
111 |
post-extract: |
112 |
${LOCALBASE}/bin/composer install -n -d ${WRKSRC} |
113 |
|
111 |
post-patch: |
114 |
post-patch: |
112 |
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/LibreNMS/Util/Version.php |
115 |
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/LibreNMS/Util/Version.php |
113 |
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/LibreNMS/Validations/Php.php |
116 |
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/LibreNMS/Validations/Php.php |
Lines 131-148
do-install:
Link Here
|
131 |
.for f in ${_SCRIPT_FILES} |
134 |
.for f in ${_SCRIPT_FILES} |
132 |
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}/${WWWDIR} |
135 |
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}/${WWWDIR} |
133 |
.endfor |
136 |
.endfor |
134 |
${MKDIR} ${STAGEDIR}/${WWWDIR}/vendor |
|
|
135 |
(cd ${WRKDIR}/${PORTNAME}-vendor-${PORTVERSION} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/vendor) |
136 |
|
137 |
# As of 1.66_1, the package installs bootstrap/cache |
138 |
# This was previously left to the code to populate. |
139 |
# That causese problems when the code doesn't do that update. |
140 |
${MV} ${STAGEDIR}/${WWWDIR}/vendor/bootstrap-cache/* ${STAGEDIR}/${WWWDIR}/bootstrap/cache/ |
141 |
${RM} -rf ${STAGEDIR}/${WWWDIR}/vendor/bootstrap-cache |
142 |
|
143 |
# similarly with html/js/lang |
144 |
${MV} ${STAGEDIR}/${WWWDIR}/vendor/html-js-lang/* ${STAGEDIR}/${WWWDIR}/html/js/lang/ |
145 |
${RM} -rf ${STAGEDIR}/${WWWDIR}/vendor/html-js-lang |
146 |
|
137 |
|
147 |
# Make daily.sh executable |
138 |
# Make daily.sh executable |
148 |
# ${CHMOD} 0755 ${STAGEDIR}/${WWWDIR}/daily.sh |
139 |
# ${CHMOD} 0755 ${STAGEDIR}/${WWWDIR}/daily.sh |