Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Nov 2009 03:57:31 GMT
From:      Johan Huldtgren <jhuldtgren@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/140290: New port: www/blogsum Simple weblog
Message-ID:  <200911050357.nA53vVmL024014@www.freebsd.org>
Resent-Message-ID: <200911050400.nA540CeA077695@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140290
>Category:       ports
>Synopsis:       New port: www/blogsum Simple weblog
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 05 04:00:12 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Johan Huldtgren
>Release:        7.2-STABLE
>Organization:
>Environment:
FreeBSD absu.home.huldtgren.net 7.2-STABLE FreeBSD 7.2-STABLE #11: Fri Aug 28 21:38:16 EDT 2009     root@absu.home.huldtgren.net:/usr/obj/usr/src/sys/ABSU  i386
>Description:
Blogsum is a weblog application with a focus on simplicity and security.
It was designed from scratch to be easy to use and easier to maintain.

WWW: http://blogsum.obfuscurity.com/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	blogsum
#	blogsum/Makefile
#	blogsum/pkg-descr
#	blogsum/distinfo
#	blogsum/pkg-plist
#	blogsum/files
#	blogsum/files/pkg-message.in
#
echo c - blogsum
mkdir -p blogsum > /dev/null 2>&1
echo x - blogsum/Makefile
sed 's/^X//' >blogsum/Makefile << 'ab73e1d34ced0d1c7dff61a56fba8f2c'
X# New ports collection makefile for:   blogsum
X# Date created:        2 November 2009
X# Whom:                jhuldtgren
X#
X# $FreeBSD$
X#
X
XPORTNAME=	blogsum
XPORTVERSION=	0.9
XCATEGORIES=	www
XMASTER_SITES=	http://www.dixongroup.net/
X
XMAINTAINER=	jhuldtgren@gmail.com
XCOMMENT=	Simple weblog
X
XWWWROOT?=	${PREFIX}/www/data
X
XPERL_MODULES=	${APXS}:${PORTSDIR}/${APACHE_PORT} \
X		${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
X		${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite \
X		${SITE_PERL}/XML/RSS.pm:${PORTSDIR}/textproc/p5-XML-RSS \
X		${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple \
X		${SITE_PERL}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template \
X		${SITE_PERL}/HTTP/Lite.pm:${PORTSDIR}/www/p5-HTTP-Lite
X
XNO_BUILD=	yes
XUSE_PERL5_RUN=	yes
X
X.if defined(WITH_APACHE2)
XUSE_APACHE=	2.0+
X.else
XUSE_APACHE=	1.3+
X.endif
X
X.if defined(WITH_APACHE2)
XPERL_MODULES+=	${LOCALBASE}/${APACHEMODDIR}/mod_perl.so:${PORTSDIR}/www/mod_perl2
XDEPENDS_ARGS+=	WITHOUT_MODPERL=yes
XDEPENDS_ARGS+=	WITH_MODPERL2=yes
X.else
X# XXX - probe for static mod_perl using `httpd -l | grep perl`
XPERL_MODULES+=	${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl \
X		${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq
X.endif
X
XRUN_DEPENDS+=	${PERL_MODULES}
XPLIST_SUB=	WWWROOT=${WWWROOT:S,${PREFIX}/,,}
X
XSUB_FILES=	pkg-message
XSUB_LIST=	WWWROOT=${WWWROOT} APACHEETCDIR=${APACHEETCDIR} APACHEMODDIR=${APACHEMODDIR}
X
X.include <bsd.port.pre.mk>
X
Xpre-everything::
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "You may set following options:"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "WITH_APACHE2=1			Use apache2+ instead of apache 1.3"
X	@${ECHO_MSG} "WWWROOT=${PREFIX}/www/data        Where do you put httpd's document root?"
X	@${ECHO_MSG} ""
X
Xdo-install:
X	${MKDIR} ${WWWROOT}/blogsum
X	@ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWROOT}/blogsum
X
Xpost-install:
X	@${ECHO_MSG} ""
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_MSG} ""
X
X.include <bsd.port.post.mk>
ab73e1d34ced0d1c7dff61a56fba8f2c
echo x - blogsum/pkg-descr
sed 's/^X//' >blogsum/pkg-descr << 'c561d52be81ff3c179ba28dbdd783ee2'
XBlogsum is a weblog application with a focus on simplicity and security.
XIt was designed from scratch to be easy to use and easier to maintain.
X
XWWW: http://blogsum.obfuscurity.com/
c561d52be81ff3c179ba28dbdd783ee2
echo x - blogsum/distinfo
sed 's/^X//' >blogsum/distinfo << 'e480ebf8196df7e69f7bc34931b53e2c'
XMD5 (blogsum-0.9.tar.gz) = 0eaf8b13cd3a2720ee7a93e3e2c4bcd9
XSHA256 (blogsum-0.9.tar.gz) = 2d5b5cdf7f9013df179b5df781a097c3d258d2794aa388ad69b1a0df1fcdda42
XSIZE (blogsum-0.9.tar.gz) = 19444
e480ebf8196df7e69f7bc34931b53e2c
echo x - blogsum/pkg-plist
sed 's/^X//' >blogsum/pkg-plist << 'f84bca5996ae0fcb9b82c64d05cfa399'
X%%WWWROOT%%/blogsum/Blogsum/Config.pm.dist
X%%WWWROOT%%/blogsum/admin.cgi
X%%WWWROOT%%/blogsum/docs/LICENSE
X%%WWWROOT%%/blogsum/docs/LICENSE.images
X%%WWWROOT%%/blogsum/docs/README
X%%WWWROOT%%/blogsum/examples/create_sqlite.sql
X%%WWWROOT%%/blogsum/examples/httpd-blogsum.conf
X%%WWWROOT%%/blogsum/examples/wp2blogsum.pl
X%%WWWROOT%%/blogsum/index.cgi
X%%WWWROOT%%/blogsum/startup.pl
X%%WWWROOT%%/blogsum/themes/default/admin.tmpl
X%%WWWROOT%%/blogsum/themes/default/images/asterisk-green.gif
X%%WWWROOT%%/blogsum/themes/default/images/asterisk-red.gif
X%%WWWROOT%%/blogsum/themes/default/images/check.gif
X%%WWWROOT%%/blogsum/themes/default/images/delete.gif
X%%WWWROOT%%/blogsum/themes/default/images/draft-disabled.gif
X%%WWWROOT%%/blogsum/themes/default/images/draft.gif
X%%WWWROOT%%/blogsum/themes/default/images/play-disabled.gif
X%%WWWROOT%%/blogsum/themes/default/images/play.gif
X%%WWWROOT%%/blogsum/themes/default/images/plus.gif
X%%WWWROOT%%/blogsum/themes/default/images/xml.gif
X%%WWWROOT%%/blogsum/themes/default/index.tmpl
X%%WWWROOT%%/blogsum/themes/default/style.css
X@exec mkdir -p %D %%WWWROOT%%/blogsum/data/
X@dirrm %%WWWROOT%%/blogsum/Blogsum
X@dirrm %%WWWROOT%%/blogsum/data
X@dirrm %%WWWROOT%%/blogsum/docs
X@dirrm %%WWWROOT%%/blogsum/examples
X@dirrm %%WWWROOT%%/blogsum/themes/default/images
X@dirrm %%WWWROOT%%/blogsum/themes/default
X@dirrm %%WWWROOT%%/blogsum/themes
X@dirrm %%WWWROOT%%/blogsum/
f84bca5996ae0fcb9b82c64d05cfa399
echo c - blogsum/files
mkdir -p blogsum/files > /dev/null 2>&1
echo x - blogsum/files/pkg-message.in
sed 's/^X//' >blogsum/files/pkg-message.in << 'f5baae7271b566b55eae148e886a5b4a'
X# To finish installing Blogsum, the following steps must be completed.
X
X1)  Setup the SQLite database:
X
X	$ sudo -u www sqlite3 %%WWWROOT%%/blogsum/data/site.db < \
X		%%WWWROOT%%/blogsum/examples/create_sqlite.sql
X
X2)  Create your local configuration and modify as necessary:
X
X	$ sudo cp %%WWWROOT%%/blogsum/Blogsum/Config.pm.dist \
X		%%WWWROOT%%/blogsum/Blogsum/Config.pm
X
X3)  If comments will be enabled, visit the CAPTCHA (http://www.captcha.net/)
X    project and register your account.  Add your keys to Config.pm.
X
X4)  Edit the example httpd-blogsum.conf and enable it for your site:
X
X	$ sudo cp %%WWWROOT%%/blogsum/examples/httpd-blogsum.conf %%PREFIX%%/%%APACHEETCDIR%%/conf
X
X5)  Create your AuthUserFile file as defined in httpd-blogsum.conf:
X
X	$ sudo htpasswd -c %%APACHEETCDIR%%/conf/blogsum.htpasswd
X
X6)  Enable the following modules in %%APACHEETCDIR%%/httpd.conf:
X
X	LoadModule rewrite_module	%%APACHEMODDIR%%/mod_rewrite.so
X	LoadModule proxy_module		%%APACHEMODDIR%%/libproxy.so
X	LoadModule perl_module		%%APACHEMODDIR%%/mod_perl.so
X
X7)  Stop and start your Apache service.
X
X
XThe installation should now be complete.  Your blogsum installation can be
Xviewed at http://localhost/blogsum/index.cgi.  Posts can be created and
Xedited at http://localhost/blogsum/admin.cgi.
X
XPlease refer to the online support resources if you have questions.
X
X	http://blogsum.obfuscurity.com/
f5baae7271b566b55eae148e886a5b4a
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911050357.nA53vVmL024014>