Tue Dec 6 12:41:03 2011 UTC ()
Fix typo in MESSAGE.
Bump PKGREVISION.


(ryoon)
diff -r1.2 -r1.3 pkgsrc/www/aipo/MESSAGE
diff -r1.2 -r1.3 pkgsrc/www/aipo/Makefile

cvs diff -r1.2 -r1.3 pkgsrc/www/aipo/Attic/MESSAGE (switch to unified diff)

--- pkgsrc/www/aipo/Attic/MESSAGE 2011/11/29 14:51:37 1.2
+++ pkgsrc/www/aipo/Attic/MESSAGE 2011/12/06 12:41:02 1.3
@@ -1,77 +1,77 @@ @@ -1,77 +1,77 @@
1=========================================================================== 1===========================================================================
2$NetBSD: MESSAGE,v 1.2 2011/11/29 14:51:37 ryoon Exp $ 2$NetBSD: MESSAGE,v 1.3 2011/12/06 12:41:02 ryoon Exp $
3 3
4To use aipo, you will need to perform the following steps. 4To use aipo, you will need to perform the following steps.
5 5
61. Install postgresq server, for example postgresql84-server, 61. Install postgresql server, for example postgresql84-server,
7 and enable it. 7 and enable it.
8 8
9 # cd databases/postgresql84-server 9 # cd databases/postgresql84-server
10 # make install 10 # make install
11 and follow MESSAGE in databases/postgresql84-server directory. 11 and follow MESSAGE in databases/postgresql84-server directory.
12 12
132. Install apache tomcat server, for example apache-tomcat7 132. Install apache tomcat server, for example apache-tomcat7
14 14
15 # cd www/apache-tomcat7 15 # cd www/apache-tomcat7
16 # make install 16 # make install
17 17
183. Start postgresql server, for example 183. Start postgresql server, for example
19 19
20 # ${RCD_SCRIPTS_DIR}/pgsql start 20 # ${RCD_SCRIPTS_DIR}/pgsql start
21 21
224. Add postgresql user, aipo_pgsql 224. Add postgresql user, aipo_pgsql
23 23
24 $ sudo -u pgsql createuser aipo_pgsql 24 $ sudo -u pgsql createuser aipo_pgsql
25 Shall the new role be a superuser? (y/n) y 25 Shall the new role be a superuser? (y/n) y
26 26
275. Set password to aipo_pgsql user 275. Set password to aipo_pgsql user
28 28
29 $ sudo -u pgsql psql template1 29 $ sudo -u pgsql psql template1
30 psql (8.4.9) 30 psql (8.4.9)
31 Type "help" for help. 31 Type "help" for help.
32 32
33 template1=# alter user aipo_pgsql with password 'aipo_db_password'; 33 template1=# alter user aipo_pgsql with password 'aipo_db_password';
34 ALTER ROLE 34 ALTER ROLE
35 template1=# \q 35 template1=# \q
36 36
376. Create database fot Aipo 376. Create database fot Aipo
38 38
39 $ sudo -u pgsql createdb org001 -O aipo_pgsql -U aipo_pgsql 39 $ sudo -u pgsql createdb org001 -O aipo_pgsql -U aipo_pgsql
40 40
417. Check created database 417. Check created database
42 42
43 $ sudo -u pgsql psql -l 43 $ sudo -u pgsql psql -l
44 List of databases 44 List of databases
45 Name | Owner | Encoding | Collation | Ctype | Access privileges 45 Name | Owner | Encoding | Collation | Ctype | Access privileges
46-----------+------------+-----------+-----------+-------+------------------- 46-----------+------------+-----------+-----------+-------+-------------------
47 org001 | aipo_pgsql | SQL_ASCII | C | C | 47 org001 | aipo_pgsql | SQL_ASCII | C | C |
48(snip) 48(snip)
49 49
508. Initialize Aipo database and inser sample data. 508. Initialize Aipo database and inser sample data.
51 51
52 $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 -f \ 52 $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 -f \
53 ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/sql/org001.sql 53 ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/sql/org001.sql
54 $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 -f \ 54 $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 -f \
55 ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/sql/sample.sql 55 ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/sql/sample.sql
56 56
579. Unlimit database 579. Unlimit database
58 58
59 $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 \ 59 $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 \
60 -c "UPDATE AIPO_LICENSE SET LIMIT_USERS=0" 60 -c "UPDATE AIPO_LICENSE SET LIMIT_USERS=0"
61 61
6210. Set Aipo location to apache tomcat 6210. Set Aipo location to apache tomcat
63 $ sudo vi ${PREFIX}/share/tomcat/conf/server.xml 63 $ sudo vi ${PREFIX}/share/tomcat/conf/server.xml
64 Add 64 Add
65 <Context path="/aipo" docBase="${PREFIX}/share/aipo/webapps/aipo" debug="0" reloadable="true"> 65 <Context path="/aipo" docBase="${PREFIX}/share/aipo/webapps/aipo" debug="0" reloadable="true">
66 </Context> 66 </Context>
67 in <Host> tag 67 in <Host> tag
68 68
6911. Regenerate securityTokenKey.txt files. 6911. Regenerate securityTokenKey.txt files.
70 70
71 $ sudo cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 64 | head -n 1 \ 71 $ sudo cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 64 | head -n 1 \
72 > ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/conf/securityTokenKey.txt 72 > ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/conf/securityTokenKey.txt
73 $ sudo cp ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/conf/securityTokenKey.txt \ 73 $ sudo cp ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/conf/securityTokenKey.txt \
74 ${PREFIX}/share/aipo/webapps/ROOT/WEB-INF/classes/aipo/securityTokenKey.txt 74 ${PREFIX}/share/aipo/webapps/ROOT/WEB-INF/classes/aipo/securityTokenKey.txt
75 75
7612. Start apache tomcat and access http://localhost:8080/aipo/portal 7612. Start apache tomcat and access http://localhost:8080/aipo/portal
77=========================================================================== 77===========================================================================

