Project

General

Profile

Mod waklog » History » Version 1

Joseph Foley, 2015-09-05 02:46

1 1 Joseph Foley
h1. Mod waklog
2
3
mod_waklog is an Apache module developed at UIC in the USA to allow apache webservers to get AFS tokens and access protected files.
4
5
h2. Links/reference
6
7
* DevNet source location: @/afs/dev.ru.is/project/devnet/modwaklog@
8
* mod_waklog website http://www.modwaklog.org
9
* Sourceforge for mod_waklog http://sourceforge.net/projects/modwaklog/
10
* David Boyes notes on Debian R/W AFS filedrawers https://lists.openafs.org/pipermail/openafs-info/2009-May/031480.html
11
* Stephen Quinney's patches.  Files below.  http://old.nabble.com/mod_waklog-tt33632100.html
12
** http://old.nabble.com/attachment/33632100/0/modwaklog-libs.patch
13
** http://old.nabble.com/attachment/33632100/1/modwaklog-weakcrypto.patch
14
* Aaron Knister's patches.  Files below. http://userpages.umbc.edu/~aaronk/waklog/patches_for_git
15
** http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/README
16
** http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/fix_build_scripts.patch
17
** http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/gnu_source.patch
18
** http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/have_stropts_h.patch
19
** http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/modwaklog.spec
20
** http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/waklog.conf
21
22
23
h2. Procedure
24
25
Assumes Ubuntu 12.04
26
27
# Grab the original 1.0 waklog source
28
<pre>git clone git://modwaklog.git.sourceforge.net/gitroot/modwaklog/modwaklog</pre>
29
# Grab Aaron's patches
30
<pre> mkdir patches-aaronk; cd patches-aaronk
31
wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/README
32
wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/fix_build_scripts.patch
33
wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/gnu_source.patch
34
wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/have_stropts_h.patch
35
wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/modwaklog.spec
36
wget http://userpages.umbc.edu/~aaronk/waklog/patches_for_git/waklog.conf
37
cd ..
38
</pre>
39
# Grab Stephen's packages
40
<pre>mkdir patches-stephen.quinny; cd patches-stephen.quinny
41
wget http://old.nabble.com/attachment/33632100/0/modwaklog-libs.patch
42
wget http://old.nabble.com/attachment/33632100/1/modwaklog-weakcrypto.patch
43
cd ..
44
</pre>
45
# Run the patches
46
<pre>patch -p1 < patches-aaronk/fix_build_scripts.patch
47
patch -p1 < patches-aaronk/have_stropts_h.patch
48
patch -p1 < patches-aaronk/gnu_source.patch
49
patch -p1 < patches-stephen.quinny/modwaklog-weakcrypto.patch
50
patch -p1 < patches-stephen.quinny/modwaklog-libs.patch
51
</pre>
52
# Regenerate build files (from INSTALL) and build with appropriate options.  
53
<pre>./regen
54
./configure --with-afs-libs=/usr/lib/afs --with-afs-headers=/usr/include/afs --with-apxs=/usr/bin/apxs2
55
make
56
</pre>
57
58
h2. Discussion
59
60
From openafs-info@openafs.org by Staffan Hamala <sh@ltu.se>
61
62
<pre>
63
I got mod_waklog to work on apache 2.2 at least.
64
65
I've found a lot of info in this posting:
66
https://lists.openafs.org/pipermail/openafs-info/2009-May/031480.html
67
68
Stephen Quinney's patches are available here:
69
http://old.nabble.com/mod_waklog-tt33632100.html
70
71
Aaron Knister's patches here:
72
http://userpages.umbc.edu/~aaronk/waklog/patches_for_git
73
74
I downloaded mod_waklog from git, and applied the patches in this order:
75
patch -p1 < ../patches_aaron_knister/fix_build_scripts.patch
76
patch -p1 < ../patches_aaron_knister/have_stropts_h.patch
77
patch -p1 < ../patches_aaron_knister/gnu_source.patch
78
79
patch -p1 < ../patches_stephen_quinney/modwaklog-weakcrypto.patch
80
patch -p1 < ../patches_stephen_quinney/modwaklog-libs.patch
81
82
83
As I said, mod_waklog seems to work perfectly. However, I haven't got filedrawers to work yet. It does not seem to work with PHP 5.4.11 and Smarty 3.1.13.
84
85
I've read that it should work with PHP 5.x, but apparently not with 5.4, though I think I managed to fix that. (by loading some module statically instead of using "dl" - dynamically loaded modules, which is deprecated in 5.4).
86
87
Smarty 3.1.13 seems to be more difficult, I just get strange error messages.
88
89
I've found a note somewhere that it does not work with Smarty 2.x, and that version 1.x works. Maybe version 3.x has the same problem, and we need to downgrade to version 1.x.
90
91
92
--S
93
</pre>