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

(-)/u/jgabel/tmp/nanoblogger/Makefile (-13 / +6 lines)
Lines 12-18 Link Here
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	jpeg@thilelli.net
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/bash
18
RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
Lines 20-48 Link Here
20
USE_REINPLACE=	yes
20
USE_REINPLACE=	yes
21
NO_BUILD=	yes
21
NO_BUILD=	yes
22
22
23
PLIST_FILES=	bin/nb etc/nb.conf.default
24
25
.if !defined(NOPORTDOCS)
26
PORTDOCS=	*
27
.endif
28
29
post-patch:
23
post-patch:
30
	@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb
24
	@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb
31
25
32
do-install:
26
do-install:
33
	${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin
27
	${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin
34
	${INSTALL_DATA} ${WRKSRC}/nb.conf ${PREFIX}/etc/nb.conf.default
28
	${INSTALL_DATA} ${WRKSRC}/nb.conf ${PREFIX}/etc/nb.conf.sample
35
	@${MKDIR} ${DATADIR}
29
	@${MKDIR} ${DATADIR}
36
.for dir in default moods plugins
30
.for dir in default moods plugins
37
	${CP} -R ${WRKSRC}/${dir} ${DATADIR}
31
	${CP} -R ${WRKSRC}/${dir} ${DATADIR}
38
.endfor
32
.endfor
39
	@${FIND} ${DATADIR} ! -type d | \
33
40
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
34
post-install:
41
	@${FIND} ${DATADIR} -type d | ${SORT} -r | \
42
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
43
.if !defined(NOPORTDOCS)
35
.if !defined(NOPORTDOCS)
44
	@${MKDIR} ${DOCSDIR}
36
	@${MKDIR} ${DOCSDIR}
45
	${INSTALL_DATA} ${WRKSRC}/docs/nanoblogger.html ${DOCSDIR}
37
	${INSTALL_MAN} ${WRKSRC}/docs/nanoblogger.html ${DOCSDIR}
46
.endif
38
.endif
39
	@${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
47
40
48
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)/u/jgabel/tmp/nanoblogger/pkg-descr (-9 / +4 lines)
Lines 16-29 Link Here
16
    * plugins for calendar, recent entries, weblog status, fortunes, etc.
16
    * plugins for calendar, recent entries, weblog status, fortunes, etc.
17
    * auto-formatting, e.g. line breaks translate to HTML
17
    * auto-formatting, e.g. line breaks translate to HTML
18
    * support for relative and absolute links
18
    * support for relative and absolute links
19
    * extensibility through reusability
19
    * [...]
20
    * global configuration to set defaults (nb.conf)
21
    * per-weblog configuration to override global defaults (blog.conf)
22
    * intelligent build system, only rebuilds relative parts for a modified entry
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)
28
20
29
WWW: http://nanoblogger.sourceforge.net/
21
WWW: http://nanoblogger.sourceforge.net/
22
23
- Julien Gabel
24
jpeg@thilelli.net
(-)/u/jgabel/tmp/nanoblogger/pkg-message (+10 lines)
Line 0 Link Here
1
POST-INSTALLATION NOTES:
2
3
Before you can use NanoBlogger, you will have to create a global configuration file
4
to set defaults information and paths to template files.
5
6
A sample configuration file has been installed in:
7
 %%PREFIX%%/etc/nb.conf.sample
8
9
Since there are already some sensible default settings, you can begin with:
10
 cp %%PREFIX%%/etc/nb.conf.sample %%PREFIX%%/etc/nb.conf
(-)/u/jgabel/tmp/nanoblogger/pkg-plist (+79 lines)
Line 0 Link Here
1
bin/nb
2
etc/nb.conf.sample
3
%%DOCSDIR%%/nanoblogger.html
4
%%DATADIR%%/default/articles/example.html
5
%%DATADIR%%/default/articles/example.txt
6
%%DATADIR%%/default/atom.xml
7
%%DATADIR%%/default/blog.conf
8
%%DATADIR%%/default/data/2005-06-02T20_48_35.txt
9
%%DATADIR%%/default/data/cat_1.db
10
%%DATADIR%%/default/images/favicon.ico
11
%%DATADIR%%/default/index.html
12
%%DATADIR%%/default/index.xml
13
%%DATADIR%%/default/styles/nb_clean.css
14
%%DATADIR%%/default/styles/nb_default.css
15
%%DATADIR%%/default/styles/nb_rusted.css
16
%%DATADIR%%/default/styles/nb_spring.css
17
%%DATADIR%%/default/templates/category_archive.htm
18
%%DATADIR%%/default/templates/entry.htm
19
%%DATADIR%%/default/templates/main_index.htm
20
%%DATADIR%%/default/templates/main_links.htm
21
%%DATADIR%%/default/templates/makepage.htm
22
%%DATADIR%%/default/templates/month_archive.htm
23
%%DATADIR%%/default/templates/permalink.htm
24
%%DATADIR%%/default/templates/permalink_entry.htm
25
%%DATADIR%%/default/templates/weblog_status.htm
26
%%DATADIR%%/moods/moods.conf
27
%%DATADIR%%/moods/mymood.txt
28
%%DATADIR%%/moods/smilies/angry.gif
29
%%DATADIR%%/moods/smilies/cheesy.gif
30
%%DATADIR%%/moods/smilies/cool.gif
31
%%DATADIR%%/moods/smilies/cry.gif
32
%%DATADIR%%/moods/smilies/embarassed.gif
33
%%DATADIR%%/moods/smilies/grin.gif
34
%%DATADIR%%/moods/smilies/huh.gif
35
%%DATADIR%%/moods/smilies/kiss.gif
36
%%DATADIR%%/moods/smilies/laugh.gif
37
%%DATADIR%%/moods/smilies/lipsrsealed.gif
38
%%DATADIR%%/moods/smilies/rolleyes.gif
39
%%DATADIR%%/moods/smilies/sad.gif
40
%%DATADIR%%/moods/smilies/shocked.gif
41
%%DATADIR%%/moods/smilies/smiley.gif
42
%%DATADIR%%/moods/smilies/tongue.gif
43
%%DATADIR%%/moods/smilies/wink.gif
44
%%DATADIR%%/plugins/01_mymood.off
45
%%DATADIR%%/plugins/archive/master_index.sh
46
%%DATADIR%%/plugins/archive/month/month_calendar.sh
47
%%DATADIR%%/plugins/atom.sh
48
%%DATADIR%%/plugins/calendar.sh
49
%%DATADIR%%/plugins/entry/category_links.sh
50
%%DATADIR%%/plugins/entry/mod/auto_break.sh
51
%%DATADIR%%/plugins/entry/mod/base_url.sh
52
%%DATADIR%%/plugins/entry/mod/moods.sh
53
%%DATADIR%%/plugins/fortune.sh
54
%%DATADIR%%/plugins/makepage/tidy.sh
55
%%DATADIR%%/plugins/page/feed_links.sh
56
%%DATADIR%%/plugins/page/page_links.off
57
%%DATADIR%%/plugins/recent_entries.sh
58
%%DATADIR%%/plugins/rss.sh
59
%%DATADIR%%/plugins/rss2.sh
60
%%DATADIR%%/plugins/weblog_links.sh
61
%%DATADIR%%/plugins/weblog_status.sh
62
%%DATADIR%%/plugins/zyx_articles.sh
63
@dirrm %%DATADIR%%/plugins/page
64
@dirrm %%DATADIR%%/plugins/makepage
65
@dirrm %%DATADIR%%/plugins/entry/mod
66
@dirrm %%DATADIR%%/plugins/entry
67
@dirrm %%DATADIR%%/plugins/archive/month
68
@dirrm %%DATADIR%%/plugins/archive
69
@dirrm %%DATADIR%%/plugins
70
@dirrm %%DATADIR%%/moods/smilies
71
@dirrm %%DATADIR%%/moods
72
@dirrm %%DATADIR%%/default/templates
73
@dirrm %%DATADIR%%/default/styles
74
@dirrm %%DATADIR%%/default/images
75
@dirrm %%DATADIR%%/default/data
76
@dirrm %%DATADIR%%/default/articles
77
@dirrm %%DATADIR%%/default
78
@dirrm %%DATADIR%%
79
@dirrm %%DOCSDIR%%

Return to bug 84817