1 # New ports collection makefile for: xgate
2 # Date created: 2005/10/22
3 # Whom: nork@FreeBSD.org
5 # $FreeBSD: ports/japanese/xgate/Makefile,v 1.16 2012/11/17 05:58:41 svnexp Exp $
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 .if ${OSVERSION} < 800000
50 EXTRACT_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
53 APP_HOME!= ${MAKE} -C ${PORTSDIR}/www/tomcat6 -VAPP_HOME
55 CNFLSTS= account/admin.ndt \
61 conf/admin_group.ldif \
62 conf/createuser.conf \
63 conf/device_match.conf \
75 @${MKDIR} ${WRKSRC}/xgate
76 .if ${OSVERSION} < 800000
77 @${UNZIP_CMD} ${WRKSRC}/xgate.war -d ${WRKSRC}/xgate
79 @${TAR} xvf ${WRKSRC}/xgate.war -C ${WRKSRC}/xgate
81 .for conf in ${CNFLSTS}
82 @cd ${WRKSRC}/xgate/WEB-INF && ${MV} ${conf} ${conf}-dist
86 ${FIND} ${WRKSRC} -name \*.orig -print0 | ${XARGS} -0 ${RM}
89 ${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} /var/log/xgate
90 ${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${APP_HOME}/webapps/${PORTNAME}
91 @cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_SHARE} \* ${APP_HOME}/webapps/${PORTNAME}
92 .for conf in ${CNFLSTS}
93 @cd ${APP_HOME}/webapps/xgate/WEB-INF && \
94 [ ! -f ${conf} ] && ${CP} -p ${conf}-dist ${conf} || ${TRUE}
96 .if !defined(NOPORTDOCS)
98 .for docf in ${PORTDOCS}
99 @${INSTALL_DATA} ${WRKSRC}/docs/${docf} ${DOCSDIR}
103 .include <bsd.port.post.mk>