View | Details | Raw Unified | Return to bug 83033
Collapse All | Expand All

(-)www/nanoblogger/Makefile Tue Jul 5 19:34:04 2005 (-3 / +3 lines)
Lines 7-13 Link Here
7
#
7
#
8
8
9
PORTNAME=      nanoblogger
9
PORTNAME=      nanoblogger
10
PORTVERSION=   3.1
10
PORTVERSION=   3.2.3
11
CATEGORIES=    www
11
CATEGORIES=    www
12
MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=    ${PORTNAME}
13
MASTER_SITE_SUBDIR=    ${PORTNAME}
Lines 15-21 Link Here
15
MAINTAINER=    ports@FreeBSD.org
15
MAINTAINER=    ports@FreeBSD.org
16
COMMENT=       Small weblog engine for the UNIX command line
16
COMMENT=       Small weblog engine for the UNIX command line
17
17
18
RUN_DEPENDS=   bash:${PORTSDIR}/shells/bash2
18
RUN_DEPENDS=   bash:${PORTSDIR}/shells/bash
19
19
20
USE_REINPLACE= yes
20
USE_REINPLACE= yes
21
NO_BUILD=      yes
21
NO_BUILD=      yes
Lines 27-33 Link Here
27
.endif
27
.endif
28
28
29
post-patch:
29
post-patch:
30
       @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/nb
30
       @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb
31
31
32
do-install:
32
do-install:
33
       ${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin
33
       ${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin
(-)www/nanoblogger/distinfo Tue Jul 5 19:45:10 2005 (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (nanoblogger-3.1.tar.gz) = 7b8eba52ded4849953c88f1747b97f9d
1
MD5 (nanoblogger-3.2.3.tar.gz) = bd9f5f9d48b9b666f7bd03c76d90a724
2
SIZE (nanoblogger-3.1.tar.gz) = 51293
2
SIZE (nanoblogger-3.2.3.tar.gz) = 54672
(-)www/nanoblogger/files/patch-nb Tue Jul 5 19:34:04 2005 (-18 / +27 lines)
Lines 1-26 Link Here
1
--- nb.orig    Fri Nov 12 23:28:37 2004
1
--- nb.orig    Tue Jul  5 10:49:45 2005
2
+++ nb Fri Nov 12 23:29:46 2004
2
+++ nb Tue Jul  5 10:51:56 2005
3
@@ -1,4 +1,4 @@
3
@@ -1,4 +1,4 @@
4
-#! /bin/bash
4
-#! /bin/bash
5
+#! /usr/bin/env bash
5
+#!/usr/bin/env bash
6
 ############################################################
6
 ############################################################
7
 #  NanoBlogger 3.0 Copyright 2004 n1xt3r (Kevin R. Wood)   #
7
 #  NanoBlogger 3.2.3 Copyright 2005 n1xt3r (Kevin R. Wood)   #
8
 ############################################################
8
 ############################################################
9
@@ -10,7 +10,7 @@
9
@@ -7,7 +7,7 @@
10
 VERSION="3.0"
10
 VERSION="3.2.3"
11
 
11
 
12
 # nanoblogger's install directory.
12
 # nanoblogger's base install directory.
13
-BASE_DIR=`dirname $0`
13
-NB_BASE_DIR=`dirname $0`
14
+BASE_DIR='%%PREFIX%%/share/nanoblogger'
14
+NB_BASE_DIR="%%PREFIX%%/share/nanoblogger"
15
 
15
 
16
 # create a semi ISO 8601 formatted timestamp for archives
16
 # create a semi ISO 8601 formatted timestamp for archives
17
 # used explicitly, please don't edit unless you know what you're doing.
17
 # used explicitly, please don't edit unless you know what you're doing.
18
@@ -985,7 +985,7 @@
18
@@ -67,7 +67,7 @@
19
       [ $# -gt 1 ] && argument=$2
19
 # set deprecated BASE_DIR for temporary compatibility
20
       bad_argument=$1
20
 BASE_DIR="$NB_BASE_DIR"
21
       # always load global configs
21
 # always load global configs
22
-      . "$BASE_DIR"/nb.conf
22
-[ -f "$NB_BASE_DIR/nb.conf" ] && . "$NB_BASE_DIR/nb.conf"
23
+      . %%PREFIX%%/etc/nb.conf
23
+[ -f "%%PREFIX%%/etc/nb.conf" ] && . "%%PREFIX%%/etc/nb.conf"
24
       # check for user's .nb.conf in their home directory
24
 # check for user's .nb.conf in their home directory
25
       [ -f "$HOME/.nb.conf" ] && . "$HOME/.nb.conf"
25
 [ -f "$HOME/.nb.conf" ] && . "$HOME/.nb.conf"
26
       case "$1" in
26
 # allow user specified weblog directories 
27
@@ -1070,7 +1070,7 @@
28
       nb_msg "copying default weblog files ..."
29
       # copy default files and directories
30
       cp "$NB_BASE_DIR"/default/*.* "$BLOG_DIR"
31
-      for weblog_dir in "$NB_BASE_DIR"/default/*/; do
32
+      for weblog_dir in "$NB_BASE_DIR"/default/*; do
33
               cp -R "$weblog_dir" "$BLOG_DIR"
34
       done
35
       # create some critical empty directories
(-)www/nanoblogger/pkg-descr Tue Jul 5 19:34:04 2005 (-13 / +18 lines)
Lines 4-24 Link Here
4
Features include:
4
Features include:
5
    * intuitive commandline interface
5
    * intuitive commandline interface
6
    * support for multiple weblogs
6
    * support for multiple weblogs
7
    * support for multiple categories
7
    * easy editing and management of entries
8
    * easy editing and management of entries
8
    * archiving by category, entry, and month
9
    * archiving by category, entry, and month
9
    * category support
10
    * pagination
10
    * permalinks
11
    * permanent links
11
    * RSS syndication (comes with RSS 1.0 (RDF) format)
12
    * RSS syndication (comes with RSS 1.0 and 2.0 formats)
12
    * a fully functional web site, using templates and stylesheets for easy
13
    * Atom syndication (comes with 0.3 format)
13
      customization (you're looking at it!)
14
    * templates and CSS style sheets for full control of appearance
14
    * placeholders for easy template manipulation
15
    * placeholders for easy template manipulation
15
    * plugins for calendar, recent entries, weblog status, etc.
16
    * plugins for calendar, recent entries, weblog status, fortunes, etc.
16
    * auto-formatting, e.g. line breaks translate to HTML
17
    * auto-formatting, e.g. line breaks translate to HTML
17
    * parts for extensibility (e.g. news.htm, 2003-06.htm)
18
    * support for relative and absolute links
18
    * per-weblog configuration via a seperate config file (blog.conf)
19
    * extensibility through reusability
19
    * no dependency on any javascript, server-side scripting, or server-side
20
    * global configuration to set defaults (nb.conf)
20
      includes
21
    * per-weblog configuration to override global defaults (blog.conf)
21
    * no need for MySQL or any other special database (uses flat-file)
22
    * intelligent build system, only rebuilds relative parts for a modified entry
22
    * some small effort at shell portability
23
    * simple cache system, for faster content generation
24
    * auto-detection of weblog from current directory
25
    * no dependency on any java-script, server-side scripting, or server-side includes
26
    * no dependency on any special database (uses flat-file)
27
    * multi-platform portability (or at least wherever there's bash and the required commands)
23
28
24
WWW: http://home.columbus.rr.com/n1xt3r/nanoblogger/
29
WWW: http://nanoblogger.sourceforge.net/

Return to bug 83033