aboutsummaryrefslogtreecommitdiff
path: root/www/plog
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2004-10-28 02:32:09 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2004-10-28 02:32:09 +0000
commit3a5fad2dc46f956a4803c68602a19f6d2e7f5231 (patch)
tree47698caddc85a97398adb7b36e903613b6831edc /www/plog
parentb67cb10f4226104c829bac1bb7224f5186a52613 (diff)
downloadports-3a5fad2dc46f956a4803c68602a19f6d2e7f5231.tar.gz
ports-3a5fad2dc46f956a4803c68602a19f6d2e7f5231.zip
Notes
Diffstat (limited to 'www/plog')
-rw-r--r--www/plog/Makefile62
-rw-r--r--www/plog/distinfo2
-rw-r--r--www/plog/pkg-descr8
-rw-r--r--www/plog/pkg-message7
-rw-r--r--www/plog/pkg-plist1
5 files changed, 80 insertions, 0 deletions
diff --git a/www/plog/Makefile b/www/plog/Makefile
new file mode 100644
index 000000000000..65cf7741b270
--- /dev/null
+++ b/www/plog/Makefile
@@ -0,0 +1,62 @@
+# New ports collection makefile for: plog
+# Date created: 2004-10-27
+# Whom: clsung
+#
+# $FreeBSD$
+#
+
+PORTNAME= plog
+PORTVERSION= 0.3.2
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= plog
+
+MAINTAINER= clsung@FreeBSD.org
+COMMENT= A PHP and MySQL based blogging platform
+
+USE_BZIP2= YES
+
+USE_PHP= mysql
+PHP4_PORT?= www/mod_php4
+NO_BUILD= YES
+WANT_PHP_WEB= YES
+PLOGDIR?= www/data-dist/plog
+PLIST= ${WRKDIR}/pkg-plist
+
+OPTIONS= GD "With GD Support" on \
+ IMAGICK "With ImageMagick Support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_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(WITH_GD) && !defined(WITH_IMAGICK)
+pre-patch:
+ @${ECHO_CMD} "Without GD or ImageMagick support. No thumbnails will be generated at all."
+.endif
+
+pre-install:
+ @${RM} ${WRKSRC}/.cvsignore
+ cd ${WRKSRC} && ${FIND} -s . -type f | \
+ ${SED} -e 's|^./||;s|^|${PLOGDIR}/|' > ${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}
+ @${CP} -R ${WRKSRC}/ ${PREFIX}/${PLOGDIR}
+ @${CHOWN} www:www ${PREFIX}/${PLOGDIR}/tmp
+
+post-install:
+ @${SED} -e 's|%%PLOGDIR%%|${PREFIX}/${PLOGDIR}|' ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/www/plog/distinfo b/www/plog/distinfo
new file mode 100644
index 000000000000..486b907aa1c9
--- /dev/null
+++ b/www/plog/distinfo
@@ -0,0 +1,2 @@
+MD5 (plog-0.3.2.tar.bz2) = 1c6bb120930306646af92ddc0f0b557f
+SIZE (plog-0.3.2.tar.bz2) = 1003647
diff --git a/www/plog/pkg-descr b/www/plog/pkg-descr
new file mode 100644
index 000000000000..31e8fe0cb662
--- /dev/null
+++ b/www/plog/pkg-descr
@@ -0,0 +1,8 @@
+pLog is a PHP and MySQL based blogging platform and its main goals
+are flexibility and extendibility. It uses a powerful template system
+based on the Smarty template engine to render the templates, whick
+makes the platform highly customizable and safer to let other people
+customize the templates, since the presentation code is isolated from
+the PHP code.
+
+WWW: http://www.plogworld.org/
diff --git a/www/plog/pkg-message b/www/plog/pkg-message
new file mode 100644
index 000000000000..7adf1a1a9bce
--- /dev/null
+++ b/www/plog/pkg-message
@@ -0,0 +1,7 @@
+
+ **** NOTE ****
+For first use of pLog, remember to point your browser to
+
+http://your.plog.host/wizard.php
+
+Maybe you should prepare a empty database first.
diff --git a/www/plog/pkg-plist b/www/plog/pkg-plist
new file mode 100644
index 000000000000..d0ac09258d04
--- /dev/null
+++ b/www/plog/pkg-plist
@@ -0,0 +1 @@
+@comment real PLIST will be generated in pre-install phase