1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Add bblog 0.7.4, a elegant personal publishing system with Smarty.

PR:		ports/79995
Submitted by:	chinsan@mail2000.com.tw
This commit is contained in:
Vanilla I. Shu 2005-04-22 04:04:06 +00:00
parent e28cca7f1e
commit 6354ac9c1d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133907
6 changed files with 94 additions and 0 deletions

View File

@ -39,6 +39,7 @@
SUBDIR += autoindex2
SUBDIR += awstats
SUBDIR += axis
SUBDIR += bblog
SUBDIR += bins
SUBDIR += bk2site
SUBDIR += bk_edit

71
www/bblog/Makefile Normal file
View File

@ -0,0 +1,71 @@
# New ports collection makefile for: bBlog
# Date created: 2005-04-16
# Whom: chinsan@mail2000.com.tw
#
# $FreeBSD$
#
PORTNAME= bBlog
PORTVERSION= 0.7.4
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bblog
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A elegant personal publishing system with Smarty
USE_PHP= mysql pcre session
PHP4_PORT?= www/mod_php4
NO_BUILD= YES
WANT_PHP_WEB= YES
TMPDIR?= blog
WRKSRC= ${WRKDIR}/${TMPDIR}
WWWDOCROOT?= www/data-dist
BBLOGURL?= bblog
WWWOWN?= www
WWWGRP?= www
BBLOGDIR?= ${WWWDOCROOT}/${BBLOGURL}
PLIST= ${WRKDIR}/pkg-plist
OPTIONS= GD "With GD Support" on \
IMAGICK "With ImageMagick Support" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_GD)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/gd.so:${PORTSDIR}/${gd_DEPENDS}
.endif
.if defined(WITH_IMAGICK)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/${imagick_DEPENDS}
.endif
.if defined(WITHOUT_GD) && !defined(WITH_IMAGICK)
pre-patch:
@${ECHO_CMD} "Without GD or ImageMagick support. No thumbnails will be generated at all."
.endif
pre-install:
cd ${WRKSRC}/${BBLOGURL} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|${BBLOGDIR}/|' > ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${BBLOGDIR}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${BBLOGDIR} >> ${PLIST}
do-install:
-${MKDIR} ${PREFIX}/${BBLOGDIR}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${BBLOGDIR}
@${CHMOD} 755 ${PREFIX}/${BBLOGDIR}
@${CP} -R ${WRKSRC}/${BBLOGURL}/ ${PREFIX}/${BBLOGDIR}
@${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/install.php
@${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/compiled_templates/
@${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/cache/
@${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/cache/favorites.xml
@${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/config.php
post-install:
@${SED} -e 's|%%BBLOGURL%%|${BBLOGURL}|' ${PKGMESSAGE}
.include <bsd.port.post.mk>

2
www/bblog/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (bBlog-0.7.4.tar.gz) = a8170b28c1ef7d2e8b85cc656009ea49
SIZE (bBlog-0.7.4.tar.gz) = 306347

10
www/bblog/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
bBlog is a blogging program written in OOP style PHP. Major features include
threaded comments and trackback support. It is designed from the ground up
to use the Smarty templating engine. It has unparalleled extendability and
versility.
Perhaps bBlog's most distinctive feature is that it is built around a
templating system called Smarty, which makes customizing your blog as easy
as editing any web page, no programming skills required.
WWW: http://www.bblog.com/

9
www/bblog/pkg-message Normal file
View File

@ -0,0 +1,9 @@
**** NOTE ****
For first use of bBLog, remember to point your browser to
http://localhost/%%BBLOGURL%%/install.php
At the end of the install when the config file is written to disk, you
should change the permissions back to 755 so it is not writable by the
webserver.

1
www/bblog/pkg-plist Normal file
View File

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