1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/sysutils/webmin/files/patch-aa
Andreas Klemm 01d6f0ad11 Upgrade webmin port from 0.80 to 0.82
Obtained patches from James (see PR)
Further enhancements from me:
- make port portlint clean
- remove webmins behaviour, to write its startup code to /etc/rc.local
  a) this behaviour is discouraged now in FreeBSD
  b) it blindly appended the startup code at the end of rc.local ...
     my last line is exit 0, so startup code never has been executed.
- wrote simple startup script that will be installed in our usual place.
  did that PREFIX-clean(tm)
- added FreeBSD 4.1 and 4.2 to the os-list ...

PR:		22312
Submitted by:	"James E. Housley" <jeh@FreeBSD.org>
2000-11-01 13:09:35 +00:00

61 lines
1.8 KiB
Plaintext

--- setup.sh.orig Mon Dec 13 12:57:41 1999
+++ setup.sh Tue Dec 14 10:20:32 1999
@@ -33,12 +33,12 @@
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]: "
+printf "Config file directory [!!PREFIX!!/etc/webmin]: "
if [ "$config_dir" = "" ]; then
read config_dir
fi
if [ "$config_dir" = "" ]; then
- config_dir=/etc/webmin
+ config_dir=!!PREFIX!!/etc/webmin
fi
abspath=`echo $config_dir | grep "^/"`
if [ "$abspath" = "" ]; then
@@ -106,12 +106,12 @@
fi
else
# 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
@@ -135,7 +135,9 @@
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 !!PERL5!! ]; then
+ perldef=!!PERL5!!
+ elif [ -x /usr/bin/perl ]; then
perldef=/usr/bin/perl
elif [ -x /usr/local/bin/perl ]; then
perldef=/usr/local/bin/perl
@@ -313,11 +315,11 @@
initsupp=`grep "^os_support=" $wadir/init/module.info | sed -e 's/os_support=//g' | grep $os_type`
atboot=0
if [ "$initsupp" != "" ]; then
- printf "Start Webmin at boot time (y/n): "
- read atbootyn
- if [ "$atbootyn" = "y" -o "$atbootyn" = "Y" ]; then
- atboot=1
- fi
+ # printf "Start Webmin at boot time (y/n): "
+ # read atbootyn
+ # if [ "$atbootyn" = "y" -o "$atbootyn" = "Y" ]; then
+ # atboot=1
+ # fi
else
echo "Webmin does not support being started at boot time on your system."
fi