BSD Ports

net-mgmt/klg 1.5_1 FreeBSD

PHP-based looking glass for Cisco, Juniper and Quagga/Zebra routers

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD3CLAUSE
Categories
net-mgmt, www
Package size
14.7 KiB, 53.3 KiB installed

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.

In the other systems

SystemPortVersion
FreeBSDnet-mgmt/klg1.5_1
DragonFlynet-mgmt/klg1.5_1
HardenedBSDnet-mgmt/klg1.5_1
GhostBSDnet-mgmt/klg1.5_1

Install

Binary package:

pkg install klg-php82

From the ports tree:

cd /usr/ports/net-mgmt/klg/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	klg-php82>0:net-mgmt/klg

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.5_11.5_11.5_11.5_1-
FreeBSD:14:quarterly1.5_11.5_1n/a1.5_1-
FreeBSD:15:latest1.5_11.5_1n/a1.5_11.5_1
FreeBSD:15:quarterly1.5_11.5_1n/an/an/a
FreeBSD:16:latest1.5_11.5_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 13
Run dependencies 24

No port depends on this one.

Configuration

Options name: net-mgmt_klg

OptionDefaultDescription
SSH2onSSH2 support for router access
USES
tar:txz php:web,flavors mysql:client
Service scripts
none
Flavors
klg-php83-1.5_1, klg-php84-1.5_1, klg-php85-1.5_1, klg-php86-1.5_1

Message 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

Files

distinfo 1
FileSizeSHA256
klg-1.5.txz244314f966bb22a940b61f731f423b663bcff541871489958c79ad30e6462465ff582
Master sites 2
  • SF
  • ftp://ftpmirror.uk/freebsd-ports/klg/

Commit history 0

No commits in the history this site was built from.