Tweak japanese/xgate version 3.7pl6
[dports.git] / japanese / xgate / Makefile
1 # New ports collection makefile for:    xgate
2 # Date created:                         2005/10/22
3 # Whom:                                 nork@FreeBSD.org
4 #
5 # $FreeBSD: japanese/xgate/Makefile 315474 2013-03-28 15:51:16Z eadler $
6
7 PORTNAME=       xgate
8 PORTVERSION=    3.7pl6
9 CATEGORIES=     japanese mail www java
10 MASTER_SITES=   http://www.orangesoft.co.jp/index.php/download_file/-/192/
11 DISTNAME=       ${PORTNAME}pkg${PORTVERSION}
12 EXTRACT_SUFX=   .tgz
13
14 MAINTAINER=     ports@FreeBSD.org
15 COMMENT=        xGate webmail system implemented by Servlet over IMAP4/POP3
16
17 RUN_DEPENDS=    ${APP_HOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
18
19 NO_BUILD=       yes
20 USE_JAVA=       yes
21 JAVA_VERSION=   1.6+
22 SHAREOWN=       www
23 SHAREGRP=       www
24
25 PLIST_SUB=      T=${APP_HOME:S|^${LOCALBASE}/||} \
26                 WWWUID=${WWWUID} WWWGID=${WWWGID}
27
28 PORTDOCS=       AdminGuide.pdf \
29                 BasicPkgInstallGuide.pdf \
30                 ConfigSetupGuide.pdf \
31                 LDAPSchema_V35_37.xls \
32                 PCUserGuide.pdf \
33                 ReleaseNote_V3.5.2.pdf \
34                 ReleaseNote_V3.5.2PL1.pdf \
35                 ReleaseNote_V3.5.2PL2.pdf \
36                 ReleaseNote_V3.5.2PL3_3.7.pdf \
37                 ReleaseNote_V3.5.2PL4_3.7PL1.pdf \
38                 ReleaseNote_V3.5.2PL5_3.7PL2.pdf \
39                 ReleaseNote_V3.5.2PL6_3.7PL3.pdf \
40                 ReleaseNote_V3.5.2PL7_3.7PL4.pdf \
41                 ReleaseNote_V3.5.2PL8_3.7PL5.pdf \
42                 ReleaseNote_V3.5.2PL9_3.7PL6.pdf \
43                 UserGuide.pdf
44
45 RESTRICTED=     Commercial license
46
47 .include <bsd.port.pre.mk>
48
49 APP_HOME!=      ${MAKE} -C ${PORTSDIR}/www/tomcat6 -VAPP_HOME
50
51 CNFLSTS=        account/admin.ndt       \
52                 account/license.dat     \
53                 conf/access.dat         \
54                 conf/address.data       \
55                 conf/address.map        \
56                 conf/admin.ldif         \
57                 conf/admin_group.ldif   \
58                 conf/createuser.conf    \
59                 conf/device_match.conf  \
60                 conf/entry.data         \
61                 conf/extra.types        \
62                 conf/group.data         \
63                 conf/group.map          \
64                 conf/ldap.map           \
65                 conf/log.conf           \
66                 conf/terminal.dat       \
67                 conf/user.data          \
68                 conf/xgate.conf
69
70 post-extract:
71         @${MKDIR} ${WRKSRC}/xgate
72 .if ${OSVERSION} < 800000
73         @${UNZIP_CMD} ${WRKSRC}/xgate.war -d ${WRKSRC}/xgate
74 .else
75         @${TAR} xvf ${WRKSRC}/xgate.war -C ${WRKSRC}/xgate
76 .endif
77 .for conf in ${CNFLSTS}
78         @cd ${WRKSRC}/xgate/WEB-INF && ${MV} ${conf} ${conf}-dist
79 .endfor
80
81 post-patch:
82         ${FIND} ${WRKSRC} -name \*.orig -print0 | ${XARGS} -0 ${RM}
83
84 do-install:
85         ${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} /var/log/xgate
86         ${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${APP_HOME}/webapps/${PORTNAME}
87         @cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_SHARE} \* ${APP_HOME}/webapps/${PORTNAME}
88 .for conf in ${CNFLSTS}
89         @cd ${APP_HOME}/webapps/xgate/WEB-INF && \
90                 [ ! -f ${conf} ] && ${CP} -p ${conf}-dist ${conf} || ${TRUE}
91 .endfor
92 .if !defined(NOPORTDOCS)
93         @${MKDIR} ${DOCSDIR}
94 .for docf in ${PORTDOCS}
95         @${INSTALL_DATA} ${WRKSRC}/docs/${docf} ${DOCSDIR}
96 .endfor
97 .endif
98
99 .include <bsd.port.post.mk>