aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/Makefile1
-rw-r--r--www/nanoblogger/Makefile47
-rw-r--r--www/nanoblogger/distinfo2
-rw-r--r--www/nanoblogger/files/patch-nb26
-rw-r--r--www/nanoblogger/pkg-descr24
5 files changed, 100 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 2dd52c2926a4..3bb5170a03dd 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -325,6 +325,7 @@
SUBDIR += mozilla-devel
SUBDIR += mozilla-gtk1
SUBDIR += mplayer-plugin
+ SUBDIR += nanoblogger
SUBDIR += nd
SUBDIR += neon
SUBDIR += neowebscript
diff --git a/www/nanoblogger/Makefile b/www/nanoblogger/Makefile
new file mode 100644
index 000000000000..e9221cdab58e
--- /dev/null
+++ b/www/nanoblogger/Makefile
@@ -0,0 +1,47 @@
+# ex:ts=8
+# Ports collection makefile for: nanoblogger
+# Date created: Jul 15, 2004
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= nanoblogger
+PORTVERSION= 2.8
+CATEGORIES= www
+MASTER_SITES= http://home.columbus.rr.com/n1xt3r/downloads/nanoblogger/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Small weblog engine for the UNIX command line
+
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
+
+USE_REINPLACE= yes
+NO_BUILD= yes
+
+PLIST_FILES= bin/nb etc/nb.conf.default
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/nb
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/nb.conf ${PREFIX}/etc/nb.conf.default
+ @${MKDIR} ${DATADIR}
+.for dir in default moods plugins
+ ${CP} -R ${WRKSRC}/${dir} ${DATADIR}
+.endfor
+ @${FIND} ${DATADIR} ! -type d | \
+ ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
+ @${FIND} ${DATADIR} -type d | ${SORT} -r | \
+ ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/nanoblogger.html ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/www/nanoblogger/distinfo b/www/nanoblogger/distinfo
new file mode 100644
index 000000000000..386c754731da
--- /dev/null
+++ b/www/nanoblogger/distinfo
@@ -0,0 +1,2 @@
+MD5 (nanoblogger-2.8.tar.gz) = 60669fa06b5b42e22171567c38bc46fc
+SIZE (nanoblogger-2.8.tar.gz) = 50388
diff --git a/www/nanoblogger/files/patch-nb b/www/nanoblogger/files/patch-nb
new file mode 100644
index 000000000000..ebec2a8a599b
--- /dev/null
+++ b/www/nanoblogger/files/patch-nb
@@ -0,0 +1,26 @@
+--- nb.orig Thu Jul 15 16:06:32 2004
++++ nb Thu Jul 15 16:08:43 2004
+@@ -1,4 +1,4 @@
+-#! /bin/bash
++#! /usr/bin/env bash
+ ############################################################
+ # NanoBlogger 2.8 Copyright 2004 n1xt3r (Kevin R. Wood) #
+ ############################################################
+@@ -7,7 +7,7 @@
+ VERSION="2.8"
+
+ # nanoblogger's install directory.
+-BASE_DIR=`dirname $0`
++BASE_DIR='%%PREFIX%%/share/nanoblogger'
+
+ # create a semi ISO 8601 formatted timestamp for archives
+ # used explicitly, please don't edit unless you know what you're doing.
+@@ -75,7 +75,7 @@
+ # loads global and user configurations
+ load_config(){
+ # always load global configs
+-. "$BASE_DIR"/nb.conf
++. %%PREFIX%%/etc/nb.conf
+ # check for user's .nb.conf in their home directory.
+ [ -f "$HOME/.nb.conf" ] && . "$HOME/.nb.conf"
+ # USR_BLOGDIR overrides BLOG_DIR
diff --git a/www/nanoblogger/pkg-descr b/www/nanoblogger/pkg-descr
new file mode 100644
index 000000000000..d469314bdab8
--- /dev/null
+++ b/www/nanoblogger/pkg-descr
@@ -0,0 +1,24 @@
+NanoBlogger is a small weblog engine written in Bash for the command line. It
+uses common UNIX tools such as cat, grep and sed.
+
+Features include:
+ * intuitive commandline interface
+ * support for multiple weblogs
+ * easy editing and management of entries
+ * archiving by category, entry, and month
+ * category support
+ * permalinks
+ * RSS syndication (comes with RSS 1.0 (RDF) format)
+ * a fully functional web site, using templates and stylesheets for easy
+ customization (you're looking at it!)
+ * placeholders for easy template manipulation
+ * plugins for calendar, recent entries, weblog status, etc.
+ * auto-formatting, e.g. line breaks translate to HTML
+ * parts for extensibility (e.g. news.htm, 2003-06.htm)
+ * per-weblog configuration via a seperate config file (blog.conf)
+ * no dependency on any javascript, server-side scripting, or server-side
+ includes
+ * no need for MySQL or any other special database (uses flat-file)
+ * some small effort at shell portability
+
+WWW: http://home.columbus.rr.com/n1xt3r/nanoblogger/