1 # New ports collection makefile for: xgate
2 # Date created: 2005/10/22
3 # Whom: nork@FreeBSD.org
5 # $FreeBSD: japanese/xgate/Makefile 315474 2013-03-28 15:51:16Z eadler $
9 CATEGORIES= japanese mail www java
10 MASTER_SITES= http://www.orangesoft.co.jp/index.php/download_file/-/192/
11 DISTNAME= ${PORTNAME}pkg${PORTVERSION}
14 MAINTAINER= ports@FreeBSD.org
15 COMMENT= xGate webmail system implemented by Servlet over IMAP4/POP3
17 RUN_DEPENDS= ${APP_HOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
25 PLIST_SUB= T=${APP_HOME:S|^${LOCALBASE}/||} \
26 WWWUID=${WWWUID} WWWGID=${WWWGID}
28 PORTDOCS= AdminGuide.pdf \
29 BasicPkgInstallGuide.pdf \
30 ConfigSetupGuide.pdf \
31 LDAPSchema_V35_37.xls \
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 \
45 RESTRICTED= Commercial license
47 .include <bsd.port.pre.mk>
49 APP_HOME!= ${MAKE} -C ${PORTSDIR}/www/tomcat6 -VAPP_HOME
51 CNFLSTS= account/admin.ndt \
57 conf/admin_group.ldif \
58 conf/createuser.conf \
59 conf/device_match.conf \
71 @${MKDIR} ${WRKSRC}/xgate
72 .if ${OSVERSION} < 800000
73 @${UNZIP_CMD} ${WRKSRC}/xgate.war -d ${WRKSRC}/xgate
75 @${TAR} xvf ${WRKSRC}/xgate.war -C ${WRKSRC}/xgate
77 .for conf in ${CNFLSTS}
78 @cd ${WRKSRC}/xgate/WEB-INF && ${MV} ${conf} ${conf}-dist
82 ${FIND} ${WRKSRC} -name \*.orig -print0 | ${XARGS} -0 ${RM}
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}
92 .if !defined(NOPORTDOCS)
94 .for docf in ${PORTDOCS}
95 @${INSTALL_DATA} ${WRKSRC}/docs/${docf} ${DOCSDIR}
99 .include <bsd.port.post.mk>