Port details |
- klg PHP-based looking glass for Cisco, Juniper and Quagga/Zebra routers
- 1.5_1 net-mgmt =2 1.5_1Version of this port present on the latest quarterly branch.
- Maintainer: freebsd-ports@dan.me.uk
- Port Added: 2015-10-28 18:38:41
- Last Update: 2023-04-16 18:09:23
- Commit Hash: 0ac3a69
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- Also Listed In: www
- License: BSD3CLAUSE
- WWW:
- https://sourceforge.net/projects/klg/
- Description:
- klg is a looking glass written in PHP that can access and report
back routing information from Cisco, Juniper and Zebra/Quagga
routers. It can also lookup AS numbers to names via WHOIS interfaces,
and supports friendly BGP community names via MySQL database.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- klg${PHP_PKGNAMESUFFIX}>0:net-mgmt/klg
- To install the port:
- cd /usr/ports/net-mgmt/klg/ && make install clean
- To add the package, run one of these commands:
- pkg install net-mgmt/klg
- pkg install klg-php81
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: klg-php81
- Package flavors (<flavor>: <package>)
- php81: klg-php81
- php80: klg-php80
- php82: klg-php82
- distinfo:
- SHA256 (klg-1.5.txz) = 4f966bb22a940b61f731f423b663bcff541871489958c79ad30e6462465ff582
SIZE (klg-1.5.txz) = 24431
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Runtime dependencies:
-
- php.h : lang/php81
- ssh2.so : security/pecl-ssh2@php81
- mysqli.so : databases/php81-mysqli
- sockets.so : net/php81-sockets
- xml.so : textproc/php81-xml
- Library dependencies:
-
- libmysqlclient.so.21 : databases/mysql80-client
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for klg-php81-1.5_1:
SSH2=on: SSH2 support for router access
===> Use 'make config' to modify these settings
- Options name:
- net-mgmt_klg
- USES:
- tar:txz php:web,flavors mysql:client
- pkg-message:
- For install:
- If this is the first installation, you need to configure a few things first.
1. Create the MySQL database, a klg user, and initialise:
a) CREATE DATABASE klg;
b) CREATE USER 'klg'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON klg.* TO 'klg'@'localhost';
FLUSH PRIVILEGES;
c) import the schema:
mysql -u klg -p klg < /usr/local/share/klg/klg_schema.sql
2. Edit /usr/local/www/klg/klg/klg_config.php from the template klg_config.php.sample
You need to specify the MySQL details from above at the top of the file,
and details of your routers further down. Follow the comments in the file.
You may wish to specify the timezone by adding a line similar to this:
date_default_timezone_set('Europe/London');
3. Edit /usr/local/www/klg/klg/klg_template.html from the template file to suit your
needs. Items in this file are substituted upon execution so you can skin
your looking glass to your site.
4. Example Apache 2.4 configuration:
This assumes you have already configured Apache to serve .php documents.
Alias /klg "/usr/local/www/klg/klg/"
<Directory "/usr/local/www/klg/klg/">
Require all granted
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
5. Access your new looking glass:
http://HOSTNAME/klg/klg.php
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
1.5_1 16 Apr 2023 18:09:23 |
Muhammad Moinur Rahman (bofh) |
*/*: Remove merged or non-existent USE_PHP directives
- Remove USE_PHP=hash which is available in default php installation of
all versions of php
* security/pear-Horde_Crypt_Blowfish: Remove OPTION MHASH
- Remove USE_PHP=json which is available in default php installation of
all versions of php
* devel/pear-PHPTAL: Remove OPTION JSON
* www/ilias: Remove OPTION SCORM2004
- Remove USE_PHP=mssql which is no longer available in php from php80
and later and has been replaced with sqlsrv module which is Windows
only
* www/codeigniter: Remove OPTION MSSQL
* www/moodle311: Remove OPTION MSSQL
* www/moodle39: Remove OPTION MSSQL (Only the first 15 lines of the commit message are shown above ) |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
1.5_1 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
1.5_1 07 Apr 2021 08:09:01 |
Mathieu Arnold (mat) |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
1.5_1 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
1.5_1 14 Aug 2019 08:48:51 |
mat |
Convert to UCL & cleanup pkg-message (categories n)
(and missed 3 missed files from previous categories.) |
1.5_1 01 Jan 2019 13:24:16 |
rene |
net-mgmt/klg: remove supoprt for PHP 5.6 |
1.5_1 30 Dec 2018 22:37:40 |
rene |
Revert r488743, it results in a bogus dependency for PHP 5.6 |
1.5_1 30 Dec 2018 22:08:40 |
rene |
math/klg: remove support for PHP 5.6 |
1.5_1 20 Oct 2018 18:30:11 |
mfechner |
Fix build on PHP 7+.
Also fix dependancies on PHP 5.6 (mysqli not mysql for all PHP versions now).
Update Makefile to remove all portlint warnings.
Add flavour support.
PR: 227375
Submitted by: freebsd-ports@dan.me.uk
Reported by: freebsd-ports@dan.me.uk
Reviewed by: mfechner@FreeBSD.org
Approved by: mentors (implicit) |
1.5 08 Oct 2018 15:08:13 |
antoine |
Fix some PKGNAME collisions |
1.5 13 Aug 2018 09:25:01 |
tz |
Flag more ports not compatible to PHP 7.x with IGNORE_WITH_PHP
PR: 229982 |
1.5 05 May 2018 14:37:10 |
danfe |
For some ports under `net*' categories: remove redundant PKGMESSAGE
assignment, which is set appropriately by the b.p.m when `pkg-message'
appears on the SUB_FILES list. |
1.5 08 Apr 2018 12:19:58 |
brnrd |
category net-mgmt: Convert to USES=php
Approved by: infrastructure modernization blanket |
1.5 08 Mar 2018 19:48:41 |
mat |
Introduce PHP flavors.
Ports using USES=php:phpize, php:ext, php:zend, and php:pecl are now
flavored. They will automatically get flavors (php56, php70, php71, php72)
depending of the versions they support (set with IGNORE_WITH_PHP). As a
consequence, ports using USES=pear and USES=horde are also flavored.
PR: 226242
Submitted by: mat
Exp-run by: antoine
Approved by: portmgr
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D14208 |
1.5 20 Jan 2017 20:33:31 |
sunpoet |
Update WWW: SF redirects to https://sourceforge.net/projects/<PROJECT_NAME>/ |
1.5 15 Sep 2016 01:41:28 |
swills |
Unmark broken on powerpc64
These ports built successfully |
1.5 21 Apr 2016 16:43:15 |
swills |
many ports: mark broken on powerpc64 |
1.5 01 Apr 2016 14:16:20 |
mat |
Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat: portmgr
Sponsored by: Absolight |
1.5 28 Oct 2015 18:38:28 |
pi |
New port: net-mgmt/klg
klg is a looking glass written in PHP that can access and report
back routing information from Cisco, Juniper and Zebra/Quagga
routers. It can also lookup AS numbers to names via WHOIS interfaces,
and supports friendly BGP community names via MySQL database.
WWW: http://sourceforge.net/projects/klg
PR: 204020
Submitted by: Daniel Austin <freebsd-ports@dan.me.uk> |