head	1.7;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.7
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.5
	RELEASE_8_0_0:1.5
	RELEASE_7_2_0:1.4
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.4
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.1;
locks; strict;
comment	@# @;


1.7
date	2011.07.02.12.30.59;	author swills;	state Exp;
branches;
next	1.6;

1.6
date	2010.03.06.01.36.54;	author wxs;	state Exp;
branches;
next	1.5;

1.5
date	2009.07.07.23.49.47;	author dhn;	state Exp;
branches;
next	1.4;

1.4
date	2007.01.16.10.47.19;	author bsam;	state Exp;
branches;
next	1.3;

1.3
date	2005.07.06.20.58.51;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2004.11.12.15.30.57;	author ijliao;	state Exp;
branches;
next	1.1;

1.1
date	2004.07.15.08.20.05;	author ijliao;	state Exp;
branches;
next	;


desc
@@


1.7
log
@- fix calendar generation

PR:		ports/158579
Submitted by:	Tobias Rehbein <tobias.rehbein@@web.de> (maintainer)
@
text
@--- ./nb.orig	2010-02-15 22:01:53.000000000 +0100
+++ ./nb	2011-07-01 21:31:22.000000000 +0200
@@@@ -1,4 +1,4 @@@@
-#! /bin/bash
+#! %%LOCALBASE%%/bin/bash
 ############################################################
 #  NanoBlogger 3.4.2 Copyright 2010 n1xt3r (Kevin R. Wood) #
 ############################################################
@@@@ -11,11 +11,11 @@@@
 
 # -- hardcoded paths --
 # where to expect nanoblogger's base
-NB_BASE_DIR=`dirname $0`
+NB_BASE_DIR="%%DATADIR%%"
 # where to expect nanoblogger's documentation
-NB_DOC_DIR="$NB_BASE_DIR/docs"
+NB_DOC_DIR="%%DOCSDIR%%"
 # where to expect nanoblogger's conf file
-NB_CFG_DIR="$NB_BASE_DIR"
+NB_CFG_DIR="%%PREFIX%%/etc"
 # nanoblogger's language definitions directory.
 NB_LANG_DIR="${NB_BASE_DIR}/lang"
 # nanoblogger's module directory.
@@@@ -875,6 +875,9 @@@@
 			for weblog_dir in "$NB_BASE_DIR"/default/*; do
 				cp -R "$weblog_dir" "$BLOG_DIR"
 			done
+			# set writable mode for default files
+			find "$BLOG_DIR" -type d -print0 | xargs -0 chmod 755
+			find "$BLOG_DIR" -type f -print0 | xargs -0 chmod 644
 			# create some critical empty directories
 			for weblog_emptydir in "$ARCHIVES_DIR" "$CACHE_DIR" "$PARTS_DIR"; do
 				[ ! -d "$BLOG_DIR/$weblog_emptydir" ] && mkdir "$BLOG_DIR/$weblog_emptydir"
@


1.6
log
@- Update to 3.4.2

PR:		ports/144474
Submitted by:	Tobias Rehbein <tobias.rehbein@@web.de> (maintainer)
Feature safe:	yes
@
text
@d2 1
a2 1
+++ ./nb	2010-03-01 22:12:55.000000000 +0100
@


1.5
log
@- Update to 3.4
- Pass maintainership to submitter

PR:		ports/136322
Submitted by:	Tobias Rehbein <tobias.rehbein@@web.de>
@
text
@d1 2
a2 2
--- ./nb.orig	2009-04-26 03:55:07.000000000 +0200
+++ ./nb	2009-06-22 09:31:59.000000000 +0200
d7 1
a7 1
 #  NanoBlogger 3.4 Copyright 2009 n1xt3r (Kevin R. Wood)   #
d9 1
a9 1
@@@@ -9,11 +9,11 @@@@
d14 1
a14 1
+NB_BASE_DIR=%%DATADIR%%
d24 1
a24 1
@@@@ -863,6 +863,9 @@@@
@


1.4
log
@- Update the product release.
- Tidy most of the port's files: pkg-plist, pkg-message, Makefile, etc.
- The port conforms a little more to FreeBSD Porter's Handbook (always evolving...)
- Validate a complete recommended test ordering from porting-testing.html
(In fact, correct it to do so.)

While I'm here: move "@@unexec if cmp -s %D/etc/nb.conf.sample..." upwards
at pkg-plist (before %D/etc/nb.conf.sample).

PR:		107963
Submitted by:	Julien Gabel <julien.gabel at thilelli.net> (maintainer)
@
text
@d1 2
a2 2
--- nb.orig	Sun Jan 14 17:38:03 2007
+++ nb	Sun Jan 14 17:41:26 2007
d5 1
a5 1
+#!/usr/bin/env bash
d7 1
a7 1
 #  NanoBlogger 3.3 Copyright 2006 n1xt3r (Kevin R. Wood)   #
d9 1
a9 2
@@@@ -8,11 +8,11 @@@@
 VERSION="3.3"
d11 2
a12 1
 # nanoblogger's base install directory.
d14 2
a15 2
+NB_BASE_DIR="%%PREFIX%%/share/nanoblogger"
 # documentation
d17 2
a18 2
+NB_DOC_DIR="%%PREFIX%%/share/doc/nanoblogger"
 # nanoblogger's conf file
d21 13
a33 3
 
 ### hardcoded paths ###
 
@


1.3
log
@- Update to 3.2.3

PR:		ports/83033
Submitted by:	Julien Gabel <jpeg@@thilelli.net>
@
text
@d1 2
a2 2
--- nb.orig	Tue Jul  5 10:49:45 2005
+++ nb	Tue Jul  5 10:51:56 2005
d7 1
a7 1
 #  NanoBlogger 3.2.3 Copyright 2005 n1xt3r (Kevin R. Wood)   #
d9 2
a10 2
@@@@ -7,7 +7,7 @@@@
 VERSION="3.2.3"
d15 8
a23 20
 # 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
@


1.2
log
@upgrade to 3.0
@
text
@d1 2
a2 2
--- nb.orig	Fri Nov 12 23:28:37 2004
+++ nb	Fri Nov 12 23:29:46 2004
d5 1
a5 1
+#! /usr/bin/env bash
d7 1
a7 1
 #  NanoBlogger 3.0 Copyright 2004 n1xt3r (Kevin R. Wood)   #
d9 2
a10 2
@@@@ -10,7 +10,7 @@@@
 VERSION="3.0"
d12 3
a14 3
 # nanoblogger's install directory.
-BASE_DIR=`dirname $0`
+BASE_DIR='%%PREFIX%%/share/nanoblogger'
d18 18
a35 9
@@@@ -985,7 +985,7 @@@@
 	[ $# -gt 1 ] && argument=$2
 	bad_argument=$1
 	# 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"
 	case "$1" in
@


1.1
log
@add nanoblogger 2.8
Small weblog engine for the UNIX command line
@
text
@d1 2
a2 2
--- nb.orig	Thu Jul 15 16:06:32 2004
+++ nb	Thu Jul 15 16:08:43 2004
d7 1
a7 1
 #  NanoBlogger 2.8 Copyright 2004 n1xt3r (Kevin R. Wood)   #
d9 2
a10 2
@@@@ -7,7 +7,7 @@@@
 VERSION="2.8"
d18 9
a26 9
@@@@ -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
@

