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.
===> 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
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
*/*: 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 )
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)
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 )
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)
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.
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
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>