# $NetBSD: Makefile,v 1.7 2012/10/01 11:50:04 ryoon Exp $ # DISTNAME= aipo7010ja_linux32 PKGNAME= aipo-7.0.1 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}/aipo7010ja_linux USE_LANGUAGES= # none USE_TOOLS+= gunzip pax tar AIPO_DIR= share/aipo TOMCAT_DIR= share/tomcat INSTALLATION_DIRS= share/tomcat/lib ${AIPO_DIR}/webapps/aipo/WEB-INF 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 aipo7010.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"