[scponly] scponly working on OpenBSD - diff included
G 0kita
goo13c at gmail.com
Fri Oct 27 10:59:21 EDT 2006
Hey there, anyone out there having problems getting scponly 4.6 to work on
OpenBSD? This diff should help things out a little. Here are the details:
The LIB_LIST section that was put into /setup_chroot.sh for OpenBSD has been
moved into /build_extras/arch. Now that there's more OpenBSD specific
stuff, it makes sense to move it.
The /build_extras/arch/OpenBSD.*.sh have been moved to OpenBSD.*.sh.in to
use the /configure time @PROG_*@ settings.
/configure and /configure.in have been modified to support that change.
In /build_extras/arch/OpenBSD.pre.sh.in:
Test for the OpenBSD version because of the changes to ldd, and then
update LIB_LIST
Check for the libdb library and add in db4/libdb
Why? libdb is a soft link to db4/libdb and svnserve wants it there,
despite what ldd says.
I can't force ldd to move along the soft link, and I didn't want to
fight with svnserve when I could just do it this way.
Means there are two copies of libdb, but it's not all that big!
In /build_extras/arch/OpenBSD.post.sh.in:
No changes to the passwd lines.
$targetdir/dev/null needs to be created for scp to work
I create $targetdir/.ssh because of svn, if it's unused, no big deal.
$targetdir/tmp needs to be created user writable for svn.
this is a big change, this means there are two user writable
directories!
These changes assume the existance of several programs:
mknod awk sed expr
These are almost guaranteed to be there, but it's good to let you all know
anyways.
It compiles fine with --enable-chrooted-binary --enable-scp-compat
--enable-winscp-compat --enable-svn-compat --enable-svnserv-compat
scp, sftp and svn are working well so far, try it out and let me know how it
goes.
The important thing to note is that this creates a user writable directory
$targetdir/tmp. What do you guys think about that?
G 0kita
-------------- next part --------------
HTML attachment scrubbed and removed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scponly-4.6-OpenBSD.patch
Type: text/x-patch
Size: 5396 bytes
Desc: not available
Url : https://lists.ccs.neu.edu/pipermail/scponly/attachments/20061027/baf68ad4/attachment.bin
More information about the scponly
mailing list