Gents and Ladies, just announcing a new 'ebuild' package for gentoo users that will install aolserver-4.0 beta2.
Link is here: http://bugs.gentoo.org/show_bug.cgi?id=17181
Link for aolserver-modules ebuild package is here: http://bugs.gentoo.org/show_bug.cgi?id=17182
Note that the second package is also needed, as it installs nspostgres and the other 4 modules I was recommended would be needed.
These install scripts have been tested, but please send me feedback.
Motivation
It has bothered me that I have to wade through several pages of installation instructions several times to get openacs up and running, and now that I've started using gentoo, it's easy to write my own from-source package for aolserver and its modules. I'll be making equivalent packages for installing openacs point releases hopefully as I get my own projects running.
Previous work
Many openacs users and developers get their aolserver from Mat's AOLServer distribution (linked from many places, but link is dead??), which is great to save time but is a dated package. There are various other things (e.g. a debian 3.3ad13 package) floating around but not much in the way of new aolserver packages (for aolsever >=3.5). Hopefully, we'll soon see things like webdav as a module for aolserver 4.0 (it also apparently has i18n support among other improvements).
Gentoo aolserver packages are have some differences from traditional aolserver installations
I have taken the liberty while making this package to digest and ruminate on the various thoughts on security and e.g. complying with the FHS file-system layout standards (FHS is a part of LSB). My package departs from having aolserver installed in /usr/local/aolserver and follows fairly closely to the way that apache is installed under gentoo. Gentoo follows LHS, and their apache installation is an example of current attitudes toward security and FHS-compliance. Examples I have adopted for my aolserver package:
- Location: installed to /home/aolserver (apache goes into /home/apache). This makes sense because although apache and aolserver are services, they run as a user which has its own home dir. I believe this is a result of interpretation of the FHS that Gentoo follows. Further, it is a move away from having e.g. /home/httpd (one could have in theory several httpds after all) and from /usr/local/httpd. Further,
- User is aolserver. No more 'what is this nsadmin user?'. Aolserver is the package, product, user, and home dir.
Couldn't be clearer. When one sets up aolserver to run as a service, one should invoke
./bin/nsd -t sample-config.tcl -u aolserver -g web. - Aolserver's dir is owned by root.root, just like apache. Aolserver is started as root to grab port 80 but then drops priveleges to run as aolserver, which cannot edit the nsd and module binaries, a security hazard discussed in these threads: Reference Platforms and Supported Platforms and Installation documentation and file permissions.
- My package does these things: add user aolserver, add group web if it doesn't already exist, compile and install aolserver binaries, installs man page, chown's /home/aolserver to root.root except logs/ and web/ are root.web.
- If you want to install to /usr/local/aolserver, simply change the ${AOLSERVER_HOMEDIR} variable in the eb
Request notifications