1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00

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>
This commit is contained in:
Andreas Klemm 2000-11-01 13:09:35 +00:00
parent 0dec587e0d
commit 01d6f0ad11
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34544
8 changed files with 832 additions and 15 deletions

View File

@ -6,13 +6,13 @@
#
PORTNAME= webmin
PORTVERSION= 0.80
PORTVERSION= 0.82
CATEGORIES= sysutils
MASTER_SITES= http://www.webmin.com/webmin/download/
MAINTAINER= andreas@FreeBSD.org
BUILD_DEPENDS= ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay
NO_BUILD= yes
IS_INTERACTIVE= yes
@ -29,9 +29,11 @@ post-patch:
${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.4
do-install:
${MKDIR} ${PREFIX}/lib/webmin
${CP} -r ${WRKSRC}/* ${PREFIX}/lib/webmin
@cd ${PREFIX}/lib/webmin && find . -name "*.orig" -print | xargs ${RM}
@cd ${PREFIX}/lib/webmin && ./setup.sh
${MKDIR} ${LOCALBASE}/lib/webmin
${CP} -r ${WRKSRC}/* ${LOCALBASE}/lib/webmin
@cd ${LOCALBASE}/lib/webmin && find . -name "*.orig" -print \
| xargs ${RM}
@cd ${LOCALBASE}/lib/webmin && ./setup.sh
${MV} /tmp/webmin.sh ${LOCALBASE}/etc/rc.d/webmin.sh
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (webmin-0.80.tar.gz) = 0776985a4144552d45039b68e0b0a356
MD5 (webmin-0.82.tar.gz) = 79917588893ac82aeb995192c93ea9c5

View File

@ -41,3 +41,20 @@
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

View File

@ -0,0 +1,11 @@
--- os_list.txt.orig Wed Nov 1 13:30:46 2000
+++ os_list.txt Wed Nov 1 13:30:19 2000
@@ -74,6 +74,8 @@
FreeBSD 3.4 freebsd 3.4 $uname =~ /FreeBSD.*\s3\.4/i
FreeBSD 3.5 freebsd 3.5 $uname =~ /FreeBSD.*\s3\.5/i
FreeBSD 4.0 freebsd 4.0 $uname =~ /FreeBSD.*\s4\.0/i
+FreeBSD 4.1 freebsd 4.0 $uname =~ /FreeBSD.*\s4\.1/i
+FreeBSD 4.2 freebsd 4.0 $uname =~ /FreeBSD.*\s4\.2/i
FreeBSD 5.0 freebsd 5.0 $uname =~ /FreeBSD.*\s5\.0/i
OpenBSD 2.5 openbsd 2.5 $uname =~ /OpenBSD.*\s2\.5/i
OpenBSD 2.6 openbsd 2.6 $uname =~ /OpenBSD.*\s2\.6/i

View File

@ -0,0 +1,9 @@
#!/bin/sh
# $FreeBSD$
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
if [ -x !!PREFIX!!/etc/webmin/start ]; then
!!PREFIX!!/etc/webmin/start
fi
fi

View File

@ -0,0 +1,9 @@
#!/bin/sh
# $FreeBSD$
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
if [ -x !!PREFIX!!/etc/webmin/start ]; then
!!PREFIX!!/etc/webmin/start
fi
fi

File diff suppressed because it is too large Load Diff

View File

@ -10,4 +10,6 @@ fi
perl -pi -e "s=!!PERL5!!=$PERL5=" ${WRKSRC}/setup.sh
sed -e "s=!!PREFIX!!=$PREFIX=" < ${FILESDIR}/webmin.sh.sample > /tmp/webmin.sh
exit 0