freebsd-ports/net-mgmt/klg/Makefile
Muhammad Moinur Rahman 0ac3a69555 */*: 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)
2023-04-16 20:09:23 +02:00

50 lines
1.4 KiB
Makefile

PORTNAME= klg
PORTVERSION= 1.5
PORTREVISION= 1
CATEGORIES= net-mgmt www
MASTER_SITES= SF \
ftp://ftpmirror.uk/freebsd-ports/klg/
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= freebsd-ports@dan.me.uk
COMMENT= PHP-based looking glass for Cisco, Juniper and Quagga/Zebra routers
WWW= https://sourceforge.net/projects/klg/
LICENSE= BSD3CLAUSE
USES= tar:txz php:web,flavors mysql:client
USE_PHP= mysqli sockets xml
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= ${DATADIR}/CREDITS \
${DATADIR}/ChangeLog \
${DATADIR}/klg_README.txt \
${DATADIR}/klg_schema.sql \
${WWWDIR}/klg.php \
"@sample ${WWWDIR}/klg_config.php.sample" \
"@sample ${WWWDIR}/klg_template.html.sample" \
${WWWDIR}/klg_router_functions.php
SUB_FILES+= pkg-message
OPTIONS_DEFINE= SSH2
OPTIONS_DEFAULT= SSH2
SSH2_DESC= SSH2 support for router access
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MSSH2}
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/ssh2.so:security/pecl-ssh2@${PHP_FLAVOR}
.endif
do-install:
${MKDIR} ${STAGEDIR}/${WWWDIR} ${STAGEDIR}${DATADIR}
${CP} ${WRKSRC}/CREDITS ${WRKSRC}/ChangeLog ${WRKSRC}/klg_README.txt \
${WRKSRC}/klg_schema.sql ${STAGEDIR}${DATADIR}
${CP} ${WRKSRC}/klg.php ${WRKSRC}/klg_router_functions.php ${STAGEDIR}/${WWWDIR}
${CP} ${WRKSRC}/klg_config.php ${STAGEDIR}/${WWWDIR}/klg_config.php.sample
${CP} ${WRKSRC}/klg_template.html ${STAGEDIR}/${WWWDIR}/klg_template.html.sample
.include <bsd.port.post.mk>