diff options
author | Martin Matuska <mm@FreeBSD.org> | 2008-04-14 15:16:01 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2008-04-14 15:16:01 +0000 |
commit | 2db079eaedbc63d79444e67b20c1aaf1a35513fd (patch) | |
tree | b0ec065dbe6c4d33e8028ed59938fc191cff0a38 /www/openacs | |
parent | 041401cac3d19cd037ca95d6589d9ed2ee6115a7 (diff) | |
download | ports-2db079eaedbc63d79444e67b20c1aaf1a35513fd.tar.gz ports-2db079eaedbc63d79444e67b20c1aaf1a35513fd.zip |
Notes
Diffstat (limited to 'www/openacs')
-rw-r--r-- | www/openacs/Makefile | 14 | ||||
-rw-r--r-- | www/openacs/files/create_sampledb.sh.in | 2 |
2 files changed, 6 insertions, 10 deletions
diff --git a/www/openacs/Makefile b/www/openacs/Makefile index 58c03c0429c0..794b33a36f07 100644 --- a/www/openacs/Makefile +++ b/www/openacs/Makefile @@ -7,6 +7,7 @@ PORTNAME?= openacs DISTVERSION?= 5.4.1 +PORTREVISION?= 1 CATEGORIES= www MASTER_SITES?= http://openacs.org/projects/openacs/download/download/ EXTRACT_SUFX= .tgz?revision_id=${DIST_REV_ID} @@ -49,8 +50,7 @@ PKGDEINSTALL= ${WRKDIR}/pkg-deinstall PORTDOCS= * -OPTIONS= EXAMPLES "Install various example files" on \ - TCLTHREAD "Depend on tclthread" on \ +OPTIONS= TCLTHREAD "Depend on tclthread" on \ TCLWEBTEST "Depend on tclwebteset" on .include <bsd.port.pre.mk> @@ -103,30 +103,26 @@ pre-install: ! -path '${WRKSRC}/readme.txt' ! -path '${WRKSRC}/license.txt' \ ! -path '${WRKSRC}/ChangeLog' | \ ${SED} 's|${WRKSRC}|${OPENACSBASE:S/${PREFIX}\///}|' > ${PLIST} - @ ${ECHO} @exec if ! [ -f ${OPENACSBASE:S/%D\///}/etc/${PORTNAME}-config.tcl ] \; then ${CP} %D/%%EXAMPLESDIR%%/config.tcl %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; fi >> ${PLIST} @ ${ECHO} @unexec if cmp -hsz %D/%%EXAMPLESDIR%%/config.tcl %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; then ${RM} %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; fi >> ${PLIST} + @ ${FIND} ${WRKSRC}/etc ! -type d | \ + ${SED} 's|${WRKSRC}/etc|%%EXAMPLESDIR%%|' >> ${PLIST} + @ ${ECHO} @exec if ! [ -f ${OPENACSBASE:S/%D\///}/etc/${PORTNAME}-config.tcl ] \; then ${CP} %D/%%EXAMPLESDIR%%/config.tcl %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; fi >> ${PLIST} @ ${ECHO} @dirrmtry ${OPENACSBASE:S/${PREFIX}\///}/etc >> ${PLIST} @ ${FIND} ${WRKSRC} -type d ! -path '${WRKSRC}/etc*' | \ ${SORT} -r | \ ${SED} 's|${WRKSRC}|@dirrmtry ${OPENACSBASE:S/${PREFIX}\///}|' >> ${PLIST} -.if defined(WITH_EXAMPLES) - @ ${FIND} ${WRKSRC}/etc ! -type d | \ - ${SED} 's|${WRKSRC}/etc|%%EXAMPLESDIR%%|' >> ${PLIST} @ ${FIND} ${WRKSRC}/etc -type d | \ ${SED} 's|${WRKSRC}/etc|@dirrm %%EXAMPLESDIR%%|' | \ ${SORT} -r >> ${PLIST} -.endif do-install: @ ${ECHO} "Installing base files" @ ${MKDIR} ${OPENACSBASE}/etc @ ${TAR} -c -C ${WRKSRC} -f - ${BASE_INSTALL} | \ ${TAR} -x -C ${OPENACSBASE} -f - -.if defined(WITH_EXAMPLES) @ ${ECHO} "Installing examples" @ ${MKDIR} ${EXAMPLESDIR} @ ${TAR} -c -C ${WRKSRC}/etc -f - . | ${TAR} -x -C ${EXAMPLESDIR} -f - -.endif @ ${ECHO} "Installing sample configuration file" @ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-config.tcl ${EXAMPLESDIR}/config.tcl @ if ! [ -f ${OPENACSBASE}/etc/${PORTNAME}-config.tcl ]; then \ diff --git a/www/openacs/files/create_sampledb.sh.in b/www/openacs/files/create_sampledb.sh.in index c29987e58dc3..970af95b6965 100644 --- a/www/openacs/files/create_sampledb.sh.in +++ b/www/openacs/files/create_sampledb.sh.in @@ -32,7 +32,7 @@ fi echo "Creating PostgreSQL user ${OPENACS_USER} ..." ${SU} -l ${PGUSER} -c "${LOCALBASE}/bin/createuser ${CREATEUSERFLAGS} ${OPENACS_USER}" echo "Creating PostgreSQL database ${OPENACS_DB} ..." -${SU} -l ${OPENACS_USER} -c "${LOCALBASE}/bin/createdb -E UNICODE ${OPENACS_DB}" +${SU} -m ${OPENACS_USER} -c "${LOCALBASE}/bin/createdb -E UNICODE ${OPENACS_DB}" echo "Registering language plpgsql for database ${OPENACS_DB} ..." ${SU} -l ${PGUSER} -c "${LOCALBASE}/bin/createlang plpgsql ${OPENACS_DB}" |