*/*: 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 * www/moodle40: Remove OPTION MSSQL * www/moodle41: Remove OPTION MSSQL - Remove USE_PHP=openssl which is available in default php installation of all versions of php * databases/phpmyadmin: Remove OPTION OPENSSL * databases/phpmyadmin5: Remove OPTION OPENSSL * security/pear-Horde_Crypt_Blowfish: Remove OPTION OPENSSL * www/nextcloud: Remove OPTION SSL * www/owncloud: Remove OPTION SSL - Remove USE_PHP=pcre which is available in default php installation of all versions of php * sysutils/racktables: Remove OPTION PCRE - Remove USE_PHP=postgresql which should be USE_PHP=pgsql and update following ports * www/typo3-11 * www/typo3-12 - Remove USE_PHP=pdf which is no longer available as php module * databases/phpmyadmin: Remove OPTION PDF - Remove USE_PHP=spl which is available in default php installation of all versions of php - Remove USE_PHP=sqlsrv which was never imported into FreeBSD as that is Windows only php module * www/typo3-11: Remove OPTION SQLSRV * www/typo3-12: Remove OPTION SQLSRV - Bump where DEFAULT OPTIONS are affected Sponsored by: Bounce Experts Approved by: portmgr(blanket)0ac3a69555
Port details
net-mgmt/klg 1.5_1
PHP-based looking glass for Cisco, Juniper and Quagga/Zebra routers
Port info
- Maintainer
- freebsd-ports@dan.me.uk
- Packages
- latest: klg-php82 1.5_1, klg-php83 1.5_1, klg-php84 1.5_1, klg-php85 1.5_1, klg-php86 1.5_1
- Upstream
- up to date
- Last update
- to 1.5_1 · 0ac3a69555
- Quarterly
- 2026Q4: klg-php82 1.5_1, klg-php83 1.5_1, klg-php84 1.5_1, klg-php85 1.5_1, klg-php86 1.5_1
- WWW
- https://sourceforge.net/projects/klg/
- Links
- cgit · VuXML
Install
- Package
# pkg install klg-php82# pkg install klg-php83# pkg install klg-php84# pkg install klg-php85# pkg install klg-php86installs klg-php82 1.5_1, klg-php83 1.5_1, klg-php84 1.5_1, klg-php85 1.5_1, klg-php86 1.5_1 fromlatest; fromquarterly(2026Q4) klg-php82 1.5_1, klg-php83 1.5_1, klg-php84 1.5_1, klg-php85 1.5_1, klg-php86 1.5_1- Port
# cd /usr/ports/net-mgmt/klg && make install clean# make -C /usr/ports/net-mgmt/klg config # change options first
- Size
- 15 KiB download · 53 KiB installed
- Depends on
- databases/mysql84-client 8.4.11_1, databases/php82-mysqli 8.2.35_2, lang/php82 8.2.35_2, net/php82-sockets 8.2.35_2, security/pecl-ssh2 1.3.1, textproc/php82-xml 8.2.35_2
- License
- BSD3CLAUSE
- Options
- 1 of 1 on in the package: SSH2
- pkg-message
Shown after installing
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- Note
- Size, dependencies, options and messages are those of klg-php82.
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 1.5_1 | 1.5_1 | – |
| FreeBSD 15 | 1.5_1 | 1.5_1 | – |
| FreeBSD 14 | 1.5_1 | 1.5_1 | ✗ |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 1.5_1 | 1.5_1 | – |
| FreeBSD 14 | 1.5_1 | 1.5_1 | ✗ |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 1.5_1.Fixed (0)
No VuXML entries for this package.
Problem reports (0) · open in Bugzilla, most recently changed first
None.
Commits (20)
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)fb16dfecae
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. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)b7f05445c0
One more small cleanup, forgotten yesterday. Reported by: lwhsucf118ccf87
Remove # $FreeBSD$ from Makefiles.305f148f48
Convert to UCL & cleanup pkg-message (categories n) (and missed 3 missed files from previous categories.)2614c95748
net-mgmt/klg: remove supoprt for PHP 5.61a902ecbc5
Revert r488743, it results in a bogus dependency for PHP 5.64478fa9808
math/klg: remove support for PHP 5.63c769f4622
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)d761cbf4d5
Fix some PKGNAME collisions3f14fbb2c0
Flag more ports not compatible to PHP 7.x with IGNORE_WITH_PHP PR: 22998266495f27bc
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.915b7539b9
category net-mgmt: Convert to USES=php Approved by: infrastructure modernization blanket08ff31ee65
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/D14208a1993564e0
Update WWW: SF redirects to https://sourceforge.net/projects/<PROJECT_NAME>/0e04efec5a
Unmark broken on powerpc64 These ports built successfully149ba7338a
many ports: mark broken on powerpc6486cd4fbe5a
Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat: portmgr
Sponsored by: Absolight8d6597e0bbNew 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>680f85adfe