aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/virtualmin/Makefile
blob: a7b1691e36897fa1ec1b30822fd12e1d0775bfb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# New ports collection makefile for:    virtualmin
# Date created:     Fri Oct 24 20:51:00 CEST 2003
# Whom:         olgeni@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   virtualmin
PORTVERSION=    1.51
CATEGORIES= sysutils
MASTER_SITES=   http://www.webmin.com/download/modules/
DISTNAME=   virtual-server-${PORTVERSION}
EXTRACT_SUFX=   .wbm.gz

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    A virtual hosting management system based on webmin

RUN_DEPENDS=    ${LOCALBASE}/lib/webmin/webmin-init:${PORTSDIR}/sysutils/webmin

NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/virtual-server
USE_REINPLACE=  yes

post-extract:
    @${FIND} ${WRKSRC} -name .xvpics | ${XARGS} ${RM} -r
    @${FIND} ${WRKSRC} -name *.swp | ${XARGS} ${RM}
    @${FIND} ${WRKSRC} -name *.cgi | ${XARGS} ${REINPLACE_CMD} -e "s@/usr/local/bin/perl@${PERL}@"
    @${FIND} ${WRKSRC} -name *.bak | ${XARGS} ${RM}

do-install:
    @${MKDIR} ${PREFIX}/lib/webmin
    @${MKDIR} ${PREFIX}/etc/webmin/virtual-server
    @${CP} -r ${WRKSRC} ${PREFIX}/lib/webmin

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>