manlinker - another small Blosxom plugin
I am a lazy programmer, I am an admin and I don't like to type things
more than once if I can avoid it. hubertf has a world-class blog and he
carefully links all references to manpages like etcupdate(8) or rcorder(8)
and several others. I don't want to write the a href links all the time
so I wrote a small blosxom plugin for it. This plugin parses the article
for patterns like manpage(mansection) and converts it to a
HTML link to the NetBSD online manpages. Right now I don't have any fine
tuning possibilities inside the script, I just wanted something for
NetBSD. If someone sends me some feedback about it, I'll include other
manpage cgi script locations as well. FreeBSD has a very nice interface
to the manpages, including the NetBSD manpages. However, they don't have
NetBSD -current, so I am using the original NetBSD manpage script.
This plugin has no installation dependencies or other things to deal
with, just download it, drop it inside your blosxom plugins directory
and you are ready to go.
Download the plugin here
written by: Ulrich Habel (rhaen)
08/01/2008A blosxom plugin for gnats
During my work for pkgsrc I started to write articles for my blog and I
referred to several PRs from the NetBSD gnats system. However I just
wanted to type the PR in the form of e.g. NetBSD PR pkg/39230 and would
like to have my blog software to link to the webpage automatically. I
decided to write a small blosxom login for it and here it is.
gnats - blosxom plugin
A small plugin where you just type the PR number and blosxom will link against it. Guess what - all the three BSD project like FreeBSD, NetBSD and OpenBSD are supported right of the box. Ah, the default is NetBSD, of course.
Here is the current version of the plugin: download.
Please have a look at the perldoc configuration, too. Usually just drop the plugin into your plugins folder and it works right of the box.
NAME
gnats Plugin: gnats
SYNOPSIS
This plugin acts like a filter for your blosxom weblog. It replaces all occurrences of PR alike terms with the URL to the gnats system of the project. You don't have to care about writing in a special style, just write the text with the PR and it gets replaced. This includes the following forms:
NetBSD PR pkg/1337 NetBSD PR 1337 PR 1337
This will be translated to the corresponding URL to the gnats system of the project.
CONFIGURATION
The %gnats_system variable can be configured with the gnats system you would like to be parsed by this filter. The different BSD projects are using gnats, they have been already preconfigured. Note the form of the entries which is:
my %gnats_system = (
Project => '<url to gnats report view>,
);
The variable $default_gnats is used to determine the default project if the short form like 'PR 1232' is used. The value for this variable must match one of the Project values inside the %gnats_system.
my $default_gnats = 'NetBSD';
VERSION
0.1
AUTHOR
Ulrich Habel <rhaen@NetBSD.org>, see http://www.pkgbox.org/Plugins for new versions of this plugin.
LICENSE
This plugin is licensed under the terms of the revised BSD license.
written by: Ulrich Habel (rhaen)