diff -ruN www/nanoblogger/Makefile www/nanoblogger.3.3-rc5/Makefile --- www/nanoblogger/Makefile Sun May 14 05:05:39 2006 +++ www/nanoblogger.3.3-rc5/Makefile Mon Jul 10 22:45:43 2006 @@ -3,17 +3,18 @@ # Date created: Jul 15, 2004 # Whom: ijliao # -# $FreeBSD: ports/www/nanoblogger/Makefile,v 1.7 2006/05/13 04:41:16 edwin Exp $ +# $FreeBSD: ports/www/nanoblogger/Makefile,v 1.6 2005/09/15 21:24:17 pav Exp $ # PORTNAME= nanoblogger -PORTVERSION= 3.2.3 +PORTVERSION= 3.3.b5 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= nanoblogger-3.3-rc5 MAINTAINER= jpeg@thilelli.net -COMMENT= Small weblog engine for the UNIX command line +COMMENT= Small weblog engine written in Bash for the command line RUN_DEPENDS= bash:${PORTSDIR}/shells/bash @@ -22,20 +23,26 @@ SUB_FILES= pkg-message post-patch: - @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g; \ + s,%%DATADIR%%,${DATADIR},g" ${WRKSRC}/nb + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/lib/config.sh + @${RM} ${WRKSRC}/lib/config.sh.* do-install: ${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/nb.conf ${PREFIX}/etc/nb.conf.sample ${MKDIR} ${DATADIR} -.for dir in default moods plugins - ${CP} -R ${WRKSRC}/${dir} ${DATADIR} +.for data in default lang lib moods plugins + ${CP} -R ${WRKSRC}/${data} ${DATADIR} .endfor + ${CP} ${WRKSRC}/welcome-to-nb.txt ${DATADIR} post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/docs/nanoblogger.html ${DOCSDIR} +.for doc in COPYING ChangeLog README TODO docs/nanoblogger.html + ${INSTALL_MAN} ${WRKSRC}/${doc} ${DOCSDIR} +.endfor .endif @${CAT} ${PKGMESSAGE} diff -ruN www/nanoblogger/distinfo www/nanoblogger.3.3-rc5/distinfo --- www/nanoblogger/distinfo Tue Jan 24 04:13:34 2006 +++ www/nanoblogger.3.3-rc5/distinfo Thu Jul 6 21:43:33 2006 @@ -1,3 +1,3 @@ -MD5 (nanoblogger-3.2.3.tar.gz) = bd9f5f9d48b9b666f7bd03c76d90a724 -SHA256 (nanoblogger-3.2.3.tar.gz) = 9b1d51060e9f0f8db7119546c8dbb915c0dd214ed970844705d8738616c9029b -SIZE (nanoblogger-3.2.3.tar.gz) = 54672 +MD5 (nanoblogger-3.3-rc5.tar.gz) = fae7fdc610b88aaa67b47788ffa85c05 +SHA256 (nanoblogger-3.3-rc5.tar.gz) = 8a53d40a5ed019cf36fcfe6f27db500113b672e8be74dcee2648fd2cc6392d30 +SIZE (nanoblogger-3.3-rc5.tar.gz) = 76419 diff -ruN www/nanoblogger/files/patch-lib-config.sh www/nanoblogger.3.3-rc5/files/patch-lib-config.sh --- www/nanoblogger/files/patch-lib-config.sh Thu Jan 1 01:00:00 1970 +++ www/nanoblogger.3.3-rc5/files/patch-lib-config.sh Thu Jul 6 22:05:52 2006 @@ -0,0 +1,11 @@ +--- lib/config.sh.orig Thu Jul 6 22:01:24 2006 ++++ lib/config.sh Thu Jul 6 22:02:53 2006 +@@ -12,7 +12,7 @@ + # loads global config + load_globals(){ + # always load global configs +-[ -f "$NB_BASE_DIR/nb.conf" ] && . "$NB_BASE_DIR/nb.conf" ++[ -f "%%PREFIX%%/etc/nb.conf" ] && . "%%PREFIX%%/etc/nb.conf" + # check for user's .nb.conf in their home directory + [ -f "$HOME/.nb.conf" ] && . "$HOME/.nb.conf" + # default language definition diff -ruN www/nanoblogger/files/patch-nb www/nanoblogger.3.3-rc5/files/patch-nb --- www/nanoblogger/files/patch-nb Wed Jul 6 22:58:51 2005 +++ www/nanoblogger.3.3-rc5/files/patch-nb Thu Jul 6 22:05:16 2006 @@ -1,35 +1,17 @@ ---- nb.orig Tue Jul 5 10:49:45 2005 -+++ nb Tue Jul 5 10:51:56 2005 +--- nb.orig Thu Jul 6 22:03:26 2006 ++++ nb Thu Jul 6 22:04:29 2006 @@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash ############################################################ - # NanoBlogger 3.2.3 Copyright 2005 n1xt3r (Kevin R. Wood) # + # NanoBlogger 3.3 Copyright 2006 n1xt3r (Kevin R. Wood) # ############################################################ -@@ -7,7 +7,7 @@ - VERSION="3.2.3" +@@ -8,7 +8,7 @@ + VERSION="3.3 RC5" # nanoblogger's base install directory. -NB_BASE_DIR=`dirname $0` +NB_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. -@@ -67,7 +67,7 @@ - # set deprecated BASE_DIR for temporary compatibility - BASE_DIR="$NB_BASE_DIR" - # always load global configs --[ -f "$NB_BASE_DIR/nb.conf" ] && . "$NB_BASE_DIR/nb.conf" -+[ -f "%%PREFIX%%/etc/nb.conf" ] && . "%%PREFIX%%/etc/nb.conf" - # check for user's .nb.conf in their home directory - [ -f "$HOME/.nb.conf" ] && . "$HOME/.nb.conf" - # allow user specified weblog directories -@@ -1070,7 +1070,7 @@ - nb_msg "copying default weblog files ..." - # copy default files and directories - cp "$NB_BASE_DIR"/default/*.* "$BLOG_DIR" -- for weblog_dir in "$NB_BASE_DIR"/default/*/; do -+ for weblog_dir in "$NB_BASE_DIR"/default/*; do - cp -R "$weblog_dir" "$BLOG_DIR" - done - # create some critical empty directories + ### hardcoded paths ### + diff -ruN www/nanoblogger/files/pkg-message.in www/nanoblogger.3.3-rc5/files/pkg-message.in --- www/nanoblogger/files/pkg-message.in Thu Sep 15 23:24:17 2005 +++ www/nanoblogger.3.3-rc5/files/pkg-message.in Thu Jul 6 22:07:56 2006 @@ -1,10 +1,24 @@ POST-INSTALLATION NOTES: -Before you can use NanoBlogger, you will have to create a global configuration file -to set defaults information and paths to template files. +Before you can use NanoBlogger, you will have to create a global configuration +file to set defaults information and paths to template files. A sample configuration file has been installed in: %%PREFIX%%/etc/nb.conf.sample Since there are already some sensible default settings, you can begin with: - cp %%PREFIX%%/etc/nb.conf.sample %%PREFIX%%/etc/nb.conf + # cp %%PREFIX%%/etc/nb.conf.sample %%PREFIX%%/etc/nb.conf + + +SIDE NOTE 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 + diff -ruN www/nanoblogger/pkg-descr www/nanoblogger.3.3-rc5/pkg-descr --- www/nanoblogger/pkg-descr Thu Sep 15 23:24:17 2005 +++ www/nanoblogger.3.3-rc5/pkg-descr Thu Jul 6 22:36:23 2006 @@ -1,24 +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. +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 - * support for multiple weblogs - * support for multiple categories - * easy editing and management of entries - * archiving by category, entry, and month - * pagination - * permanent links - * RSS syndication (comes with RSS 1.0 and 2.0 formats) - * Atom syndication (comes with 0.3 format) - * templates and CSS style sheets for full control of appearance - * placeholders for easy template manipulation - * plugins for calendar, recent entries, weblog status, fortunes, etc. - * auto-formatting, e.g. line breaks translate to HTML - * support for relative and absolute links - * [...] + * intuitive commandline interface + * highly configurable and script-able :) + * easy drafting, editing, and management of entries + * archiving by category, year, month, 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/ - -- Julien Gabel -jpeg@thilelli.net diff -ruN www/nanoblogger/pkg-plist www/nanoblogger.3.3-rc5/pkg-plist --- www/nanoblogger/pkg-plist Thu Sep 15 23:24:17 2005 +++ www/nanoblogger.3.3-rc5/pkg-plist Thu Jul 6 22:30:00 2006 @@ -1,21 +1,28 @@ bin/nb etc/nb.conf.sample +%%DOCSDIR%%/COPYING +%%DOCSDIR%%/ChangeLog +%%DOCSDIR%%/TODO %%DOCSDIR%%/nanoblogger.html -%%DATADIR%%/default/articles/example.html %%DATADIR%%/default/articles/example.txt %%DATADIR%%/default/atom.xml %%DATADIR%%/default/blog.conf -%%DATADIR%%/default/data/2005-06-02T20_48_35.txt %%DATADIR%%/default/data/cat_1.db %%DATADIR%%/default/images/favicon.ico %%DATADIR%%/default/index.html %%DATADIR%%/default/index.xml +%%DATADIR%%/default/plugins/test.off %%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/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 @@ -23,6 +30,15 @@ %%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 @@ -42,35 +58,55 @@ %%DATADIR%%/moods/smilies/tongue.gif %%DATADIR%%/moods/smilies/wink.gif %%DATADIR%%/plugins/01_mymood.off +%%DATADIR%%/plugins/archive/master_fullindex.off %%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/mod/auto_break.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/entry/z0_excerpt.off %%DATADIR%%/plugins/fortune.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/page/page_links.off +%%DATADIR%%/plugins/post/clean_parts.off %%DATADIR%%/plugins/recent_entries.sh %%DATADIR%%/plugins/rss.sh %%DATADIR%%/plugins/rss2.sh %%DATADIR%%/plugins/weblog_links.sh %%DATADIR%%/plugins/weblog_status.sh -%%DATADIR%%/plugins/zyx_articles.sh +%%DATADIR%%/plugins/zyx_articles_meta.sh +%%DATADIR%%/plugins/zyx_articles_text.off +%%DATADIR%%/welcome-to-nb.txt +@dirrm %%DATADIR%%/plugins/post +@dirrm %%DATADIR%%/plugins/page/format @dirrm %%DATADIR%%/plugins/page @dirrm %%DATADIR%%/plugins/makepage @dirrm %%DATADIR%%/plugins/entry/mod +@dirrm %%DATADIR%%/plugins/entry/format @dirrm %%DATADIR%%/plugins/entry +@dirrm %%DATADIR%%/plugins/archive/year @dirrm %%DATADIR%%/plugins/archive/month @dirrm %%DATADIR%%/plugins/archive @dirrm %%DATADIR%%/plugins @dirrm %%DATADIR%%/moods/smilies @dirrm %%DATADIR%%/moods +@dirrm %%DATADIR%%/lib +@dirrm %%DATADIR%%/lang/en +@dirrm %%DATADIR%%/lang @dirrm %%DATADIR%%/default/templates @dirrm %%DATADIR%%/default/styles +@dirrm %%DATADIR%%/default/plugins @dirrm %%DATADIR%%/default/images @dirrm %%DATADIR%%/default/data @dirrm %%DATADIR%%/default/articles