1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/sysutils/virtualmin/Makefile
2014-11-02 10:18:12 +00:00

32 lines
955 B
Makefile

# $FreeBSD$
PORTNAME= virtualmin
PORTVERSION= 4.12
CATEGORIES= sysutils
MASTER_SITES= http://download.webmin.com/download/virtualmin/
DISTNAME= virtual-server-${PORTVERSION}.gpl
EXTRACT_SUFX= .wbm.gz
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Virtual hosting management system based on webmin
RUN_DEPENDS= ${LOCALBASE}/lib/webmin/webmin-init:${PORTSDIR}/sysutils/webmin
NO_BUILD= yes
WRKSRC= ${WRKDIR}/virtual-server
post-extract:
@${RM} -r ${WRKSRC}/images/.xvpics
@${FIND} ${WRKSRC} -name "*.swp" -delete
@${FIND} ${WRKSRC} -name "*.cgi" | ${XARGS} ${REINPLACE_CMD} -e "s@/usr/local/bin/perl@${PERL}@"
@${FIND} ${WRKSRC} -name "*.bak" -delete
@${FIND} ${WRKSRC} -name "*.cgi" | ${XARGS} ${CHMOD} 755
@${FIND} ${WRKSRC} -type d -empty | ${XARGS} ${RMDIR}
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/webmin
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/webmin/virtual-server
${CP} -r ${WRKSRC} ${STAGEDIR}${PREFIX}/lib/webmin
.include <bsd.port.mk>