diff --git a/sysutils/webmin/Makefile b/sysutils/webmin/Makefile index 7609a3b70732..65487f0e1419 100644 --- a/sysutils/webmin/Makefile +++ b/sysutils/webmin/Makefile @@ -1,68 +1,68 @@ # Created by: Andreas Klemm PORTNAME= webmin -PORTVERSION= 1.994 +PORTVERSION= 1.996 PORTREVISION= 0 CATEGORIES= sysutils MASTER_SITES= http://download.webmin.com/updates/:up \ SF/webadmin/${PORTNAME}/${PORTVERSION}:sf DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:sf \ ${WEBMIN_MODULES:S/gz$/gz:up/} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= olgeni@FreeBSD.org COMMENT= Web-based interface for system administration for Unix LICENSE= BSD3CLAUSE RUN_DEPENDS= p5-Authen-PAM>=0:security/p5-Authen-PAM \ p5-IO-Tty>=0:devel/p5-IO-Tty \ p5-Net-SSLeay>=0:security/p5-Net-SSLeay USES= cpe perl5 python shebangfix USE_PYTHON= py3kplist USE_RC_SUBR= webmin SUB_LIST= PERL=${PERL} SUB_FILES= pkg-message SHEBANG_FILES= ${WRKSRC}/ajaxterm/ajaxterm/ajaxterm.py \ ${WRKSRC}/ajaxterm/ajaxterm/configure \ ${WRKSRC}/webmin/acme_tiny.py WEBMIN_MODULES= post-extract: @${RM} ${WRKSRC}/mount/freebsd-mounts-? \ ${WRKSRC}/webmin-gentoo-init @if [ "${WEBMIN_MODULES}" != "" ]; then \ for webmin_module in ${WEBMIN_MODULES}; do \ ${ECHO} "===> Unpacking updated module: $${webmin_module}"; \ ${TAR} --unlink -xzf ${DISTDIR}/$${webmin_module} -C ${WRKSRC}; \ done; \ fi @${RM} -r -f ${WRKSRC}/acl/Authen-SolarisRBAC-0.1 post-patch: @${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" ${WRKSRC}/setup.sh @${FIND} ${WRKSRC} \( -type f -and \( -name config-freebsd\* -or -name config \) \) \ -exec ${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" {} \; \ -exec ${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" {} \; @${FIND} ${WRKSRC} \( -name "*.cgi" -or -name "*.pl" -or -name "*.sh" \) -exec \ ${REINPLACE_CMD} -e "s@%%PERL%%@${PERL}@g; s@#!/usr/bin/perl@#!${PERL}@; s@#!/usr/local/bin/perl@#!${PERL}@" {} \; @${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" -or -name "*.pyc" \) -delete @${PRINTF} "g/^FreeBSD/m0\nwq\n" | ex ${WRKSRC}/os_list.txt do-build: @${PYTHON_CMD} -mcompileall ${WRKSRC}/ajaxterm/ajaxterm/ @${PYTHON_CMD} -O -mcompileall ${WRKSRC}/ajaxterm/ajaxterm/ @${CC} ${CFLAGS} -o ${WRKSRC}/mount/freebsd-mounts-7 ${WRKSRC}/mount/freebsd-mounts-7.c @${STRIP_CMD} ${WRKSRC}/mount/freebsd-mounts-7 do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/webmin ${CP} -r ${WRKSRC}/* ${STAGEDIR}${PREFIX}/lib/webmin .include diff --git a/sysutils/webmin/distinfo b/sysutils/webmin/distinfo index 658d35132ded..c36a71c56026 100644 --- a/sysutils/webmin/distinfo +++ b/sysutils/webmin/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1653891865 -SHA256 (webmin-1.994.tar.gz) = aee5ae6d73d6fb4904f03215efa8aa485e27fbf65b13aca726a8ab9723fea0ee -SIZE (webmin-1.994.tar.gz) = 44691491 +TIMESTAMP = 1657104952 +SHA256 (webmin-1.996.tar.gz) = 9d60b449f3cd439acc513c4293274d26e6ca1fb6dbeeb9eca538f9d820072c53 +SIZE (webmin-1.996.tar.gz) = 44725939 diff --git a/sysutils/webmin/files/patch-setup.sh b/sysutils/webmin/files/patch-setup.sh index 293144685590..17804bd1a726 100644 --- a/sysutils/webmin/files/patch-setup.sh +++ b/sysutils/webmin/files/patch-setup.sh @@ -1,97 +1,97 @@ ---- setup.sh.orig 2022-05-23 20:33:54 UTC +--- setup.sh.orig 2022-07-04 19:10:33 UTC +++ setup.sh -@@ -103,19 +103,7 @@ echo "" +@@ -105,19 +105,7 @@ echo "Webmin uses separate directories for configurati echo "Unless you want to run multiple versions of Webmin at the same time" echo "you can just accept the defaults." echo "" -printf "Config file directory [/etc/webmin]: " -if [ "$config_dir" = "" ]; then - read config_dir -fi -if [ "$config_dir" = "" ]; then - config_dir=/etc/webmin -fi -abspath=`echo $config_dir | grep "^/"` -if [ "$abspath" = "" ]; then - echo "Config directory must be an absolute path" - echo "" - exit 2 -fi +config_dir=/usr/local/etc/webmin if [ ! -d $config_dir ]; then mkdir $config_dir; if [ $? != 0 ]; then -@@ -210,12 +198,12 @@ else +@@ -212,12 +200,12 @@ else fi # Ask for log directory - printf "Log file directory [/var/webmin]: " + printf "Log file directory [/var/log/webmin]: " if [ "$var_dir" = "" ]; then read var_dir fi if [ "$var_dir" = "" ]; then - var_dir=/var/webmin + var_dir=/var/log/webmin fi abspath=`echo $var_dir | grep "^/"` if [ "$abspath" = "" ]; then -@@ -243,7 +231,9 @@ else +@@ -245,7 +233,9 @@ else echo "Webmin is written entirely in Perl. Please enter the full path to the" echo "Perl 5 interpreter on your system." echo "" - if [ -x /usr/bin/perl ]; then + if [ -x %%PERL%% ]; then + perldef=%%PERL%% + elif [ -x /usr/bin/perl ]; then perldef=/usr/bin/perl elif [ -x /usr/local/bin/perl ]; then perldef=/usr/local/bin/perl -@@ -444,6 +434,7 @@ else +@@ -446,6 +436,7 @@ else fi fi + atboot=0 # Ask whether to run at boot time if [ "$atboot" = "" ]; then if echo "$os_type" | grep -q "\-linux$"; then -@@ -595,6 +586,7 @@ fi +@@ -607,6 +598,7 @@ EOF fi fi +noperlpath="yes" if [ "$noperlpath" = "" ]; then echo "Inserting path to perl into scripts.." (find "$wadir" -name '*.cgi' -print ; find "$wadir" -name '*.pl' -print) | $perl "$wadir/perlpath.pl" $perl - -@@ -607,7 +599,6 @@ echo "#!/bin/sh" >>$config_dir/.start-init +@@ -618,7 +610,6 @@ fi echo "Creating start and stop init scripts.." # Start main - echo "#!/bin/sh" >>$config_dir/.start-init + echo "#!/bin/sh" >$config_dir/.start-init -echo "echo Starting Webmin server in $wadir" >>$config_dir/.start-init echo "trap '' 1" >>$config_dir/.start-init echo "LANG=" >>$config_dir/.start-init echo "export LANG" >>$config_dir/.start-init -@@ -827,6 +818,7 @@ fi +@@ -849,6 +840,7 @@ if [ "$?" != "0" ]; then echo passdelay=1 >> $config_dir/miniserv.conf fi +nouninstall="yes" if [ "$nouninstall" = "" ]; then echo "Creating uninstall script $config_dir/uninstall.sh .." cat >$config_dir/uninstall.sh <