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,
and works inside or outside of the OpenBSD httpd chroot with no changes.

suggestions from and ok phessler@
This commit is contained in:
jdixon 2009-09-29 04:45:18 +00:00
parent 7b8adcb96a
commit 5dfb96003d
7 changed files with 178 additions and 0 deletions

48
www/blogsum/Makefile Normal file
View File

@ -0,0 +1,48 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/09/29 04:45:18 jdixon Exp $
COMMENT = simple weblog
DISTNAME = blogsum-0.9
CATEGORIES = www
HOMEPAGE = http://blogsum.obfuscurity.com/
MAINTAINER = Jason Dixon <jdixon@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://www.dixongroup.net/
NO_BUILD = Yes
NO_REGRESS = Yes
PKG_ARCH = *
PREFIX = /var/www
INSTDIR = ${PREFIX}/blogsum
SUBST_VARS = INSTDIR EXAMPLESDIR
EXAMPLESDIR = ${PREFIX}/blogsum/examples
RUN_DEPENDS = ::databases/p5-DBD-SQLite \
::databases/p5-DBI \
::textproc/p5-XML-RSS \
::textproc/p5-XML-Simple \
::www/mod_perl \
::www/p5-HTML-Template \
::www/p5-HTTP-Lite
post-extract:
@cp ${FILESDIR}/README.OpenBSD ${WRKSRC}/docs/
pre-configure:
${SUBST_CMD} ${WRKSRC}/docs/README.OpenBSD \
${WRKSRC}/examples/httpd-blogsum.conf
do-install:
@find ${WRKDIST} -name \*.bak -or -name \*.orig | xargs rm
@cp -R ${WRKDIST} ${INSTDIR}
.include <bsd.port.mk>

5
www/blogsum/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (blogsum-0.9.tar.gz) = Dq+LE806JyDuepPj4sS82Q==
RMD160 (blogsum-0.9.tar.gz) = 2Ae3auVSNOTmMhWg/q7qRAxfon8=
SHA1 (blogsum-0.9.tar.gz) = 0syPBr5vMPrv2a5+IEKCJm/GAI4=
SHA256 (blogsum-0.9.tar.gz) = LVtc33+QE98Xm133gaCXw9JY0nlKo4itabGg3x/N2kI=
SIZE (blogsum-0.9.tar.gz) = 19444

View File

@ -0,0 +1,46 @@
# Blogsum README.OpenBSD
# To finish installing Blogsum, the following steps must be completed.
1) Enable the mod_perl module:
$ sudo mod_perl-enable
2) Setup the SQLite database:
$ sudo -u www sqlite3 ${INSTDIR}/data/site.db < \
${EXAMPLESDIR}/create_sqlite.sql
3) Create your local configuration and modify as necessary:
$ sudo cp ${INSTDIR}/Blogsum/Config.pm.dist \
${INSTDIR}/Blogsum/Config.pm
4) If comments will be enabled, visit the CAPTCHA (http://www.captcha.net/)
project and register your account. Add your keys to Config.pm.
5) Edit the example httpd-blogsum.conf and enable it for your site:
$ sudo cp ${EXAMPLESDIR}/httpd-blogsum.conf ${PREFIX}/conf/modules/
6) Create your AuthUserFile file as defined in httpd-blogsum.conf:
$ sudo htpasswd -c ${PREFIX}/conf/blogsum.htpasswd
7) Enable the following modules in ${PREFIX}/conf/httpd.conf:
LoadModule rewrite_module /usr/lib/apache/modules/mod_rewrite.so
LoadModule proxy_module /usr/lib/apache/modules/libproxy.so
LoadModule perl_module /usr/lib/apache/modules/mod_perl.so
8) Stop and start your Apache service.
The installation should now be complete. Your blogsum installation can be
viewed at /index.cgi. Posts can be created and edited at /admin.cgi.
Please refer to the online support resources if you have questions.
http://blogsum.obfuscurity.com/
# EOF

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-examples_httpd-blogsum_conf,v 1.1.1.1 2009/09/29 04:45:18 jdixon Exp $
--- examples/httpd-blogsum.conf.orig Tue Sep 22 21:26:25 2009
+++ examples/httpd-blogsum.conf Tue Sep 22 21:26:36 2009
@@ -1,6 +1,6 @@
<VirtualHost *:80>
ServerName www.example.com
- DocumentRoot /var/www/blogsum
+ DocumentRoot ${INSTDIR}
DirectoryIndex index.cgi
Options +FollowSymlinks
@@ -17,7 +17,7 @@
<LocationMatch ^/index.cgi>
SetHandler perl-script
PerlHandler Apache::PerlRun
- PerlRequire /var/www/blogsum/startup.pl
+ PerlRequire ${INSTDIR}/startup.pl
Options ExecCGI
Order deny,allow
Allow from all
@@ -25,7 +25,7 @@
<LocationMatch ^/admin.cgi>
SetHandler perl-script
PerlHandler Apache::PerlRun
- PerlRequire /var/www/blogsum/startup.pl
+ PerlRequire ${INSTDIR}/startup.pl
Options ExecCGI
Order deny,allow
Allow from all

2
www/blogsum/pkg/DESCR Normal file
View File

@ -0,0 +1,2 @@
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.

2
www/blogsum/pkg/MESSAGE Normal file
View File

@ -0,0 +1,2 @@
Please see ${INSTDIR}/docs/README.OpenBSD for
the remaining steps to installing Blogsum.

46
www/blogsum/pkg/PLIST Normal file
View File

@ -0,0 +1,46 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/09/29 04:45:18 jdixon Exp $
@owner root
@group daemon
blogsum/
blogsum/Blogsum/
@group bin
blogsum/Blogsum/Config.pm.dist
blogsum/admin.cgi
@owner www
@group daemon
blogsum/data/
@owner root
blogsum/docs/
@group bin
blogsum/docs/LICENSE
blogsum/docs/LICENSE.images
blogsum/docs/README
blogsum/docs/README.OpenBSD
@group daemon
blogsum/examples/
@group bin
blogsum/examples/create_sqlite.sql
blogsum/examples/httpd-blogsum.conf
blogsum/examples/wp2blogsum.pl
blogsum/index.cgi
blogsum/startup.pl
@group daemon
blogsum/themes/
blogsum/themes/default/
@group bin
blogsum/themes/default/admin.tmpl
@group daemon
blogsum/themes/default/images/
@group bin
blogsum/themes/default/images/asterisk-green.gif
blogsum/themes/default/images/asterisk-red.gif
blogsum/themes/default/images/check.gif
blogsum/themes/default/images/delete.gif
blogsum/themes/default/images/draft-disabled.gif
blogsum/themes/default/images/draft.gif
blogsum/themes/default/images/play-disabled.gif
blogsum/themes/default/images/play.gif
blogsum/themes/default/images/plus.gif
blogsum/themes/default/images/xml.gif
blogsum/themes/default/index.tmpl
blogsum/themes/default/style.css