48 lines
1.7 KiB
Makefile
48 lines
1.7 KiB
Makefile
# New ports collection makefile for: webmin
|
|
# Date created: Do 19 Nov 1998 21:13:55 CET
|
|
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= webmin
|
|
PORTVERSION= 0.84
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.webmin.com/webmin/download/
|
|
|
|
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
|
|
|
|
post-patch:
|
|
${CP} ${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.0 \
|
|
${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.1
|
|
${CP} ${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.0 \
|
|
${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.2
|
|
${CP} ${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.0 \
|
|
${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.3
|
|
${CP} ${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.0 \
|
|
${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.4
|
|
${CP} ${WRKSRC}/postfix/config ${WRKSRC}/postfix/config.sed
|
|
${SED} -e "s@/usr/sbin/postfix@${LOCALBASE}/sbin/postfix@" \
|
|
-e "s@/usr/sbin/postconf@${LOCALBASE}/sbin/postconf@" \
|
|
-e "s@/etc/postfix/main.cf@${LOCALBASE}/etc/postfix/main.cf@" \
|
|
-e "s@/usr/sbin/postalias@${LOCALBASE}/sbin/postalias@" \
|
|
-e "s@/usr/sbin/postmap@${LOCALBASE}/sbin/postmap@" \
|
|
${WRKSRC}/postfix/config.sed > ${WRKSRC}/postfix/config
|
|
${RM} ${WRKSRC}/postfix/config.sed
|
|
|
|
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
|
|
@${MV} /tmp/webmin.sh ${PREFIX}/etc/rc.d/webmin.sh
|
|
@${CHMOD} 554 ${PREFIX}/etc/rc.d/webmin.sh
|
|
|
|
.include <bsd.port.mk>
|