[Midnightbsd-cvs] mports: www/nanoblogger: add nanoblogger
crash at midnightbsd.org
crash at midnightbsd.org
Wed Nov 12 15:47:19 EST 2008
Log Message:
-----------
add nanoblogger
Added Files:
-----------
mports/www/nanoblogger:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/www/nanoblogger/files:
patch-nb (r1.1)
patch-plugins_entry_format_markdown_sh (r1.1)
patch-plugins_page_format_markdown_sh (r1.1)
pkg-message.in (r1.1)
-------------- next part --------------
--- /dev/null
+++ 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 to create
+static HTML content.
+
+Features include:
+ * intuitive commandline interface
+ * highly configurable and script-able :)
+ * easy drafting, editing, and management of entries
+ * archiving by category, year, month, day, and entry
+ * pagination
+ * permanent and navigational links
+ * templates and CSS style sheets for full control over layout
+ * placeholders for easy template manipulation
+ * support for multiple weblogs
+ * support for multiple categories
+ * support for relative and absolute links
+ * support for date manipulation of entries
+ * Atom syndication (comes with 1.0 format)
+ * RSS syndication (comes with RSS 1.0 and 2.0 formats)
+ * plugins for calendar, recent entries, weblog status, etc.
+ * plugins for text formatting (e.g. line breaks translate to HTML)
+ * [...]
+
+WWW: http://nanoblogger.sourceforge.net/
--- /dev/null
+++ www/nanoblogger/pkg-plist
@@ -0,0 +1,119 @@
+bin/nb
+ at unexec if cmp -s %D/etc/nb.conf.sample %D/etc/nb.conf; then rm -f %D/etc/nb.conf; fi
+etc/nb.conf.sample
+ at exec if [ ! -f %D/etc/nb.conf ] ; then cp -p %D/%F %B/nb.conf; fi
+ at exec mkdir -p %D/share/nanoblogger/default/parts
+ at exec mkdir -p %D/share/nanoblogger/default/cache
+ at exec mkdir -p %D/share/nanoblogger/default/plugins
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/nanoblogger.html
+%%DATADIR%%/default/articles/example.txt
+%%DATADIR%%/default/atom.xml
+%%DATADIR%%/default/blog.conf
+%%DATADIR%%/default/data/cat_1.db
+%%DATADIR%%/default/images/favicon.ico
+%%DATADIR%%/default/images/feed-icon-14x14.png
+%%DATADIR%%/default/index.html
+%%DATADIR%%/default/index.xml
+%%DATADIR%%/default/styles/nb_clean.css
+%%DATADIR%%/default/styles/nb_default.css
+%%DATADIR%%/default/styles/nb_rusted.css
+%%DATADIR%%/default/styles/nb_spring.css
+%%DATADIR%%/default/styles/nb_steelblue.css
+%%DATADIR%%/default/styles/print.css
+%%DATADIR%%/default/templates/category_archive.htm
+%%DATADIR%%/default/templates/category_entry.htm
+%%DATADIR%%/default/templates/day_archive.htm
+%%DATADIR%%/default/templates/entry.htm
+%%DATADIR%%/default/templates/entry.metadata
+%%DATADIR%%/default/templates/file.metadata
+%%DATADIR%%/default/templates/main_index.htm
+%%DATADIR%%/default/templates/main_links.htm
+%%DATADIR%%/default/templates/makepage.htm
+%%DATADIR%%/default/templates/month_archive.htm
+%%DATADIR%%/default/templates/permalink.htm
+%%DATADIR%%/default/templates/permalink_entry.htm
+%%DATADIR%%/default/templates/weblog_status.htm
+%%DATADIR%%/default/templates/year_archive.htm
+%%DATADIR%%/lang/en/help.txt
+%%DATADIR%%/lang/en/messages.lang
+%%DATADIR%%/lang/en/plugins.lang
+%%DATADIR%%/lang/en/templates.lang
+%%DATADIR%%/lib/config.sh
+%%DATADIR%%/lib/error.sh
+%%DATADIR%%/lib/query.sh
+%%DATADIR%%/lib/tools.sh
+%%DATADIR%%/moods/moods.conf
+%%DATADIR%%/moods/mymood.txt
+%%DATADIR%%/moods/smilies/angry.gif
+%%DATADIR%%/moods/smilies/cheesy.gif
+%%DATADIR%%/moods/smilies/cool.gif
+%%DATADIR%%/moods/smilies/cry.gif
+%%DATADIR%%/moods/smilies/embarassed.gif
+%%DATADIR%%/moods/smilies/grin.gif
+%%DATADIR%%/moods/smilies/huh.gif
+%%DATADIR%%/moods/smilies/kiss.gif
+%%DATADIR%%/moods/smilies/laugh.gif
+%%DATADIR%%/moods/smilies/lipsrsealed.gif
+%%DATADIR%%/moods/smilies/rolleyes.gif
+%%DATADIR%%/moods/smilies/sad.gif
+%%DATADIR%%/moods/smilies/shocked.gif
+%%DATADIR%%/moods/smilies/smiley.gif
+%%DATADIR%%/moods/smilies/tongue.gif
+%%DATADIR%%/moods/smilies/wink.gif
+%%DATADIR%%/plugins/archive/day/cal2daytitle.sh
+%%DATADIR%%/plugins/archive/master_index.sh
+%%DATADIR%%/plugins/archive/month/month_calendar.sh
+%%DATADIR%%/plugins/archive/year/year_index.sh
+%%DATADIR%%/plugins/atom.sh
+%%DATADIR%%/plugins/calendar.sh
+%%DATADIR%%/plugins/entry/category_links.sh
+%%DATADIR%%/plugins/entry/format/autobr.sh
+%%DATADIR%%/plugins/entry/format/markdown.sh
+%%DATADIR%%/plugins/entry/format/raw.sh
+%%DATADIR%%/plugins/entry/mod/base_url.sh
+%%DATADIR%%/plugins/entry/mod/moods.sh
+%%DATADIR%%/plugins/makepage/tidy.sh
+%%DATADIR%%/plugins/page/feed_links.sh
+%%DATADIR%%/plugins/page/format/autobr.sh
+%%DATADIR%%/plugins/page/format/markdown.sh
+%%DATADIR%%/plugins/page/format/moods.sh
+%%DATADIR%%/plugins/page/format/raw.sh
+%%DATADIR%%/plugins/post/clean_parts.off
+%%DATADIR%%/plugins/recent_entries.sh
+%%DATADIR%%/plugins/rss2.sh
+%%DATADIR%%/plugins/weblog_links.sh
+%%DATADIR%%/plugins/weblog_status.sh
+%%DATADIR%%/plugins/z001_articles_meta.sh
+%%DATADIR%%/welcome-to-nb.txt
+ at dirrm %%DATADIR%%/plugins/post
+ at dirrm %%DATADIR%%/plugins/page/format
+ at dirrm %%DATADIR%%/plugins/page
+ at dirrm %%DATADIR%%/plugins/makepage
+ at dirrm %%DATADIR%%/plugins/entry/mod
+ at dirrm %%DATADIR%%/plugins/entry/format
+ at dirrm %%DATADIR%%/plugins/entry
+ at dirrm %%DATADIR%%/plugins/archive/year
+ at dirrm %%DATADIR%%/plugins/archive/month
+ at dirrm %%DATADIR%%/plugins/archive/day
+ at dirrm %%DATADIR%%/plugins/archive
+ at dirrm %%DATADIR%%/plugins
+ at dirrm %%DATADIR%%/moods/smilies
+ at dirrm %%DATADIR%%/moods
+ at dirrm %%DATADIR%%/lib
+ at dirrm %%DATADIR%%/lang/en
+ at dirrm %%DATADIR%%/lang
+ at dirrm %%DATADIR%%/default/templates
+ at dirrm %%DATADIR%%/default/styles
+ at dirrm %%DATADIR%%/default/plugins
+ at dirrm %%DATADIR%%/default/parts
+ at dirrm %%DATADIR%%/default/images
+ at dirrm %%DATADIR%%/default/data
+ at dirrm %%DATADIR%%/default/cache
+ at dirrm %%DATADIR%%/default/articles
+ at dirrm %%DATADIR%%/default
+ at dirrm %%DATADIR%%
+ at dirrm %%DOCSDIR%%
--- /dev/null
+++ www/nanoblogger/Makefile
@@ -0,0 +1,54 @@
+# ex:ts=8
+# Ports collection makefile for: nanoblogger
+# Date created: Jul 15, 2004
+# Whom: ijliao
+#
+# $FreeBSD: ports/www/nanoblogger/Makefile,v 1.12 2008/06/15 18:46:30 jadawin Exp $
+# $MidnightBSD: mports/www/nanoblogger/Makefile,v 1.1 2008/11/12 20:47:16 crash Exp $
+
+PORTNAME= nanoblogger
+PORTVERSION= 3.3
+PORTREVISION= 2
+CATEGORIES= www
+MASTER_SITES= SF
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Small weblog engine written in Bash for the command line
+
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
+
+NO_BUILD= yes
+
+SUB_FILES= pkg-message
+
+post-patch:
+ @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb
+ @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/plugins/entry/format/markdown.sh
+ @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/plugins/page/format/markdown.sh
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/nb.conf ${PREFIX}/etc/nb.conf.sample
+ ${MKDIR} ${DATADIR}
+.for data in lang lib moods plugins
+ ${MKDIR} ${DATADIR}/${data} && \
+ ( cd ${WRKSRC}/${data} && \
+ ${COPYTREE_SHARE} \* ${DATADIR}/${data} "! -name *.orig ! -name *.bak" )
+.endfor
+ ${MKDIR} ${DATADIR}/default && \
+ ${CP} -R ${WRKSRC}/default ${DATADIR}/
+ ${CP} ${WRKSRC}/welcome-to-nb.txt ${DATADIR}
+
+post-install:
+ @if [ ! -f ${PREFIX}/etc/nb.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/nb.conf.sample ${PREFIX}/etc/nb.conf; \
+ fi
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for doc in COPYING ChangeLog README TODO docs/nanoblogger.html
+ ${INSTALL_MAN} ${WRKSRC}/${doc} ${DOCSDIR}
+.endfor
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
--- /dev/null
+++ www/nanoblogger/distinfo
@@ -0,0 +1,3 @@
+MD5 (nanoblogger-3.3.tar.gz) = c9df242e48be0c9b7fca2443c00fd6dc
+SHA256 (nanoblogger-3.3.tar.gz) = b49b25ee18c42dc9cf47fdd456e5dd19033456c64104a0ccba34e318e5daf1a0
+SIZE (nanoblogger-3.3.tar.gz) = 82302
--- /dev/null
+++ www/nanoblogger/files/pkg-message.in
@@ -0,0 +1,32 @@
+POST-INSTALLATION NOTES:
+
+Before you can use NanoBlogger, you will have to create a global configuration
+file to set default information and paths to template files.
+
+A sample configuration file has been installed in:
+ %%PREFIX%%/etc/nb.conf.sample
+
+If no global configuration file is already present, it has been installed as:
+ %%PREFIX%%/etc/nb.conf
+
+Otherwise, since there are already some sensible default settings, you can
+overwrite it and begin with a fresh one:
+ # cp %%PREFIX%%/etc/nb.conf.sample %%PREFIX%%/etc/nb.conf
+
+The provided documentation and the preferred upgrade path (in the README
+file) can be found in the additional documentation directory:
+ %%DOCSDIR%%/*
+
+
+SIDE NOTES FOR OLD USERS:
+
+As always with new release, don't forget to read the documentation and to
+update your weblog configuration file, e.g. ${blog_dir}/blog.conf. In the
+same time, pay attention to these particular points:
+ - The way articles are build has changed: nb {-E|--draft} must be use now.
+ - The base skeleton has been modified too, you _may_ want to update your
+ old entries, but that seems not mandatory though.
+ - Be careful if you have customized your CSS style file: there is a lot of
+ changes in this area, so layout may be very different with this version
+ than you may expected.
+
--- /dev/null
+++ www/nanoblogger/files/patch-plugins_entry_format_markdown_sh
@@ -0,0 +1,11 @@
+--- plugins/entry/format/markdown.sh.orig 2005-11-03 08:21:22.000000000 +0100
++++ plugins/entry/format/markdown.sh 2008-06-12 11:22:45.000000000 +0200
+@@ -2,7 +2,7 @@
+ # Markdown is documented and implemented at
+ # <URL:http://daringfireball.net/projects/markdown/>
+
+-MARKDOWN="/usr/bin/markdown"
++MARKDOWN="%%PREFIX%%/bin/markdown"
+ MARKDOWN_OPTS=""
+
+ # nb_msg "$plugins_textformataction `basename $nb_plugin` ..."
--- /dev/null
+++ www/nanoblogger/files/patch-nb
@@ -0,0 +1,23 @@
+--- nb.orig Sun Jan 14 17:38:03 2007
++++ nb Sun Jan 14 17:41:26 2007
+@@ -1,4 +1,4 @@
+-#! /bin/bash
++#!/usr/bin/env bash
+ ############################################################
+ # NanoBlogger 3.3 Copyright 2006 n1xt3r (Kevin R. Wood) #
+ ############################################################
+@@ -8,11 +8,11 @@
+ VERSION="3.3"
+
+ # nanoblogger's base install directory.
+-NB_BASE_DIR=`dirname $0`
++NB_BASE_DIR="%%PREFIX%%/share/nanoblogger"
+ # documentation
+-NB_DOC_DIR="$NB_BASE_DIR/docs"
++NB_DOC_DIR="%%PREFIX%%/share/doc/nanoblogger"
+ # nanoblogger's conf file
+-NB_CFG_DIR="$NB_BASE_DIR"
++NB_CFG_DIR="%%PREFIX%%/etc"
+
+ ### hardcoded paths ###
+
--- /dev/null
+++ www/nanoblogger/files/patch-plugins_page_format_markdown_sh
@@ -0,0 +1,11 @@
+--- plugins/page/format/markdown.sh.orig 2005-11-09 23:45:03.000000000 +0100
++++ plugins/page/format/markdown.sh 2008-06-12 11:23:22.000000000 +0200
+@@ -2,7 +2,7 @@
+ # Markdown is documented and implemented at
+ # <URL:http://daringfireball.net/projects/markdown/>
+
+-MARKDOWN="/usr/bin/markdown"
++MARKDOWN="%%PREFIX%%/bin/markdown"
+ MARKDOWN_OPTS=""
+
+ nb_msg "$plugins_textformataction `basename $nb_plugin` ..."
More information about the Midnightbsd-cvs
mailing list