- Update to 1.0

- add _all_plugins and _all_templates

PR:		80021
This commit is contained in:
Cheng-Lung Sung 2005-04-20 07:33:48 +00:00
parent e0d4e59a4b
commit 8f2143c5ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133728
10 changed files with 104 additions and 36 deletions

View file

@ -6,22 +6,31 @@
#
PORTNAME= plog
PORTVERSION= 0.3.2
PORTVERSION= 1.0
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= plog
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
_all_plugins${EXTRACT_SUFX} \
_all_templates${EXTRACT_SUFX}
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= clsung@FreeBSD.org
COMMENT= A PHP and MySQL based blogging platform
USE_BZIP2= YES
USE_ZIP= YES
USE_PHP= mysql pcre session
USE_PHP= ctype mysql pcre session xml
PHP4_PORT?= www/mod_php4
NO_BUILD= YES
WANT_PHP_WEB= YES
PLOGDIR?= www/data-dist/plog
WWWDOCROOT?= www/data
PLOGURL?= plog
WWWOWN?= www
WWWGRP?= www
PLOGDIR?= ${WWWDOCROOT}/${PLOGURL}
PLIST= ${WRKDIR}/pkg-plist
PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS= GD "With GD Support" on \
IMAGICK "With ImageMagick Support" off
@ -41,22 +50,27 @@ pre-patch:
@${ECHO_CMD} "Without GD or ImageMagick support. No thumbnails will be generated at all."
.endif
post-extract:
.for x in plugins templates
cd ${WRKSRC}/${x} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/_all_${x}${EXTRACT_SUFX}
.endfor
pre-install:
@${RM} ${WRKSRC}/.cvsignore
cd ${WRKSRC} && ${FIND} -s . -type f | \
@${RM} -f ${PLIST}
@cd ${WRKSRC} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|${PLOGDIR}/|' > ${PLIST} \
&& ${ECHO_CMD} "@unexec ${RM} -fr %D/${PLOGDIR}/tmp/* 2>/dev/null || ${TRUE}" >> ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${PLOGDIR}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${PLOGDIR} >> ${PLIST}
do-install:
-${MKDIR} ${PREFIX}/${PLOGDIR}
@${CHOWN} www:www ${PREFIX}/${PLOGDIR}
@${CHMOD} 755 ${PREFIX}/${PLOGDIR}
@${MKDIR} ${PREFIX}/${PLOGDIR}
@${CP} -R ${WRKSRC}/ ${PREFIX}/${PLOGDIR}
@${CHOWN} www:www ${PREFIX}/${PLOGDIR}/tmp
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PLOGDIR}
post-install:
@${SED} -e 's|%%PLOGDIR%%|${PREFIX}/${PLOGDIR}|' ${PKGMESSAGE}
@${SED} -e 's|%%PLOGURL%%|${PLOGURL}|' pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View file

@ -1,2 +1,6 @@
MD5 (plog-0.3.2.tar.bz2) = 1c6bb120930306646af92ddc0f0b557f
SIZE (plog-0.3.2.tar.bz2) = 1003647
MD5 (plog-1.0.zip) = 4d48680437c8be9a6427ba78964b0e9f
SIZE (plog-1.0.zip) = 2420990
MD5 (_all_plugins.zip) = df73f9600da364e83ff17aa5c5b55654
SIZE (_all_plugins.zip) = 1712625
MD5 (_all_templates.zip) = 325cb9033ea10ffcc30895621f848222
SIZE (_all_templates.zip) = 5182891

View file

