# New ports collection makefile for:	webmin
# Version required:	0.64
# Date created:		Do  19 Nov 1998 21:13:55 CET
# Whom:			Andreas Klemm <andreas@klemm.gtn.com>
#
# $Id: Makefile,v 1.3 1998/11/19 21:59:54 andreas Exp $
#

DISTNAME=	webmin-0.64
CATEGORIES=	sysutils
MASTER_SITES=	http://www.webmin.com/webmin/download/

MAINTAINER=	andreas@FreeBSD.ORG

NO_BUILD=	yes
IS_INTERACTIVE=	yes
USE_PERL5=	yes

pre-extract:
	@if [ -x ${PREFIX}/sbin/httpd ]; then \
	echo Good ! You seem to have apache webserver installed ...; \
	else \
	echo You need to install one of the different apache webservers; \
	echo Best would be apache13-modssl or apache13-php3 that can be; \
	echo configured to use modssl for better security as well; \
	exit 1; \
	fi

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

.include <bsd.port.mk>
