pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/geeklog Importing www/geeklog-1.4.0.3 (geeklog-1.4...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d4282bac7777
branches:  trunk
changeset: 514629:d4282bac7777
user:      taca <taca%pkgsrc.org@localhost>
date:      Thu Jun 15 13:26:42 2006 +0000

description:
Importing www/geeklog-1.4.0.3 (geeklog-1.4.0sr3).


Geeklog is a PHP/MySQL based application for managing dynamic web content.

"Out of the box", it is a blog engine, or a CMS with support for comments,
trackbacks, multiple syndication formats, spam protection, and all the
other vital features of such a system.

diffstat:

 www/geeklog/DEINSTALL          |    54 +
 www/geeklog/DESCR              |     5 +
 www/geeklog/INSTALL            |    29 +
 www/geeklog/MESSAGE            |    29 +
 www/geeklog/Makefile           |   110 ++
 www/geeklog/Makefile.common    |    27 +
 www/geeklog/PLIST              |  1786 ++++++++++++++++++++++++++++++++++++++++
 www/geeklog/distinfo           |    11 +
 www/geeklog/files/createdb.php |    61 +
 www/geeklog/files/geeklog.conf |    12 +
 www/geeklog/patches/patch-aa   |    73 +
 www/geeklog/patches/patch-ab   |    19 +
 www/geeklog/patches/patch-ac   |    13 +
 www/geeklog/patches/patch-ad   |    10 +
 www/geeklog/patches/patch-ae   |    46 +
 www/geeklog/patches/patch-af   |    13 +
 16 files changed, 2298 insertions(+), 0 deletions(-)

diffs (truncated from 2362 to 300 lines):

diff -r 8b25ef79af52 -r d4282bac7777 www/geeklog/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/geeklog/DEINSTALL     Thu Jun 15 13:26:42 2006 +0000
@@ -0,0 +1,54 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2006/06/15 13:26:42 taca Exp $
+
+GEEKLOG_DIR="@GEEKLOG_DIR@"
+GEEKLOG_EXAMPLESDIR="@GEEKLOG_EXAMPLESDIR@"
+GEEKLOG_PUBDIR="@GEEKLOG_PUBDIR@"
+GEEKLOG_TMPL_SUB="@GEEKLOG_TMPL_SUB@"
+GEEKLOG_TMPL_DIR="@GEEKLOG_TMPL_DIR@"
+
+case ${STAGE} in
+DEINSTALL)
+       cd ${GEEKLOG_TMPL_DIR}
+       ${FIND} ${GEEKLOG_TMPL_SUB} -type f -print | \
+               while read f; do
+                       file="${GEEKLOG_PUBDIR}/$f"
+                       if ${TEST} -f ${file} -a -f ${f} && \
+                           ${CMP} -s ${file} ${f}; then
+                               ${RM} -f ${file}
+                       fi
+               done
+       cd ${GEEKLOG_PUBDIR}
+       ${FIND} -d ${GEEKLOG_TMPL_SUB} -type d -print |
+               while read d; do
+                       ${RMDIR} ${d} 2>/dev/null
+               done
+       # XXX: work around for remaining config.php
+       conf="${GEEKLOG_DIR}/config.php"
+       example="${GEEKLOG_EXAMPLESDIR}/config.php"
+       if ${TEST} -f ${conf} -a -f ${example} && ${CMP} -s ${conf} ${example}; then
+               ${RM} ${conf}
+       else
+               ${ECHO} "==========================================================================="
+               ${ECHO} "The following files are no longer being used by ${PKGNAME},"
+               ${ECHO} "and they can be removed if no other packages are using them:"
+               ${ECHO} ""
+               ${ECHO} "       ${conf}"
+               ${ECHO} ""
+               ${ECHO} "==========================================================================="
+       fi
+       ;;
+
+POST-DEINSTALL)
+       ${RMDIR} -p ${GEEKLOG_DIR} 2>/dev/null
+       if ${TEST} -d ${GEEKLOG_DIR}; then
+               ${ECHO} "==========================================================================="
+               ${ECHO} "The following directories are no longer being used by ${PKGNAME},"
+               ${ECHO} "and they can be removed if no other packages are using them:"
+               ${ECHO} ""
+               ${ECHO} "       ${GEEKLOG_DIR}"
+               ${ECHO} ""
+               ${ECHO} "==========================================================================="
+       fi
+       ;;
+
+esac
diff -r 8b25ef79af52 -r d4282bac7777 www/geeklog/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/geeklog/DESCR Thu Jun 15 13:26:42 2006 +0000
@@ -0,0 +1,5 @@
+Geeklog is a PHP/MySQL based application for managing dynamic web content.
+
+"Out of the box", it is a blog engine, or a CMS with support for comments,
+trackbacks, multiple syndication formats, spam protection, and all the
+other vital features of such a system.
diff -r 8b25ef79af52 -r d4282bac7777 www/geeklog/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/geeklog/INSTALL       Thu Jun 15 13:26:42 2006 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2006/06/15 13:26:42 taca Exp $
+
+APACHE_GROUP="@APACHE_GROUP@"
+GEEKLOG_PUBDIR="@GEEKLOG_PUBDIR@"
+GEEKLOG_TMPL_SUB="@GEEKLOG_TMPL_SUB@"
+GEEKLOG_TMPL_DIR="@GEEKLOG_TMPL_DIR@"
+
+case ${STAGE} in
+POST-INSTALL)
+       cd ${GEEKLOG_TMPL_DIR}
+       ${FIND} ${GEEKLOG_TMPL_SUB} -type d -print | \
+               while read d; do
+                       dir="${GEEKLOG_PUBDIR}/$d"
+                       if ${TEST} ! -d ${dir}; then
+                               ${MKDIR} ${dir}
+                               ${CHGRP} ${APACHE_GROUP} ${dir}
+                               ${CHMOD} 0775 ${dir}
+                       fi
+               done
+       ${FIND} ${GEEKLOG_TMPL_SUB} -type f -print | \
+               while read f; do
+                       file="${GEEKLOG_PUBDIR}/$f"
+                       if ${TEST} ! -f ${file}; then
+                               ${CP} -p ${f} ${file}
+                               ${CHGRP} ${APACHE_GROUP} ${file}
+                               fi
+                       done
+       ;;
+esac
diff -r 8b25ef79af52 -r d4282bac7777 www/geeklog/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/geeklog/MESSAGE       Thu Jun 15 13:26:42 2006 +0000
@@ -0,0 +1,29 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2006/06/15 13:26:44 taca Exp $
+
+To complete the setup, check and edit ${GEEKLOG_DIR}/config.php.
+
+Then you will need to create a MySQL database for geeklog if you install
+Geeklog for the first time:
+
+       # ${PREFIX}/php ${GEEKLOG_EXAMPLESDIR}
+
+You will need to make Geeklog accessible through your HTTP server.
+If you are running Apache then you may add the following lines to
+httpd.conf:
+
+       Include ${PKG_SYSCONFDIR}/geeklog.conf
+
+This geeklog.conf assumes that Geeklog would be accessed with "/geeklog"
+sub directory.  Since you had better limit the access until complete
+Geeklog setup, geeklog.conf limit access to "localhost".
+
+And complete install with:
+
+       http://localhost/geeklog/admin/install/install.php
+
+You can read documentation for install Geeklog:
+
+       http://localhost/geeklog/docs/install.html
+
+===========================================================================
diff -r 8b25ef79af52 -r d4282bac7777 www/geeklog/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/geeklog/Makefile      Thu Jun 15 13:26:42 2006 +0000
@@ -0,0 +1,110 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/06/15 13:26:42 taca Exp $
+#
+
+DISTNAME=      geeklog-${VER}
+PKGNAME=       geeklog-${VER:S/sr/./}
+CATEGORIES=    www
+MASTER_SITES=  http://www.geeklog.net/filemgmt/upload_dir/
+
+MAINTAINER=    taca%NetBSD.org@localhost
+HOMEPAGE=      http://www.geeklog.net/
+COMMENT=       PHP/MySQL based application for managing dynamic web content
+
+DEPENDS+=      ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.3.3:../../www/ap-php
+DEPENDS+=      ${PHP_PKG_PREFIX}-mysql>=4.3.0:../../databases/php-mysql
+
+VER=           1.4.0sr3
+NO_BUILD=      YES
+
+GEEKLOG_SYS=           emailgeeklogstories language plugins readme sql system
+GEEKLOG_TMPL_SUB=      backend images/articles images/library \
+                       images/topics images/userphotos
+
+GEEKLOG_CONF_FILES=    config.php plugins/links/config.php \
+                       plugins/polls/config.php plugins/spamx/config.php \
+                       plugins/staticpages/config.php
+
+CONF_FILES+=           ${GEEKLOG_EXAMPLESDIR}/geeklog.conf \
+                       ${PKG_SYSCONFDIR}/geeklog.conf
+
+.for f in ${GEEKLOG_CONF_FILES}
+CONF_FILES_PERMS+=     ${GEEKLOG_EXAMPLESDIR}/${f} \
+                       ${GEEKLOG_DIR}/${f} \
+                       ${BINOWN} ${APACHE_GROUP} 0640
+.endfor
+
+OWN_DIRS_PERMS+=       ${GEEKLOG_DIR}/backups ${BINOWN} ${APACHE_GROUP} 0770 \
+                       ${GEEKLOG_DIR}/data ${BINOWN} ${APACHE_GROUP} 0770 \
+                       ${GEEKLOG_DIR}/logs ${BINOWN} ${APACHE_GROUP} 0775
+
+FILES_SUBST+=          APACHE_GROUP=${APACHE_GROUP:Q} \
+                       GEEKLOG_DIR=${GEEKLOG_DIR:Q} \
+                       GEEKLOG_EXAMPLESDIR=${GEEKLOG_EXAMPLESDIR:Q} \
+                       GEEKLOG_PUBDIR=${GEEKLOG_PUBDIR:Q} \
+                       GEEKLOG_TMPL_SUB=${GEEKLOG_TMPL_SUB:Q} \
+                       GEEKLOG_TMPL_DIR=${GEEKLOG_TMPL_DIR:Q}
+
+MESSAGE_SUBST+=                GEEKLOG_DIR=${GEEKLOG_DIR:Q} \
+                       GEEKLOG_EXAMPLESDIR=${GEEKLOG_EXAMPLESDIR:Q}
+
+PLIST_SUBST+=          GEEKLOG_BASE=${GEEKLOG_BASE:Q} \
+                       GEEKLOG_PUB=${GEEKLOG_PUB:Q} \
+                       GEEKLOG_TMPL=${GEEKLOG_TMPL:Q}
+
+SUBST_CLASSES+=                paths
+SUBST_FILES.paths+=    ${WRKDIR}/createdb.php
+SUBST_FILES.paths+=    ${WRKSRC}/config.php ${WRKSRC}/emailgeeklogstories
+SUBST_FILES.paths+=    ${WRKSRC}/public_html/lib-common.php
+SUBST_SED.paths+=       -e 's,@GEEKLOG_DIR@,${GEEKLOG_DIR:Q},g'
+SUBST_SED.paths+=       -e 's,@GEEKLOG_PUBDIR@,${GEEKLOG_PUBDIR:Q},g'
+SUBST_SED.paths+=       -e 's,@GEEKLOG_SITESUBDIR@,${GEEKLOG_SITESUBDIR:Q},g'
+SUBST_SED.paths+=       -e 's,@PREFIX@,${PREFIX:Q},g'
+SUBST_STAGE.paths=      post-configure
+
+SUBST_CLASSES+=                conf
+SUBST_FILES.conf+=     ${WRKDIR}/geeklog.conf
+SUBST_SED.conf+=       -e 's,@GEEKLOG_DIR@,${GEEKLOG_DIR:Q},g'
+SUBST_SED.conf+=       -e 's,@GEEKLOG_PUBDIR@,${GEEKLOG_PUBDIR:Q},g'
+SUBST_STAGE.conf=      post-configure
+
+INSTALLATION_DIRS=     ${GEEKLOG_BASE} ${GEEKLOG_PUB} ${GEEKLOG_TMPL}/images \
+                       share/examples/geeklog
+
+.include "../../WORK/geeklog/Makefile.common"
+
+APACHE_GROUP?=         www
+PKG_SYSCONFSUBDIR?=    geeklog
+
+.if empty(GEEKLOG_SITEBASE)
+SUBST_SED.conf+=       -e '/^Alias/s,^,\#,'
+.endif
+
+post-extract:
+       ${CP} ${FILESDIR}/createdb.php ${FILESDIR}/geeklog.conf ${WRKDIR}
+
+pre-install:
+       ${FIND} ${WRKSRC:Q} -name "*.orig*" -exec ${RM} -f {} \;
+       cd ${WRKSRC}/public_html; \
+               ${FIND} ${GEEKLOG_TMPL_SUB} -type f -exec ${CHMOD} -x {} \;
+
+do-install:
+.for f in ${GEEKLOG_CONF_FILES}
+       ${INSTALL_DATA_DIR} ${GEEKLOG_EXAMPLESDIR}/${f:H}
+       ${INSTALL_DATA} ${WRKSRC}/${f} ${GEEKLOG_EXAMPLESDIR}/${f}
+       ${INSTALL_DATA} ${WRKDIR}/createdb.php ${GEEKLOG_EXAMPLESDIR}
+       ${INSTALL_DATA} ${WRKDIR}/geeklog.conf ${GEEKLOG_EXAMPLESDIR}
+       ${RM} ${WRKSRC}/${f}
+.endfor
+       cd ${WRKSRC}; ${CP} -R ${GEEKLOG_SYS} ${GEEKLOG_DIR}
+.for d in ${GEEKLOG_TMPL_SUB}
+       cd ${WRKSRC}/public_html; \
+               if [ -d ${d} ]; then \
+                       ${PAX} -rw ${d} ${GEEKLOG_TMPL_DIR}; \
+                       ${RM} -rf ${d}; \
+               fi
+.endfor
+       cd ${WRKSRC}/public_html; ${PAX} -rw . ${GEEKLOG_PUBDIR}
+
+.include "../../mk/apachever.mk"
+.include "../../lang/php/phpversion.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 8b25ef79af52 -r d4282bac7777 www/geeklog/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/geeklog/Makefile.common       Thu Jun 15 13:26:42 2006 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2006/06/15 13:26:44 taca Exp $
+#
+
+GEEKLOG_BASE=          share/geeklog
+GEEKLOG_PUB=           share/httpd/geeklog
+GEEKLOG_TMPL=          share/geeklog/default
+
+# Geeklog system
+GEEKLOG_DIR=           ${PREFIX}/${GEEKLOG_BASE}
+
+# Geeklog public area
+GEEKLOG_PUBDIR=                ${PREFIX}/${GEEKLOG_PUB}
+
+#GEEKLOG_DOCDIR=       ${PREFIX}/share/doc/geeklog
+GEEKLOG_EXAMPLESDIR=   ${PREFIX}/share/examples/geeklog
+GEEKLOG_TMPL_DIR=      ${PREFIX}/${GEEKLOG_TMPL}
+
+.include "../../mk/bsd.prefs.mk"
+
+# access Geeklog as its own directory?
+GEEKLOG_SITEBASE?=     geeklog
+
+BUILD_DEFS+=           GEEKLOG_SITEBASE
+
+.if !empty(GEEKLOG_SITEBASE)
+GEEKLOG_SITESUBDIR=    /${GEEKLOG_SITEBASE}
+.endif
diff -r 8b25ef79af52 -r d4282bac7777 www/geeklog/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/geeklog/PLIST Thu Jun 15 13:26:42 2006 +0000
@@ -0,0 +1,1786 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/06/15 13:26:44 taca Exp $
+${GEEKLOG_BASE}/emailgeeklogstories
+${GEEKLOG_BASE}/language/bosnian.php
+${GEEKLOG_BASE}/language/bosnian_utf-8.php
+${GEEKLOG_BASE}/language/bulgarian.php
+${GEEKLOG_BASE}/language/bulgarian_utf-8.php
+${GEEKLOG_BASE}/language/catalan.php
+${GEEKLOG_BASE}/language/catalan_utf-8.php
+${GEEKLOG_BASE}/language/chinese_big5.php
+${GEEKLOG_BASE}/language/chinese_gb2312.php
+${GEEKLOG_BASE}/language/chinese_simplified_utf-8.php
+${GEEKLOG_BASE}/language/chinese_traditional_utf-8.php
+${GEEKLOG_BASE}/language/croatian.php
+${GEEKLOG_BASE}/language/croatian_utf-8.php
+${GEEKLOG_BASE}/language/czech.php
+${GEEKLOG_BASE}/language/czech_utf-8.php
+${GEEKLOG_BASE}/language/danish.php
+${GEEKLOG_BASE}/language/danish_utf-8.php



Home | Main Index | Thread Index | Old Index