User Tools

Site Tools


projects:openwrt:devel:apps

Table of Contents

Environment

PATH=/home/jann/openwrt/trunk/staging_dir/toolchain-mipsel_gcc3.4.6/mipsel-linux/bin:$PATH

Wampes

Compiling

  • Copy old “src/setsp.c” to new directory
  • Search for “setsp.c” in “src/Makefile” and change Line 303 to “$(CC) -E $< > setsp.s; $(CC) -c setsp.s;; \”
  • Edit lib/configure
    • Point on Line 3 and 40 to your crosscompilerpath (CC=…../mipsel-linux-gcc)
    • Add ”-Os” and ”-DSINGLE_THREADED” to your CFLAGS in Line 4
    • Point your LIBS to your crosscompiled “libgdbm_compat.a” from the package “libgdm-dev” in Line 9
    • Remove some Lines starting from Line 47 to make System think “LIBDBM='gdbm'”
  • Copy your crosscompiled “libgdm-dev” (directories “include” and “lib”) to your crosscompileenvironment (make all DESTDIR=…)
  • Delete all INCLUDE-Lines concerning DBM in “util/mkhostdb.c, src/domain.c, tools/makeiprt.c” and just use ”#include <ndbm.h>”
  • Move libgdbm*.so temporary from your crosscompileenvironment for static building (so you don't need to provide libgdbm)

Packaging

Files in user-defined subdirectory:

/etc/rc.d/S98wampes         <- Link to /etc/init.d/wampes
/etc/init.d/wampes
/CONTROL
/CONTROL/control
/CONTROL/conffiles
/usr/local/wampes/net    
/usr/local/wampes/net.rc

File /etc/init.d/wampes

#!/bin/sh /etc/rc.common
 
START=98
STOP=98
 
start() {
  if [ ! -d /tmp/tcp ] ; then
    mkdir /tmp/tcp
    ln -s /usr/local/wampes/net /tmp/tcp/net
    ln -s /usr/local/wampes/net.rc /tmp/tcp/net.rc
    if [ ! -h /tcp ] ; then 
      ln -s /tmp/tcp /tcp
    fi
  fi
  /tcp/net  </dev/null >/dev/null 2>&1 &
}
 
stop() {
  killall net
}

File /CONTROL/control

Package: wampes
Version: 20050527-0.2
Depends:
Provides:
Source: http://x-berg.in-berlin.de/cgi-bin/viewcvs.cgi/ampr/wampes-import
Section: hamradio
Priority: optional
Maintainer: Jann Traschewski, DG8NGN <jann@gmx.de>
Architecture: mipsel
Description: Packet Radio Software Router for AX.25

File /CONTROL/conffiles (these will not be overwritten on an update)

/usr/local/wampes/net.rc

Xnet

Packaging

Files in user-defined subdirectory:

/etc/rc.d/S80xnet         <- Link to /etc/init.d/xnet
/etc/init.d/xnet
/CONTROL
/CONTROL/control
/CONTROL/conffiles
/usr/local/xnet/wrtxnet
/usr/local/xnet/conf/AUTOEXEC.NET
/usr/local/xnet/conf/PASSWD.NET
/usr/local/xnet/conf/IP.NET
/usr/local/xnet/conf/screen.xnet

File /etc/init.d/xnet

#!/bin/sh /etc/rc.common
 
START=80
STOP=80
 
start() {
  rdate time.fu-berlin.de
  if [ ! -d /tmp/xnet ] ; then
    mkdir /tmp/xnet
    ln -s /usr/local/xnet/wrtxnet /tmp/xnet/wrtxnet
    ln -s /usr/local/xnet/conf/* /tmp/xnet/
    touch /tmp/xnet/BOX.CFG
  fi
  cd /tmp/xnet
  chmod 600 /tmp/xnet/BOX.CFG
  screen -DmS xnet -c /usr/local/xnet/conf/screen.xnet &
}
 
stop() {
  killall wrtxnet
}

File /CONTROL/control

Package: xnet
Version: 1.39-20071005-0.3
Depends: screen
Provides:
Source: http://www.swiss-artg.ch/xnet/beta
Section: hamradio
Priority: optional
Maintainer: Jann Traschewski, DG8NGN <jann@gmx.de>
Architecture: mipsel
Description: Packet Radio Software Router for AX.25

File /CONTROL/conffiles (these will not be overwritten on an update)

/usr/local/xnet/conf/AUTOEXEC.NET
/usr/local/xnet/conf/PASSWD.NET
/usr/local/xnet/conf/IP.NET
/usr/local/xnet/conf/screen.xnet

TNN

Compiling

Compile “cleaner” and “output” with x86.

Packaging

Files in user-defined subdirectory:

/etc/rc.d/S80tnn         <- Link to /etc/init.d/tnn
/etc/init.d/tnn
/CONTROL/control
/CONTROL/conffiles
/usr/local/tnn/tnn179.tnb
/usr/local/tnn/pacsat/pfhadd
/usr/local/tnn/tnn.ini
/usr/local/tnn/textcmd
/usr/local/tnn/example/tnnini.all
/usr/local/tnn/example/tnn179.pas
/usr/local/tnn/msg/msg.sys
/usr/local/tnn/msg/msg.usr
/usr/local/tnn/tnn179.pas
/usr/local/tnn/__README.1ST__
/usr/local/tnn/sysexe/msy
/usr/local/tnn/######01.tnb
/usr/local/tnn/conversd.xhf
/usr/local/tnn/screen.tnn
/usr/local/tnn/conversd.g
/usr/local/tnn/upd
/usr/local/tnn/userexe/msg
/usr/local/tnn/userexe/help
/usr/local/tnn/userexe/top
/usr/local/tnn/tnn
/usr/local/tnn/ax25ip.cfg

File /etc/init.d/tnn

#!/bin/sh /etc/rc.common
 
START=80
STOP=80
 
start() {
  rdate time.fu-berlin.de
  cd /usr/local/tnn
  screen -DmS tnn -c /usr/local/tnn/screen.tnn &
}
 
stop() {
  killall tnn
}

File /CONTROL/control

Package: tnn
Version: 1.79mh05-0.2
Depends: screen
Provides:
Source: http://www.nordlink.org/~dg9obu/source_download.htm
Section: hamradio
Priority: optional
Maintainer: Jann Traschewski, DG8NGN <jann@gmx.de>
Architecture: mipsel
Description: Packet Radio Software Router for AX.25

File /CONTROL/conffiles (these will not be overwritten on an update)

/usr/local/tnn/tnn179.tnb
/usr/local/tnn/tnn.ini
/usr/local/tnn/tnn179.pas
/usr/local/tnn/######01.tnb
/usr/local/tnn/conversd.xhf
/usr/local/tnn/conversd.g
/usr/local/tnn/ax25ip.cfg

Discussion

Warning: tnn write some files like xnet and wampes in installed dir, better use a filesystem in the ramdisc.

“PAR SaveConfig 0” is default to prevent multiple write events on the flash disk. ← This Info is out of the Readme for TNN/Mipsel. Please give further details. Is there a need to change the startupfiles? — Jann Traschewski 2008/03/03 18:42

BIRD

Compiling

./configure –prefix= -host=mipsel -with-sysconfig=linux-22 bird_cv_c_endian=little-endian

Packaging

Files in user-defined subdirectory:

/etc/rc.d/S40bird         <- Link to /etc/init.d/bird
/etc/init.d/bird
/etc/bird.conf
/CONTROL
/CONTROL/control
/CONTROL/conffiles
/usr/sbin/bird
/usr/sbin/birdc

File /etc/init.d/bird

#!/bin/sh /etc/rc.common
 
START=40
STOP=40
 
start() {
  bird
}
 
stop() {
  killall bird
}

File /CONTROL/control

Package: bird
Version: 1.1.4-0.1
Depends: libncurses
Provides:
Source: ftp://bird.network.cz/pub/bird/bird-1.1.4.tar.gz
Section: net
Priority: optional
Maintainer: Jann Traschewski, DG8NGN <jann@gmx.de>
Architecture: mipsel
Description: Internet routing daemon with BGP/RIP/OSPF support

File /CONTROL/conffiles (these will not be overwritten on an update)

/etc/bird.conf
projects/openwrt/devel/apps.txt · Last modified: 2014/01/12 13:16 by jann