blob: ec1c4f25e57d0653c82125d03d2d868f7a62fe6b (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: vexim
# Date created: 6 June 2005
# Whom: John Oxley <john@yoafrica.com>
#
# $FreeBSD$
PORTNAME= vexim
PORTVERSION= 2.2.1
PORTREVISION= 1
CATEGORIES= mail www
MASTER_SITES= http://silverwraith.com/vexim/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= sem@FreeBSD.org
COMMENT= A web interface for managing virtual domains for exim
RUN_DEPENDS= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
VEXIMDIR= www/${PORTNAME}
WRKSRC= ${WRKDIR}/vexim2
SUB_FILES= pkg-message
NO_BUILD= yes
USE_PHP= gettext session
OPTIONS= MYSQL "Use MySQL" On \
PGSQL "Use PostgreSQL" Off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL)
USE_MYSQL= yes
USE_PHP+= mysql
.endif
.if defined(WITH_PGSQL)
WITH_PGSQL= yes
USE_PHP+= pgsql
.endif
post-patch:
${FIND} ${WRKSRC} -name CVS -prune -exec ${RM} -r {} \;
do-install:
@${ECHO} "Installing in ${VEXIMDIR}"
${MKDIR} ${PREFIX}/${VEXIMDIR}
cd ${WRKSRC}/vexim && ${FIND} . \! -path '*.svn*' \
-type d -exec ${MKDIR} ${PREFIX}/${VEXIMDIR}/{} \; \
-o \! -path '*.svn*' -type f \
-exec ${INSTALL_DATA} {} ${PREFIX}/${VEXIMDIR}/{} \;
${MKDIR} ${DATADIR}
cd ${WRKSRC}/setup && ${FIND} . \! -path '*.svn*' \
-type d -exec ${MKDIR} ${DATADIR}/{} \; \
-o \! -path '*.svn*' -type f \
-exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${FIND} docs \! -path '*.svn*' \
-type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
-o \! -path '*.svn*' -type f \
-exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.for i in INSTALL LICENSE README TODO
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|