blob: ebb149170506905f2eba38560dd391113d340dfa (
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
|
# $NetBSD: Makefile,v 1.3 2011/12/06 12:41:02 ryoon Exp $
#
DISTNAME= aipo6020ja_linux32
PKGNAME= aipo-6.02
PKGREVISION= 2
CATEGORIES= www
MASTER_SITES= http://aipo.googlecode.com/files/
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://www.aipo.com/
COMMENT= Web-based groupware that supports Japanese interface
LICENSE= gnu-agpl-v3
PKG_DESTDIR_SUPPORT= user-destdir
USE_JAVA= run
USE_JAVA2= 6
NO_BUILD= yes
WRKSRC= ${WRKDIR}
USE_LANGUAGES= # none
USE_TOOLS+= gunzip pax tar
AIPO_DIR= share/aipo
TOMCAT_DIR= share/tomcat
INSTALLATION_DIRS= share/tomcat/lib
SUBST_CLASSES+= username
SUBST_STAGE.username= pre-configure
SUBST_MESSAGE.username= Set default username and password
SUBST_FILES.username= aipo/src/webapps/aipo/WEB-INF/datasource/dbcp-org001.properties
SUBST_FILES.username+= aipo/src/webapps/ROOT/WEB-INF/datasource/dbcp-org001.properties
SUBST_SED.username= -e 's,cayenne.dbcp.username=postgres,cayenne.dbcp.username=aipo_pgsql,'
SUBST_SED.username+= -e 's,cayenne.dbcp.password=aipo,cayenne.dbcp.password=aipo_db_password,'
post-extract:
cd ${WRKSRC} && ${GUNZIP_CMD} -c aipo6020.tar.gz | ${TAR} -xpf -
do-install:
cd ${WRKSRC}/aipo/src/webapps && \
pax -rw aipo ROOT ${DESTDIR}${PREFIX}/${AIPO_DIR}/webapps
cd ${WRKSRC}/aipo/src/initdata && \
pax -rw psml files mail sql \
${DESTDIR}${PREFIX}/${AIPO_DIR}/webapps/aipo/WEB-INF
${INSTALL_DATA} ${WRKSRC}/aipo/src/postgresql-8.4-702.jdbc4.jar \
${DESTDIR}${PREFIX}/${TOMCAT_DIR}/lib
${INSTALL_DATA} ${WRKSRC}/aipo/src/tools.jar \
${DESTDIR}${PREFIX}/${TOMCAT_DIR}/lib
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|