description A blogging package written in Java.
long_description Blojsom is a full-featured, multi-user, multi-blog package written in Java \
that was inspired by blosxom. blojsom aims to retain the simplicity \
in design of its Perl-based "relative" while adding user flexibility \
in areas such as the flavors, templating, plugins, and the ability to \
run a multi-user blog with a single blojsom installation.
homepage http://www.blojsom.com
distname ${name}-${version}-source
master_sites sourceforge:project/blojsom/OldFiles
checksums md5 b5aef7e3ebd5840e2d757c61f21df52b
depends_build bin:ant:apache-ant
depends_lib bin:java:kaffe
set blog_home ${prefix}/var/db/${name}
default_variants +tomcat5
depends_lib-append port:tomcat5
extract.dir ${worksrcpath}
file mkdir "${worksrcpath}"
set webInf ${worksrcpath}/war/WEB-INF
reinplace s|blojsom-blog-home=|blojsom-blog-home=${blog_home}| ${webInf}/blojsom.properties
# Ensure needed directories
${destroot}${prefix}/share/java \
${destroot}${prefix}/share/doc
# Make a place to store blog entries
xinstall -m 775 -d ${destroot}${blog_home}/default
destroot.keepdirs-append ${destroot}${blog_home}/default
system "chown -R ${blojsom_user}:${blojsom_group} ${destroot}${blog_home}"
system "chmod -R 775 ${destroot}${blog_home}"
# Install the war where it can be found