pkgsrc/sysutils/webmin/wbm.mk
mef d14e2b9c57 Updated sysutils/webmin and wbm-* from 1.600 to 1.831
--------------------------------------
---- Changes since 1.590 ----
The titles for existing clone modules can now be changed on the Module
Titles page.

---- Changes since 1.610 ----
- Added a page for viewing and running Webmin scheduled functions.
- Added a section to the Sending Email page to verify that the
  configured mail server settings work.

---- Changes since 1.620 ----
Added a setting to the Web Server Options page to control if redirects
use just a path, or the full URL.

---- Changes since 1.640 ----
Actions on the Webmin Scheduled Functions page can now be clicked on
to change the time the function runs at.

---- Changes since 1.650 ----
Added an SSL option to use only ciphers with perfect forward secrecy.
Added support for two-factor authentication using Authy or Google Authenticator.

---- Changes since 1.660 ----
Updated the UI on several pages to use the standard Webmin library,
for a more consistent look.

---- Changes since 1.730 ----
Added an option to use an SSL connection when Webmin sends email, for
connecting to remote mail servers like Gmail that don't allow
unencrypted SMTP.

---- Changes since 1.770 ----
An SSL certificate can now be requested from Let's Encrypt using a new
tab on the SSL Encryption page.

---- Changes since 1.780 ----
Added an option for automatically renewing Let's Encrypt certificates.
If the Let's Encrypt client is not installed, Webmin will use its own
built-in client code to request a certificate.

---- Changes since 1.800 ----
Added an option to the logging page for sending Webmin action log
messages via email.

---- Changes since 1.810 ----
The Let's Encrypt key size can now be customized.
When Perfect Forward Secrecy ciphers are selected, the required DH
params file is now created and used by Webmin.
2017-02-01 13:00:41 +00:00

98 lines
3 KiB
Makefile

# $NetBSD: wbm.mk,v 1.13 2017/02/01 13:00:44 mef Exp $
#
# Makefile fragment for Webmin modules
#
# Then following variables may be set prior to including this file:
#
# WBM_NAME Module name.
#
# WBM_STD_MODULE if "YES", then this package provided as standard
# module. defaults to "YES".
#
# WBM_MOD_REV Updated revision number since the each release.
# Updated modules are taken from following URL:
# http://www.webmin.com/updates.html
#
# WBM_DEPEND_MODULES Depending webmin modules.
#
LICENSE= modified-bsd
.include "version.mk"
WBM_STD_MODULE?=YES
.if defined(WBM_MOD_REV) && !empty(WBM_MOD_REV) || !empty(WBM_STD_MODULE:M[Nn][Oo])
PKGNAME?= wbm-${WBM_NAME}-${WBM_VERSION:S/0$/${WBM_MOD_REV}/}
DISTNAME?= ${WBM_NAME}-${WBM_VERSION}-${WBM_MOD_REV}
MASTER_SITES?= http://www.webmin.com/updates/
EXTRACT_SUFX?= .wbm.gz
EXTRACT_OPTS+= -f tar
WRKSRC?= ${WRKDIR}
WBMSRC= ${WRKDIR}/${WBM_NAME}
.else
PKGNAME= wbm-${WBM_NAME}-${WBM_VERSION}
DISTNAME= webmin-${WBM_VERSION}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=webadmin/}
WBMSRC= ${WRKSRC}/${WBM_NAME}
EXTRACT_ELEMENTS=${DISTNAME}/${WBM_NAME}
.endif
CATEGORIES+= sysutils www
MAINTAINER?= pkgsrc-users@NetBSD.org
HOMEPAGE?= http://www.webmin.com/standard.html
USE_TOOLS+= perl:run perl
DEPENDS+= webmin>=${WBM_VERSION}:../../sysutils/webmin
.for m in ${WBM_DEPEND_MODULES}
DEPENDS+= wbm-${m}>=${WBM_VERSION}:../../sysutils/wbm-${m}
.endfor
WEBMIN_DIR= ${LOCALBASE}/share/webmin
WEBMIN_EGDIR= ${LOCALBASE}/share/examples/webmin
WEBMIN_VARDIR= ${VARBASE}/webmin
WBM_DIR= ${PREFIX}/share/webmin
WBM_EGDIR= ${PREFIX}/share/examples/webmin
PKG_SYSCONFSUBDIR= webmin
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/${WBM_NAME} \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
CONF_FILES_PERMS+= ${WBM_EGDIR}/${WBM_NAME}/config \
${PKG_SYSCONFDIR}/${WBM_NAME}/config \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0600
FILES_SUBST+= WBM_NAME=${WBM_NAME:Q}
FILES_SUBST+= WEBMIN_DIR=${WEBMIN_DIR:Q}
FILES_SUBST+= WEBMIN_VARDIR=${WEBMIN_VARDIR:Q}
BUILD_DEFS+= VARBASE
INSTALL_TEMPLATES+= ${PKGSRCDIR}/sysutils/webmin/files/wbm-install.tmpl
DEINSTALL_TEMPLATES+= ${PKGSRCDIR}/sysutils/webmin/files/wbm-deinstall.tmpl
# WBM_NAME is the name of the module directory
WBM_NAME?= ${DISTNAME}
WEBMIN_OSTYPE_cmd= ${AWK} '/^os_type=/ {sub("os_type=",""); print}' \
${WEBMIN_EGDIR}/config
WEBMIN_OSVERSION_cmd= ${AWK} '/^os_version=/ {sub("os_version=",""); print}' \
${WEBMIN_EGDIR}/config
.PHONY: wbm-configure wbm-build wbm-install
wbm-configure:
${FIND} ${WBMSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
wbm-build:
${FIND} ${WBMSRC} -name '*.cgi' -print -o -name '*.pl' -print | \
${PERL5} ${WEBMIN_DIR}/perlpath.pl ${PERL5} -
INSTALLATION_DIRS+= ${WBM_DIR} ${WBM_EGDIR}
wbm-install:
${CP} -R ${WBMSRC} ${DESTDIR}${WBM_DIR}/.
${PERL5} ${WEBMIN_DIR}/copyconfig.pl \
${WEBMIN_OSTYPE_cmd:sh:Q} ${WEBMIN_OSVERSION_cmd:sh:Q:S/^$/''/}\
${DESTDIR}${WBM_DIR} ${DESTDIR}${WBM_EGDIR} ${WBM_NAME}
do-configure: wbm-configure
do-build: wbm-build
do-install: wbm-install