diff options
author | taca <taca@pkgsrc.org> | 2008-09-22 15:42:56 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2008-09-22 15:42:56 +0000 |
commit | 8159a56da6f0756fa5125ffaf7186e346a06cb88 (patch) | |
tree | d23265f3e35871b1dc2e9bc132a9de59df50fcfe | |
parent | 07ae72564ca8f3d87e9c778535b8d76d0b331c2d (diff) | |
download | pkgsrc-8159a56da6f0756fa5125ffaf7186e346a06cb88.tar.gz |
* Correct some permission of directories/files to make it work.
* Allow depends on php-pgsql.
* Handle ${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php as configuration
file with CONF_FILES_PERMS.
* Install README file, very simple guide for set up.
Bump PKGREVISION.
-rw-r--r-- | www/typo3/DEINSTALL | 7 | ||||
-rw-r--r-- | www/typo3/Makefile | 36 | ||||
-rw-r--r-- | www/typo3/PLIST | 18 | ||||
-rw-r--r-- | www/typo3/files/README | 14 |
4 files changed, 51 insertions, 24 deletions
diff --git a/www/typo3/DEINSTALL b/www/typo3/DEINSTALL index c1fcbc3d8a0..b0bd0c4c95d 100644 --- a/www/typo3/DEINSTALL +++ b/www/typo3/DEINSTALL @@ -1,4 +1,4 @@ -# $NetBSD: DEINSTALL,v 1.1.1.1 2008/09/15 18:13:38 taca Exp $ +# $NetBSD: DEINSTALL,v 1.2 2008/09/22 15:42:56 taca Exp $ DIR="@PREFIX@/@TYPO3DIR@/@SITEDIR@" TYPO3DIRS="uploads/tf uploads/pics uploads/media uploads typo3temp \ @@ -8,8 +8,13 @@ TYPO3DIRS="uploads/tf uploads/pics uploads/media uploads typo3temp \ case ${STAGE} in DEINSTALL) + ( + cd ${DIR} + ${RM} -f typo3conf/temp*.php + ${RM} -rf typo3temp/* for d in ${TYPO3DIRS}; do ${RMDIR} $d 2>/dev/null done + ) ;; esac diff --git a/www/typo3/Makefile b/www/typo3/Makefile index a75186880e7..dbcdb215b8c 100644 --- a/www/typo3/Makefile +++ b/www/typo3/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.3 2008/09/16 13:31:26 taca Exp $ +# $NetBSD: Makefile,v 1.4 2008/09/22 15:42:56 taca Exp $ # DISTNAME= ${TYPO3NAME} PKGNAME= typo3-${VER} +PKGREVISION= 1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=typo3/} DISTFILES= ${TYPO3NAME}${EXTRACT_SUFX} ${SITESRC}${EXTRACT_SUFX} @@ -12,7 +13,7 @@ HOMEPAGE= http://typo3.com/ COMMENT= The typo3 content management system DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2.0:../../www/ap-php -DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=5.2.0:../../databases/php-mysql +DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,pgsql}>=5.1.0:../../databases/php-mysql DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.2.0:../../archivers/php-zlib/ #PKG_DESTDIR_SUPPORT= user-destdir @@ -34,30 +35,49 @@ REPLACE_FILES.php= typo3/cli_dispatch.phpsh \ typo3/mod/user/ws/cli/ws_cli.phpsh \ typo3/sysext/indexed_search/cli/indexer_cli.phpsh -TYPO3DATA= fileadmin typo3conf typo3temp uploads +TYPO3DATADIR= fileadmin fileadmin/_temp_ fileadmin/user_upload \ + typo3conf typo3conf/ext typo3conf/l10n typo3temp uploads \ + uploads/media uploads/pics uploads/tf BUILD_DEFS+= APACHE_GROUP FILES_SUBST+= TYPO3DIR=${TYPO3DIR:Q} SITEDIR=${SITEDIR:Q} -PLIST_SUBST+= SITEDIR=${SITEDIR:Q} TYPO3DIR=${TYPO3DIR:Q} \ - TYPO3NAME=${TYPO3NAME:Q} +PLIST_SUBST+= EGDIR=${EGDIR:Q} SITEDIR=${SITEDIR:Q} \ + TYPO3DIR=${TYPO3DIR:Q} TYPO3NAME=${TYPO3NAME:Q} -INSTALLATION_DIRS+= ${TYPO3DIR}/${SITEDIR} ${TYPO3DIR}/${TYPO3NAME} +EGDIR= share/examples/typo3 -.for d in ${TYPO3DATA} -SPECIAL_PERMS+= ${TYPO3DIR}/${SITEDIR}/${d} ${BINOWN} ${APACHE_GROUP} 0770 +INSTALLATION_DIRS+= ${EGDIR} ${TYPO3DIR}/${SITEDIR} ${TYPO3DIR}/${TYPO3NAME} + +CONF_FILES_PERMS+= ${EGDIR}/localconf.php \ + ${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php \ + ${BINOWN} ${APACHE_GROUP} 0660 + +.for d in ${TYPO3DATADIR} +OWN_DIRS_PERMS+= ${TYPO3DIR}/${SITEDIR}/${d} ${BINOWN} ${APACHE_GROUP} 0770 CHECK_PERMS_SKIP+= ${TYPO3DIR}/${SITEDIR}/${d} .endfor +SUBST_CLASSES+= conf +SUBST_FILES.conf+= ${WRKDIR}/README +SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX:Q}|g' +SUBST_SED.conf+= -e 's|@TYPO3DIR@|${TYPO3DIR:Q}|g' +SUBST_SED.conf+= -e 's|@SITEDIR@|${SITEDIR:Q}|g' +SUBST_STAGE.conf= post-configure + .include "../../mk/bsd.prefs.mk" SITEDIR?= www TYPO3DIR?= share/typo3 +post-extract: + ${CP} ${FILESDIR}/README ${WRKDIR} + do-install: cd ${WRKSRC}; pax -rw . ${DESTDIR}${PREFIX}/${TYPO3DIR}/${TYPO3NAME} cd ${WRKDIR}/${SITESRC}; \ pax -rw . ${DESTDIR}${PREFIX}/${TYPO3DIR}/${SITEDIR} + ${INSTALL_DATA} ${WRKDIR}/localconf.php ${DESTDIR}${PREFIX}/${EGDIR} .include "../../mk/apachever.mk" .include "../../lang/php/phpversion.mk" diff --git a/www/typo3/PLIST b/www/typo3/PLIST index 503907659bf..ad39714f2ed 100644 --- a/www/typo3/PLIST +++ b/www/typo3/PLIST @@ -1,4 +1,5 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/15 18:13:38 taca Exp $ +@comment $NetBSD: PLIST,v 1.2 2008/09/22 15:42:56 taca Exp $ +${EGDIR}/localconf.php ${TYPO3DIR}/${TYPO3NAME}/ChangeLog ${TYPO3DIR}/${TYPO3NAME}/GPL.txt ${TYPO3DIR}/${TYPO3NAME}/INSTALL.txt @@ -3884,25 +3885,11 @@ ${TYPO3DIR}/${SITEDIR}/fileadmin/_temp_/.htaccess ${TYPO3DIR}/${SITEDIR}/fileadmin/_temp_/index.html ${TYPO3DIR}/${SITEDIR}/typo3conf/extTables.php ${TYPO3DIR}/${SITEDIR}/typo3conf/index.html -${TYPO3DIR}/${SITEDIR}/typo3conf/localconf.php ${TYPO3DIR}/${SITEDIR}/typo3_src ${TYPO3DIR}/${SITEDIR}/typo3 ${TYPO3DIR}/${SITEDIR}/t3lib ${TYPO3DIR}/${SITEDIR}/index.php ${TYPO3DIR}/${SITEDIR}/uploads/index.html -@dirrm ${TYPO3DIR}/${SITEDIR}/uploads/tf -@dirrm ${TYPO3DIR}/${SITEDIR}/uploads/pics -@dirrm ${TYPO3DIR}/${SITEDIR}/uploads/media -@dirrm ${TYPO3DIR}/${SITEDIR}/uploads -@dirrm ${TYPO3DIR}/${SITEDIR}/typo3temp -@dirrm ${TYPO3DIR}/${SITEDIR}/typo3conf/l10n -@dirrm ${TYPO3DIR}/${SITEDIR}/typo3conf/ext -@dirrm ${TYPO3DIR}/${SITEDIR}/typo3conf -@dirrm ${TYPO3DIR}/${SITEDIR}/fileadmin/user_upload/_temp_ -@dirrm ${TYPO3DIR}/${SITEDIR}/fileadmin/user_upload -@dirrm ${TYPO3DIR}/${SITEDIR}/fileadmin/_temp_ -@dirrm ${TYPO3DIR}/${SITEDIR}/fileadmin -@dirrm ${TYPO3DIR}/${SITEDIR} @dirrm ${TYPO3DIR}/${TYPO3NAME}/typo3/templates @dirrm ${TYPO3DIR}/${TYPO3NAME}/typo3/sysext/wizard_sortpages/cshimages @dirrm ${TYPO3DIR}/${TYPO3NAME}/typo3/sysext/wizard_sortpages @@ -4288,3 +4275,4 @@ ${TYPO3DIR}/${SITEDIR}/uploads/index.html @dirrm ${TYPO3DIR}/${TYPO3NAME}/misc @dirrm ${TYPO3DIR}/${TYPO3NAME} @unexec ${RMDIR} %D/${TYPO3DIR} >/dev/null 2>&1 +@dirrm ${EGDIR} diff --git a/www/typo3/files/README b/www/typo3/files/README new file mode 100644 index 00000000000..c34a6d7898d --- /dev/null +++ b/www/typo3/files/README @@ -0,0 +1,14 @@ +$NetBSD: README,v 1.1 2008/09/22 15:42:56 taca Exp $ + +1. Set up typo3; Add below line in your httpd.conf. + + Alias /typo3 @PREFIX@/@TYPO3DIR@/@SITEDIR@ + + Or set DocumentRoot to @PREFIX@/@TYPO3DIR@/@SITEDIR@. + +2. First, enable TYPO3 installer. + + # cp /dev/null @PREFIX@/@TYPO3DIR@/@SITEDIR@/typo3conf/ENABLE_INSTALL_TOOL + +3. Access typo3 site. You will be redirected to installer. + |