ports/84817: [maintainer update] Reorganize the port's layout and content.

Julien Gabel jpeg at thilelli.net
Thu Aug 11 20:30:21 UTC 2005


>Number:         84817
>Category:       ports
>Synopsis:       [maintainer update] Reorganize the port's layout and content.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 11 20:30:20 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Julien Gabel
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD titeuf.thilelli.net 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun Aug 7 04:56:27 CEST 2005 root at titeuf.thilelli.net:/usr/obj/usr/src/sys/TITEUF i386

>Description:
Because the port is unmaintained and i am using it, i am volunteering to become its maintainer.

The proposed patch/update includes the following:
 - Make portlint(1) happy (portlint -A)
 - Add the files: 'pkg-plist' and 'pkg-message'
 - The port conforms a little more to FreeBSD Porter's Handbook
 - Validate a complete recommended test ordering from porting-testing.html

>How-To-Repeat:
n.a.

>Fix:
--- nanoblogger.patch begins here ---
diff -ruN www/nanoblogger/Makefile /u/jgabel/tmp/nanoblogger/Makefile
--- www/nanoblogger/Makefile	Fri Jul  8 06:01:16 2005
+++ /u/jgabel/tmp/nanoblogger/Makefile	Thu Aug 11 20:45:48 2005
@@ -12,7 +12,7 @@
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	jpeg at thilelli.net
 COMMENT=	Small weblog engine for the UNIX command line
 
 RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
@@ -20,29 +20,22 @@
 USE_REINPLACE=	yes
 NO_BUILD=	yes
 
-PLIST_FILES=	bin/nb etc/nb.conf.default
-
-.if !defined(NOPORTDOCS)
-PORTDOCS=	*
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/nb ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/nb.conf ${PREFIX}/etc/nb.conf.default
+	${INSTALL_DATA} ${WRKSRC}/nb.conf ${PREFIX}/etc/nb.conf.sample
 	@${MKDIR} ${DATADIR}
 .for dir in default moods plugins
 	${CP} -R ${WRKSRC}/${dir} ${DATADIR}
 .endfor
-	@${FIND} ${DATADIR} ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${DATADIR} -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
+
+post-install:
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/nanoblogger.html ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/docs/nanoblogger.html ${DOCSDIR}
 .endif
+	@${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -ruN www/nanoblogger/pkg-descr /u/jgabel/tmp/nanoblogger/pkg-descr
--- www/nanoblogger/pkg-descr	Fri Jul  8 06:01:16 2005
+++ /u/jgabel/tmp/nanoblogger/pkg-descr	Wed Aug 10 20:54:20 2005
@@ -16,14 +16,9 @@
     * plugins for calendar, recent entries, weblog status, fortunes, etc.
     * auto-formatting, e.g. line breaks translate to HTML
     * support for relative and absolute links
-    * extensibility through reusability
-    * global configuration to set defaults (nb.conf)
-    * per-weblog configuration to override global defaults (blog.conf)
-    * intelligent build system, only rebuilds relative parts for a modified entry
-    * simple cache system, for faster content generation
-    * auto-detection of weblog from current directory
-    * no dependency on any java-script, server-side scripting, or server-side includes
-    * no dependency on any special database (uses flat-file)
-    * multi-platform portability (or at least wherever there's bash and the required commands)
+    * [...]
 
 WWW: http://nanoblogger.sourceforge.net/
+
+- Julien Gabel
+jpeg at thilelli.net
diff -ruN www/nanoblogger/pkg-message /u/jgabel/tmp/nanoblogger/pkg-message
--- www/nanoblogger/pkg-message	Thu Jan  1 01:00:00 1970
+++ /u/jgabel/tmp/nanoblogger/pkg-message	Thu Aug 11 20:48:34 2005
@@ -0,0 +1,10 @@
+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.
+
+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
diff -ruN www/nanoblogger/pkg-plist /u/jgabel/tmp/nanoblogger/pkg-plist
--- www/nanoblogger/pkg-plist	Thu Jan  1 01:00:00 1970
+++ /u/jgabel/tmp/nanoblogger/pkg-plist	Thu Aug 11 16:08:35 2005
@@ -0,0 +1,79 @@
+bin/nb
+etc/nb.conf.sample
+%%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/styles/nb_clean.css
+%%DATADIR%%/default/styles/nb_default.css
+%%DATADIR%%/default/styles/nb_rusted.css
+%%DATADIR%%/default/styles/nb_spring.css
+%%DATADIR%%/default/templates/category_archive.htm
+%%DATADIR%%/default/templates/entry.htm
+%%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%%/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/01_mymood.off
+%%DATADIR%%/plugins/archive/master_index.sh
+%%DATADIR%%/plugins/archive/month/month_calendar.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/mod/base_url.sh
+%%DATADIR%%/plugins/entry/mod/moods.sh
+%%DATADIR%%/plugins/fortune.sh
+%%DATADIR%%/plugins/makepage/tidy.sh
+%%DATADIR%%/plugins/page/feed_links.sh
+%%DATADIR%%/plugins/page/page_links.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
+ at dirrm %%DATADIR%%/plugins/page
+ at dirrm %%DATADIR%%/plugins/makepage
+ at dirrm %%DATADIR%%/plugins/entry/mod
+ at dirrm %%DATADIR%%/plugins/entry
+ at dirrm %%DATADIR%%/plugins/archive/month
+ at dirrm %%DATADIR%%/plugins/archive
+ at dirrm %%DATADIR%%/plugins
+ at dirrm %%DATADIR%%/moods/smilies
+ at dirrm %%DATADIR%%/moods
+ at dirrm %%DATADIR%%/default/templates
+ at dirrm %%DATADIR%%/default/styles
+ at dirrm %%DATADIR%%/default/images
+ at dirrm %%DATADIR%%/default/data
+ at dirrm %%DATADIR%%/default/articles
+ at dirrm %%DATADIR%%/default
+ at dirrm %%DATADIR%%
+ at dirrm %%DOCSDIR%%
--- nanoblogger.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list