@ -0,0 +1,12 @@
--- wizard.php.orig Sun Apr 17 08:56:58 2005
+++ wizard.php Sun Apr 17 08:58:10 2005
@@ -1414,6 +1414,9 @@
}
}
+ // dirty hack, ignore duplicate table/key/column and upgrade anyway
+ $errors = false;
+
if( !$errors )
$message .= "Changes to table <strong>$tableId</strong> executed successfully.<br/>";
else {

View file

@ -1,7 +1,12 @@
**** NOTE ****
======================================================================
**** NOTE ****
For first use of pLog, remember to point your browser to
http://your.plog.host/wizard.php
http://your.plog.host/%%PLOGURL%%/wizard.php
Maybe you should prepare a empty database first.
and, remember to load your templates at
http://your.plog.host/%%PLOGURL%%/admin.php?op=adminSettings
and then click 'scanTemplates'
======================================================================

View file

@ -1 +0,0 @@
@comment real PLIST will be generated in pre-install phase

View file

@ -6,22 +6,31 @@
#
PORTNAME= plog
PORTVERSION= 0.3.2
PORTVERSION= 1.0
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= plog
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
_all_plugins${EXTRACT_SUFX} \
_all_templates${EXTRACT_SUFX}
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= clsung@FreeBSD.org
COMMENT= A PHP and MySQL based blogging platform
USE_BZIP2= YES
USE_ZIP= YES
USE_PHP= mysql pcre session
USE_PHP= ctype mysql pcre session xml
PHP4_PORT?= www/mod_php4
NO_BUILD= YES
WANT_PHP_WEB= YES
PLOGDIR?= www/data-dist/plog
WWWDOCROOT?= www/data
PLOGURL?= plog
WWWOWN?= www
WWWGRP?= www
PLOGDIR?= ${WWWDOCROOT}/${PLOGURL}
PLIST= ${WRKDIR}/pkg-plist
PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS= GD "With GD Support" on \
IMAGICK "With ImageMagick Support" off
@ -41,22 +50,27 @@ pre-patch:
@${ECHO_CMD} "Without GD or ImageMagick support. No thumbnails will be generated at all."
.endif
post-extract:
.for x in plugins templates
cd ${WRKSRC}/${x} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/_all_${x}${EXTRACT_SUFX}
.endfor
pre-install:
@${RM} ${WRKSRC}/.cvsignore
cd ${WRKSRC} && ${FIND} -s . -type f | \
@${RM} -f ${PLIST}
@cd ${WRKSRC} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|${PLOGDIR}/|' > ${PLIST} \
&& ${ECHO_CMD} "@unexec ${RM} -fr %D/${PLOGDIR}/tmp/* 2>/dev/null || ${TRUE}" >> ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${PLOGDIR}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${PLOGDIR} >> ${PLIST}
do-install:
-${MKDIR} ${PREFIX}/${PLOGDIR}
@${CHOWN} www:www ${PREFIX}/${PLOGDIR}
@${CHMOD} 755 ${PREFIX}/${PLOGDIR}
@${MKDIR} ${PREFIX}/${PLOGDIR}
@${CP} -R ${WRKSRC}/ ${PREFIX}/${PLOGDIR}
@${CHOWN} www:www ${PREFIX}/${PLOGDIR}/tmp
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PLOGDIR}
post-install:
@${SED} -e 's|%%PLOGDIR%%|${PREFIX}/${PLOGDIR}|' ${PKGMESSAGE}
@${SED} -e 's|%%PLOGURL%%|${PLOGURL}|' pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View file

@ -1,2 +1,6 @@
MD5 (plog-0.3.2.tar.bz2) = 1c6bb120930306646af92ddc0f0b557f
SIZE (plog-0.3.2.tar.bz2) = 1003647
MD5 (plog-1.0.zip) = 4d48680437c8be9a6427ba78964b0e9f
SIZE (plog-1.0.zip) = 2420990
MD5 (_all_plugins.zip) = df73f9600da364e83ff17aa5c5b55654
SIZE (_all_plugins.zip) = 1712625
MD5 (_all_templates.zip) = 325cb9033ea10ffcc30895621f848222
SIZE (_all_templates.zip) = 5182891

View file

@ -0,0 +1,12 @@
--- wizard.php.orig Sun Apr 17 08:56:58 2005
+++ wizard.php Sun Apr 17 08:58:10 2005
@@ -1414,6 +1414,9 @@
}
}
+ // dirty hack, ignore duplicate table/key/column and upgrade anyway
+ $errors = false;
+
if( !$errors )
$message .= "Changes to table <strong>$tableId</strong> executed successfully.<br/>";
else {

View file

@ -1,7 +1,12 @@
**** NOTE ****
======================================================================
**** NOTE ****
For first use of pLog, remember to point your browser to
http://your.plog.host/wizard.php
http://your.plog.host/%%PLOGURL%%/wizard.php
Maybe you should prepare a empty database first.
and, remember to load your templates at
http://your.plog.host/%%PLOGURL%%/admin.php?op=adminSettings
and then click 'scanTemplates'
======================================================================

View file

@ -1 +0,0 @@
@comment real PLIST will be generated in pre-install phase