diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-02-27 22:10:32 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-02-27 22:10:32 +0000 |
commit | afc00832c2b24c12b528e8c010f7ea31f1d7f075 (patch) | |
tree | 1f626accd0a2504374c78ef55f5bcc165eed36f9 /sysutils | |
parent | 8685aed451d7717ab96a255dfd69ed9a4d158727 (diff) | |
download | FreeBSD-ports-afc00832c2b24c12b528e8c010f7ea31f1d7f075.zip FreeBSD-ports-afc00832c2b24c12b528e8c010f7ea31f1d7f075.tar.gz |
Don't use IS_INTERACTIVE, be "make package" friendly.
This change allows webmin to be installed/upgraded using binary packages
only. A new pkg-message file will tell the user what to do to configure
webmin for the first time. The procedure is the same after both "make
install" and "pkg_add".
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/webmin/Makefile | 3 | ||||
-rw-r--r-- | sysutils/webmin/pkg-message | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sysutils/webmin/Makefile b/sysutils/webmin/Makefile index b7554f2..0792424 100644 --- a/sysutils/webmin/Makefile +++ b/sysutils/webmin/Makefile @@ -20,7 +20,6 @@ MAINTAINER= olgeni@FreeBSD.org 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 USE_PERL5= yes SCRIPTS_ENV+= WRKDIR="${WRKDIR}" @@ -68,7 +67,6 @@ do-install: @${CP} -r ${WRKSRC}/* ${PREFIX}/lib/webmin @cd ${PREFIX}/lib/webmin && find . -name "*.orig" -print \ | xargs ${RM} - @cd ${PREFIX}/lib/webmin && ./setup.sh @${CP} ${WRKDIR}/webmin.sh ${PREFIX}/etc/rc.d/webmin.sh @${CHMOD} 554 ${PREFIX}/etc/rc.d/webmin.sh @@ -76,5 +74,6 @@ post-install: @${CP} ${PLIST} ${TMPPLIST} @find ${PREFIX}/lib/webmin -type f | ${SED} -e "s@${PREFIX}/@@" | sort >> ${TMPPLIST} @find ${PREFIX}/lib/webmin -type d | ${SED} -e "s@${PREFIX}/@@" | ${PERL} -e 'print (join ("\n", reverse map ("\@dirrm " . substr ($$_, 0, -1), <STDIN>)) . "\n");' >> ${TMPPLIST} + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/sysutils/webmin/pkg-message b/sysutils/webmin/pkg-message new file mode 100644 index 0000000..14115c9 --- /dev/null +++ b/sysutils/webmin/pkg-message @@ -0,0 +1,8 @@ +================================== + +To configure webmin you should run +the following command as root: + + /usr/local/lib/webmin/setup.sh + +================================== |