2012-03-10 05:55:27 -05:00
|
|
|
$OpenBSD: README,v 1.3 2012/03/10 10:55:27 landry Exp $
|
2010-11-15 12:37:16 -05:00
|
|
|
|
2011-06-02 09:41:36 -04:00
|
|
|
+-----------------------------------------------------------------------
|
|
|
|
| Running ${FULLPKGNAME} on OpenBSD
|
|
|
|
+-----------------------------------------------------------------------
|
2005-05-27 12:07:43 -04:00
|
|
|
|
2012-03-10 05:55:27 -05:00
|
|
|
Installing in a chroot
|
|
|
|
======================
|
|
|
|
|
2005-05-27 12:07:43 -04:00
|
|
|
In order to make A::G operate in a chrooted environment, it is
|
|
|
|
necessary to copy all of the relevant libraries and perl modules
|
|
|
|
that it employs into /var/www.
|
|
|
|
|
|
|
|
First, create the basic directory structure:
|
|
|
|
|
|
|
|
$ cd /var/www
|
|
|
|
# mkdir -p tmp usr
|
|
|
|
# chown www:www tmp (needs to be writeable for the www user)
|
|
|
|
|
|
|
|
$ cd /var/www/
|
2008-10-08 09:14:15 -04:00
|
|
|
# mkdir -p .${LOCALBASE}/lib
|
2005-05-27 12:07:43 -04:00
|
|
|
|
|
|
|
$ cd /var/www/usr
|
|
|
|
# mkdir -p libdata/perl5 libexec {.,X11R6}/lib
|
|
|
|
|
|
|
|
Next, the run-time link-editor:
|
|
|
|
|
|
|
|
$ cd /var/www/usr/libexec
|
|
|
|
# cp -p /usr/libexec/ld.so .
|
|
|
|
|
|
|
|
Next, the required shared libraries:
|
|
|
|
|
|
|
|
$ cd /var/www/usr/lib
|
2012-03-10 05:55:27 -05:00
|
|
|
# cp -p /usr/lib/lib{c,m,z,util,perl,ssl,stdc++}.so* .
|
2005-05-27 12:07:43 -04:00
|
|
|
|
|
|
|
$ cd /var/www/usr/X11R6/lib
|
2009-12-23 13:58:54 -05:00
|
|
|
# cp -p /usr/X11R6/lib/lib{Xext,freetype,X11,Xau,Xdmcp,xcb,pthread-stubs}.so.* .
|
2005-05-27 12:07:43 -04:00
|
|
|
|
|
|
|
Next, the Perl base:
|
|
|
|
|
|
|
|
$ cd /var/www/usr/libdata
|
|
|
|
# cp -pR /usr/libdata/perl5 .
|
|
|
|
|
2012-03-10 05:55:27 -05:00
|
|
|
Finally, install p5-Apache-Gallery and all its deps in the chroot
|
2005-05-27 12:07:43 -04:00
|
|
|
|
2012-03-10 05:55:27 -05:00
|
|
|
# env PKG_DBDIR=/var/www/var/db/pkg pkg_add -B /var/www p5-Apache-Gallery
|
2005-05-27 12:07:43 -04:00
|
|
|
|
|
|
|
Setting up httpd
|
2011-06-02 09:41:36 -04:00
|
|
|
================
|
2005-05-27 12:07:43 -04:00
|
|
|
|
2012-03-10 05:55:27 -05:00
|
|
|
To enable gallery you need to edit /var/www/conf/modules.sample/apache-gallery.conf
|
|
|
|
to fit your needs then create a symlink like this :
|
|
|
|
|
|
|
|
# ln -s ../modules.sample/apache-gallery.conf \
|
|
|
|
/var/www/conf/modules
|
|
|
|
# /etc/rc.d/httpd restart
|
|
|
|
|
|
|
|
Finally, create a /var/www/htdocs/gallery directory, put your favourite
|
|
|
|
pictures inside it, and browse to your.server.tld/gallery.
|