summaryrefslogtreecommitdiff
path: root/www/bblog
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2005-04-22 04:04:06 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2005-04-22 04:04:06 +0000
commit6354ac9c1da87da66fcb765fcf809b20b53900fb (patch)
tree93900297b9d519503dc22e5ad6adf2b51653a0cb /www/bblog
parentAdd a hunk to really really prevent the /etc/pam.d/xscreensaver (diff)
Add bblog 0.7.4, a elegant personal publishing system with Smarty.
PR: ports/79995 Submitted by: chinsan@mail2000.com.tw
Notes
Notes: svn path=/head/; revision=133907
Diffstat (limited to 'www/bblog')
-rw-r--r--www/bblog/Makefile71
-rw-r--r--www/bblog/distinfo2
-rw-r--r--www/bblog/pkg-descr10
-rw-r--r--www/bblog/pkg-message9
-rw-r--r--www/bblog/pkg-plist1
5 files changed, 93 insertions, 0 deletions
diff --git a/www/bblog/Makefile b/www/bblog/Makefile
new file mode 100644
index 000000000000..3946cf2b528e
--- /dev/null
+++ b/www/bblog/Makefile
@@ -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>
diff --git a/www/bblog/distinfo b/www/bblog/distinfo
new file mode 100644
index 000000000000..ca9fb213d6f9
--- /dev/null
+++ b/www/bblog/distinfo
@@ -0,0 +1,2 @@
+MD5 (bBlog-0.7.4.tar.gz) = a8170b28c1ef7d2e8b85cc656009ea49
+SIZE (bBlog-0.7.4.tar.gz) = 306347
diff --git a/www/bblog/pkg-descr b/www/bblog/pkg-descr
new file mode 100644
index 000000000000..dfe6e3714a00
--- /dev/null
+++ b/www/bblog/pkg-descr
@@ -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/
diff --git a/www/bblog/pkg-message b/www/bblog/pkg-message
new file mode 100644
index 000000000000..db2e2813c492
--- /dev/null
+++ b/www/bblog/pkg-message
@@ -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.
diff --git a/www/bblog/pkg-plist b/www/bblog/pkg-plist
new file mode 100644
index 000000000000..d0ac09258d04
--- /dev/null
+++ b/www/bblog/pkg-plist
@@ -0,0 +1 @@
+@comment real PLIST will be generated in pre-install phase