DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-11-18 20:54:30

petasis
Member
Registered: 2007-06-23
Posts: 39

Compiled fun_plug 0.3. Any hinds towards subversion?

Hi all,

I am attempting to compile subversion natively to the DNS kernel (i.e. without chrooting to debian). I have downloaded fun_plug 0.3 from http://www.inreto.de/dns323/fun-plug/ , and build it under my kubuntu. (I had to use bash though instead of plain sh to get the scripts to run :-) ).

Now, I will attempt to compile subversion using the same environment. If anybody has any hints/suggestions, please do post them :-)

Thanks,

George

Last edited by petasis (2007-11-18 20:54:49)

Offline

 

#2 2007-11-19 01:18:37

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

I have compiled subversion 1.4.5 natively on the DNS (not chroot). I have used subversion 1.4.5 from the official site (http://subversion.tigris.org/),
with the following subversion.sh:

Code:

#!/bin/sh
set -xe
. ./functions.sh

rm -rf ${P}
unpack ${P}
unpack ${PN}-deps-${PV}
cd ${P}
for f in ${DISTDIR}/${P}-*.patch; do
    patch -Np1 -i $f
done

./configure \
    --cache-file=config.cache \
    --host=${CTARGET} \
    --prefix=${CPREFIX} \
    --mandir=${MANDIR} \
    --libdir=${LIBDIR} \
    --with-config-file-path=${CPREFIX}/etc \
    --enable-rpath \
    CFLAGS="${BUILD} -lpthread" \
    apr_cv_process_shared_works=no \
    ac_cv_func_setpgrp_void=yes \
    ac_cv_sizeof_size_t=4 \
    ac_cv_sizeof_ssize_t=4

## Generate the file "apr-util/uri/uri_delims.h"
cd apr-util/uri/
cc gen_uri_delims.c
./a.out > uri_delims.h
rm a.out
cd ../..

make -j4

make DESTDIR=${D} external-install local-install
  
makepkg

I was able to start svnserve from a fonz fun_plug telnet. So, my question is now what? Should we add this to the original fun_plug as additional packages? If so, what should I do? How do I have to contact?
If this is not to be integrated to the fun_plug, where should be put?

Thanks,

George

Offline

 

#3 2007-11-19 01:26:48

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

I have successfully tested svnserve with:

Code:

svnserve -d -r /mnt/HD_a2/svn/

and I was able to see the repository with tortoisesvn from my vista machine using the uri:

Code:

svn://192.168.1.4/Editor/trunk

(192.168.1.4 is the IP of my DNS)

So, my binaries seem to run fine!

George

Offline

 

#4 2007-11-19 02:24:46

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

And a small script to start the server:

Code:

#!/bin/sh

REPOSITORY="/mnt/HD_a2/svn/"

svnserve_start() {
    if [ -x "${BINDIR}/svnserve" ]; then
        echo "Starting svnserve deamon... "
        ${BINDIR}/svnserve -d -r ${REPOSITORY}
    else
        echo "ERROR: svnserve not found or not executable"
    fi
}

svnserve_stop() {
    killall svnserve
}

svnserve_status() {
    if [ -n "$(pidof svnserve)" ]; then
        echo "running"
    else
        echo "stopped"
    fi
}

case "$1" in
    stop)
        svnserve_stop
        ;;
    restart)
        svnserve_stop
        sleep 1
        svnserve_start
        ;;
    status)
        svnserve_status
        ;;
    start|'')
        svnserve_start
        ;;
    *)
        echo "Usage: $0 start|stop|restart|status"
        ;;
esac

Offline

 

#5 2007-11-19 16:21:29

dickeywang
Member
Registered: 2007-06-29
Posts: 59

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

Wow, thanks for sharing the script. I've been trying to setup a svnserver on my DNS for months.
just one question: how fast it is? It seems svn stores the data in a compressed format, so I am wondering how fast the ARM cpu when compressing data.

Offline

 

#6 2007-11-19 18:39:48

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

I really think that performance is adequate. I was using subversion through chroot to debian since last May, without a single problem.
Now that I compiled subversion natively, the performance is almost the same. However, I am using only the svn native protocol, and I don't access it through a web browser...

BTW, you can get my binaries from http://www.ellogon.org/~petasis/DNS323/ … ersion.rar .

George

Last edited by petasis (2007-11-19 18:41:05)

Offline

 

#7 2007-11-20 00:17:26

gareth
Member
Registered: 2007-06-28
Posts: 50

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

Can this be used with the OS X svnX ?

Offline

 

#8 2007-11-20 00:37:21

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

I really don't know. I suppose it will if it supports the svn:// protocol.

Offline

 

#9 2007-11-20 00:38:43

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

I think there may be a small problem with the binary files. I get errors while commiting changes. I will look into this...
So, for the time being, please wait for the next release of the binary files...

George

Offline

 

#10 2007-11-20 01:51:22

aleck
Member
Registered: 2007-02-04
Posts: 15

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

Great work petasis. I started getting this installed when I saw your last post. Anxiously waiting...

Offline

 

#11 2007-11-20 16:29:14

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

petasis wrote:

BTW, you can get my binaries from http://www.ellogon.org/~petasis/DNS323/ … ersion.rar .

The makepkg call in the build script should produce a packages/subversion-1.4.5.tgz archive that can be installed with funpkg.sh.For the package to be complete, you should add install commands for the start script and any sample config files (install to $D/...). I think funpkg format is a little more convenient.

Anyway, nice work!

Offline

 

#12 2007-11-20 17:12:56

gareth
Member
Registered: 2007-06-28
Posts: 50

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

George let me know when you have a stable release as I would love to use it.
Many thanks,
Gareth.

Offline

 

#13 2007-11-22 23:47:49

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

fonz wrote:

petasis wrote:

BTW, you can get my binaries from http://www.ellogon.org/~petasis/DNS323/ … ersion.rar .

The makepkg call in the build script should produce a packages/subversion-1.4.5.tgz archive that can be installed with funpkg.sh.For the package to be complete, you should add install commands for the start script and any sample config files (install to $D/...). I think funpkg format is a little more convenient.

Anyway, nice work!

Dear fonz,

If I understood correctly:

I just place the packages/subversion-1.4.5.tgz archive (created automatically) in a server. The user just downloads this archive, saves it in Volume_1 (/mnt/HD_a2) and just runs funpkg.sh which installs it? (That will be cool :-) ).
Or do I need to write a script for that? In this case, are there any "sample" scripts I can use as a starting point?

Regards,

George

Offline

 

#14 2007-11-22 23:51:13

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

I have posted new subversion binaries and started a new thread: http://dns323.kood.org/forum/viewtopic. … 7871#p7871

George

Offline

 

#15 2007-11-23 00:29:22

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Compiled fun_plug 0.3. Any hinds towards subversion?

petasis wrote:

I just place the packages/subversion-1.4.5.tgz archive (created automatically) in a server. The user just downloads this archive, saves it in Volume_1 (/mnt/HD_a2) and just runs funpkg.sh which installs it?

Exactly.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB