From owner-svn-ports-head@freebsd.org Thu Apr 30 15:28:50 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 19A4F2C0A34; Thu, 30 Apr 2020 15:28:50 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49CfRj6y2Nz3CdV; Thu, 30 Apr 2020 15:28:49 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E9B7B20FDF; Thu, 30 Apr 2020 15:28:49 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03UFSnsd078783; Thu, 30 Apr 2020 15:28:49 GMT (envelope-from dvl@FreeBSD.org) Received: (from dvl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03UFSmRN078775; Thu, 30 Apr 2020 15:28:48 GMT (envelope-from dvl@FreeBSD.org) Message-Id: <202004301528.03UFSmRN078775@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dvl set sender to dvl@FreeBSD.org using -f From: Dan Langille Date: Thu, 30 Apr 2020 15:28:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r533464 - in head/net-mgmt/librenms: . files X-SVN-Group: ports-head X-SVN-Commit-Author: dvl X-SVN-Commit-Paths: in head/net-mgmt/librenms: . files X-SVN-Commit-Revision: 533464 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2020 15:28:50 -0000 Author: dvl Date: Thu Apr 30 15:28:48 2020 New Revision: 533464 URL: https://svnweb.freebsd.org/changeset/ports/533464 Log: Update to 1.63 re: https://github.com/librenms/librenms/releases/tag/1.63 Modified: head/net-mgmt/librenms/Makefile head/net-mgmt/librenms/distinfo head/net-mgmt/librenms/files/patch-LibreNMS_Validations_Programs.php head/net-mgmt/librenms/files/patch-LibreNMS_Validations_User.php head/net-mgmt/librenms/files/patch-config.php.default head/net-mgmt/librenms/files/patch-html_install.php Modified: head/net-mgmt/librenms/Makefile ============================================================================== --- head/net-mgmt/librenms/Makefile Thu Apr 30 15:22:00 2020 (r533463) +++ head/net-mgmt/librenms/Makefile Thu Apr 30 15:28:48 2020 (r533464) @@ -2,9 +2,9 @@ # $FreeBSD$ PORTNAME= librenms -PORTVERSION= 1.62.2 +PORTVERSION= 1.63 PORTEPOCH= 1 -PORTREVISION= 1 +PORTREVISION= 0 CATEGORIES= net-mgmt MASTER_SITES= LOCAL/dvl:vendor DISTFILES= ${PORTNAME}-vendor-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}:vendor @@ -19,7 +19,7 @@ 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= 1586016242 +RELEASE_TIMESTAMP= 1588045962 # perhaps we also need python-memcache python-mysqldb RUN_DEPENDS+= rrdtool:databases/rrdtool \ @@ -108,6 +108,7 @@ ROOT_DIRS= LibreNMS app bootstrap config contrib datab # these are directories which require a generic @DIR entry in pkg-plist OTHER_DIRS= html/js/lang \ + resources/views/overview/custom \ storage/app/public \ storage/debugbar \ storage/framework/cache/data \ @@ -124,7 +125,8 @@ OTHER_DIRS= html/js/lang \ vendor/laravel/laravel/storage/framework/sessions \ vendor/laravel/laravel/storage/framework/testing \ vendor/laravel/laravel/storage/framework/views \ - vendor/laravel/laravel/storage/logs + vendor/laravel/laravel/storage/logs \ + vendor/php-amqplib/php-amqplib/docs DOCS= AUTHORS.md CHANGELOG.md CONTRIBUTING.md LICENSE.txt README.md PORTDOCS= * @@ -192,8 +194,6 @@ post-install: @${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/logs" >> ${TMPPLIST} @${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/bootstrap/cache" >> ${TMPPLIST} -# @${ECHO_CMD} "@(www,www,0775) ${WWWDIR}/daily.sh" >> ${TMPPLIST} -# @${ECHO_CMD} "@(www,www,0775) ${WWWDIR}/lnms" >> ${TMPPLIST} @${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage" >> ${TMPPLIST} @${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage/framework/cache" >> ${TMPPLIST} @${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage/framework/sessions" >> ${TMPPLIST} Modified: head/net-mgmt/librenms/distinfo ============================================================================== --- head/net-mgmt/librenms/distinfo Thu Apr 30 15:22:00 2020 (r533463) +++ head/net-mgmt/librenms/distinfo Thu Apr 30 15:28:48 2020 (r533464) @@ -1,5 +1,5 @@ -TIMESTAMP = 1586120645 -SHA256 (librenms-vendor-1.62.2.tar.gz) = 1c5f171dc851e946cd92efe65678f878dd9c5fd0d6493d2e55ea37eab71b5b32 -SIZE (librenms-vendor-1.62.2.tar.gz) = 64935153 -SHA256 (librenms-librenms-1.62.2_GH0.tar.gz) = 40fa9d4f4bf0d2cf43642e879210d2915440b0b09ddf448d014a11876b337e70 -SIZE (librenms-librenms-1.62.2_GH0.tar.gz) = 43365349 +TIMESTAMP = 1588252287 +SHA256 (librenms-vendor-1.63.tar.gz) = 4c6bd2ad777d14752c7fe1ba22bae09079dd5d2f75dcfcfb48d7e42c804521e7 +SIZE (librenms-vendor-1.63.tar.gz) = 27496021 +SHA256 (librenms-librenms-1.63_GH0.tar.gz) = ac114391958327893013ed8e2e23aeef3f384a398d1fd2347aee91e2689eed43 +SIZE (librenms-librenms-1.63_GH0.tar.gz) = 43790047 Modified: head/net-mgmt/librenms/files/patch-LibreNMS_Validations_Programs.php ============================================================================== --- head/net-mgmt/librenms/files/patch-LibreNMS_Validations_Programs.php Thu Apr 30 15:22:00 2020 (r533463) +++ head/net-mgmt/librenms/files/patch-LibreNMS_Validations_Programs.php Thu Apr 30 15:28:48 2020 (r533464) @@ -1,6 +1,6 @@ ---- LibreNMS/Validations/Programs.php.orig 2018-10-17 10:33:28 UTC +--- LibreNMS/Validations/Programs.php.orig 2020-04-28 03:52:42 UTC +++ LibreNMS/Validations/Programs.php -@@ -73,6 +73,7 @@ class Programs extends BaseValidation +@@ -74,6 +74,7 @@ class Programs extends BaseValidation return; } Modified: head/net-mgmt/librenms/files/patch-LibreNMS_Validations_User.php ============================================================================== --- head/net-mgmt/librenms/files/patch-LibreNMS_Validations_User.php Thu Apr 30 15:22:00 2020 (r533463) +++ head/net-mgmt/librenms/files/patch-LibreNMS_Validations_User.php Thu Apr 30 15:28:48 2020 (r533464) @@ -1,18 +1,18 @@ ---- LibreNMS/Validations/User.php.orig 2018-10-17 10:33:28 UTC +--- LibreNMS/Validations/User.php.orig 2020-04-28 03:52:42 UTC +++ LibreNMS/Validations/User.php -@@ -71,6 +71,7 @@ class User extends BaseValidation - "sudo setfacl -d -m g::rwx $rrd_dir $log_dir $dir/bootstrap/cache/ $dir/storage/\n" . - "sudo chmod -R ug=rwX $rrd_dir $log_dir $dir/bootstrap/cache/ $dir/storage/\n"; +@@ -85,6 +85,7 @@ class User extends BaseValidation + "sudo chmod -R ug=rwX $rrd_dir $log_dir $dir/bootstrap/cache/ $dir/storage/", + ]; + if (!Config::get('installed_from_package')) { $find_result = rtrim(`find $dir \! -user $lnms_username -o \! -group $lnms_groupname 2> /dev/null`); if (!empty($find_result)) { // Ignore files created by the webserver -@@ -124,6 +125,7 @@ class User extends BaseValidation +@@ -137,6 +138,7 @@ class User extends BaseValidation + $validator->result(ValidationResult::fail( 'Some folders have incorrect file permissions, this may cause issues.' )->setFix($fix)->setList('Files', explode(PHP_EOL, $incorrect))); - } + } + } } else { $validator->warn("You don't have \$config['user'] set, this most likely needs to be set to librenms"); - } Modified: head/net-mgmt/librenms/files/patch-config.php.default ============================================================================== --- head/net-mgmt/librenms/files/patch-config.php.default Thu Apr 30 15:22:00 2020 (r533463) +++ head/net-mgmt/librenms/files/patch-config.php.default Thu Apr 30 15:28:48 2020 (r533464) @@ -1,8 +1,8 @@ ---- config.php.default.orig 2020-03-02 04:03:32 UTC +--- config.php.default.orig 2020-04-28 03:52:42 UTC +++ config.php.default @@ -2,15 +2,20 @@ - ## Have a look in includes/defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php! + ## Have a look in misc/config_definitions.json for examples of settings you can set here. DO NOT EDIT misc/config_definitions.json! +$config['installed_from_package'] = true; + Modified: head/net-mgmt/librenms/files/patch-html_install.php ============================================================================== --- head/net-mgmt/librenms/files/patch-html_install.php Thu Apr 30 15:22:00 2020 (r533463) +++ head/net-mgmt/librenms/files/patch-html_install.php Thu Apr 30 15:28:48 2020 (r533464) @@ -1,37 +1,28 @@ ---- html/install.php.orig 2019-05-12 00:03:11 UTC +--- html/install.php.orig 2020-04-30 14:13:30 UTC +++ html/install.php -@@ -362,7 +362,7 @@ $config_file = <<<"EOD" +@@ -418,14 +418,14 @@ if ($stage == 0) { - // This is the user LibreNMS will run as - //Please ensure this user is created and has the correct permissions to your install --\$config['user'] = 'librenms'; -+\$config['user'] = 'www'; - - ### Locations - it is recommended to keep the default - #\$config\['install_dir'\] = "$install_dir"; -@@ -392,14 +392,14 @@ - # Update configuration #\$config\['update_channel'\] = 'release'; # uncomment to follow the monthly release channel -#\$config\['update'\] = 0; # uncomment to completely disable updates +\$config\['update'\] = 0; # uncomment to completely disable updates EOD; - if (!file_exists("{$librenms_dir}/config.php")) { - $conf = fopen("config.php", 'w'); - if ($conf != false) { - if (fwrite($conf, "We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)"); ++ echo("
We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /usr/local/www/librenms/)
"); + echo("
<?php\n".stripslashes($config_file)."
"); + } else { + $config_file = stripslashes($config_file); +@@ -433,7 +433,7 @@ EOD; + echo("
The config file has been created
"); + } + } else { - echo("
We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)
"); + echo("
We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /usr/local/www/librenms/)
"); echo("
<?php\n".stripslashes($config_file)."
"); - } else { - $config_file = stripslashes($config_file); -@@ -404,7 +404,7 @@ if (!file_exists("config.php")) { - echo("
The config file has been created
"); } - } else { -- echo("
We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)
"); -+ echo("
We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /usr/local/www/librenms/)
"); - echo("
<?php\n".stripslashes($config_file)."
"); } - }