cvs diff -r1.2 -r1.3 pkgsrc/www/aipo/Attic/Makefile (switch to unified diff)

--- pkgsrc/www/aipo/Attic/Makefile 2011/11/29 14:51:37 1.2
+++ pkgsrc/www/aipo/Attic/Makefile 2011/12/06 12:41:02 1.3
@@ -1,55 +1,55 @@ @@ -1,55 +1,55 @@
1# $NetBSD: Makefile,v 1.2 2011/11/29 14:51:37 ryoon Exp $ 1# $NetBSD: Makefile,v 1.3 2011/12/06 12:41:02 ryoon Exp $
2# 2#
3 3
4DISTNAME= aipo6020ja_linux32 4DISTNAME= aipo6020ja_linux32
5PKGNAME= aipo-6.02 5PKGNAME= aipo-6.02
6PKGREVISION= 1 6PKGREVISION= 2
7CATEGORIES= www 7CATEGORIES= www
8MASTER_SITES= http://aipo.googlecode.com/files/ 8MASTER_SITES= http://aipo.googlecode.com/files/
9 9
10MAINTAINER= ryoon@NetBSD.org 10MAINTAINER= ryoon@NetBSD.org
11HOMEPAGE= http://www.aipo.com/ 11HOMEPAGE= http://www.aipo.com/
12COMMENT= Web-based groupware that supports Japanese interface 12COMMENT= Web-based groupware that supports Japanese interface
13LICENSE= gnu-agpl-v3 13LICENSE= gnu-agpl-v3
14 14
15PKG_DESTDIR_SUPPORT= user-destdir 15PKG_DESTDIR_SUPPORT= user-destdir
16 16
17USE_JAVA= run 17USE_JAVA= run
18USE_JAVA2= 6 18USE_JAVA2= 6
19 19
20NO_BUILD= yes 20NO_BUILD= yes
21 21
22WRKSRC= ${WRKDIR} 22WRKSRC= ${WRKDIR}
23USE_LANGUAGES= # none 23USE_LANGUAGES= # none
24 24
25USE_TOOLS+= gunzip pax tar 25USE_TOOLS+= gunzip pax tar
26 26
27AIPO_DIR= share/aipo 27AIPO_DIR= share/aipo
28TOMCAT_DIR= share/tomcat 28TOMCAT_DIR= share/tomcat
29 29
30INSTALLATION_DIRS= share/tomcat/lib 30INSTALLATION_DIRS= share/tomcat/lib
31 31
32SUBST_CLASSES+= username 32SUBST_CLASSES+= username
33SUBST_STAGE.username= pre-configure 33SUBST_STAGE.username= pre-configure
34SUBST_MESSAGE.username= Set default username and password 34SUBST_MESSAGE.username= Set default username and password
35SUBST_FILES.username= aipo/src/webapps/aipo/WEB-INF/datasource/dbcp-org001.properties 35SUBST_FILES.username= aipo/src/webapps/aipo/WEB-INF/datasource/dbcp-org001.properties
36SUBST_FILES.username+= aipo/src/webapps/ROOT/WEB-INF/datasource/dbcp-org001.properties 36SUBST_FILES.username+= aipo/src/webapps/ROOT/WEB-INF/datasource/dbcp-org001.properties
37SUBST_SED.username= -e 's,cayenne.dbcp.username=postgres,cayenne.dbcp.username=aipo_pgsql,' 37SUBST_SED.username= -e 's,cayenne.dbcp.username=postgres,cayenne.dbcp.username=aipo_pgsql,'
38SUBST_SED.username+= -e 's,cayenne.dbcp.password=aipo,cayenne.dbcp.password=aipo_db_password,' 38SUBST_SED.username+= -e 's,cayenne.dbcp.password=aipo,cayenne.dbcp.password=aipo_db_password,'
39 39
40post-extract: 40post-extract:
41 cd ${WRKSRC} && ${GUNZIP_CMD} -c aipo6020.tar.gz | ${TAR} -xpf - 41 cd ${WRKSRC} && ${GUNZIP_CMD} -c aipo6020.tar.gz | ${TAR} -xpf -
42 42
43do-install: 43do-install:
44 cd ${WRKSRC}/aipo/src/webapps && \ 44 cd ${WRKSRC}/aipo/src/webapps && \
45 pax -rw aipo ROOT ${DESTDIR}${PREFIX}/${AIPO_DIR}/webapps 45 pax -rw aipo ROOT ${DESTDIR}${PREFIX}/${AIPO_DIR}/webapps
46 cd ${WRKSRC}/aipo/src/initdata && \ 46 cd ${WRKSRC}/aipo/src/initdata && \
47 pax -rw psml files mail sql \ 47 pax -rw psml files mail sql \
48 ${DESTDIR}${PREFIX}/${AIPO_DIR}/webapps/aipo/WEB-INF 48 ${DESTDIR}${PREFIX}/${AIPO_DIR}/webapps/aipo/WEB-INF
49 ${INSTALL_DATA} ${WRKSRC}/aipo/src/postgresql-8.4-702.jdbc4.jar \ 49 ${INSTALL_DATA} ${WRKSRC}/aipo/src/postgresql-8.4-702.jdbc4.jar \
50 ${DESTDIR}${PREFIX}/${TOMCAT_DIR}/lib 50 ${DESTDIR}${PREFIX}/${TOMCAT_DIR}/lib
51 ${INSTALL_DATA} ${WRKSRC}/aipo/src/tools.jar \ 51 ${INSTALL_DATA} ${WRKSRC}/aipo/src/tools.jar \
52 ${DESTDIR}${PREFIX}/${TOMCAT_DIR}/lib 52 ${DESTDIR}${PREFIX}/${TOMCAT_DIR}/lib
53 53
54.include "../../mk/pgsql.buildlink3.mk" 54.include "../../mk/pgsql.buildlink3.mk"
55.include "../../mk/bsd.pkg.mk" 55.include "../../mk/bsd.pkg.mk"