Tru64 4.0F

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It seem to be a great product and it works!

Could some of the TWIGS needed be incorporeted in the next version?????

*	tcp_wrapper patch
*	err.h
*	list_test.c
*	init script
*	init links

Rgds

Henrik

================================================================

PATH=/freeware/bin:$PATH:/usr/local/bin
export PATH

# Options: -c (continue), -N (download only if newer)
release=nntpcache
#release=nntpcache-2.3.3
wget -cN --retr-symlinks
ftp://ftp.cs.tu-berlin.de/pub/net/news/nntpcache/$release.tar.gz

gunzip -c $release.tar.gz | tar xfv -

release=`gunzip -c $release.tar.gz | tar tf - | sed '1q' | cut -d'/' -f1`
cd $release

CC=gcc ./configure
make clean

#####################
# Patch stuff - bad
#####################
cp /freeware/include/tcp_wrappers/tcpd.h src
touch libproff/err.h
patch libproff/list_test.c <<EOF
16c16
< #define a(x) if(!(x)) {warnx("failed assertion(%s)", #x); fails++;}
---
> #define a(x) if(!(x)) {printf("failed assertion(%s)", #x); fails++;}
EOF

make
make install

#####################
# Init scripts
#####################
cat > /sbin/init.d/nntpcache <<EOF
#! /bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PIDFILE=/usr/local/var/nntpcache/nntpcache.pid.DEFAULT:119

case "\$1" in
    start)      echo "Starting nntpcache server: ";
/usr/local/sbin/nntpcached ;;
    stop)       echo "Stopping nntpcache server: ";     kill \`cat
\$PIDFILE\` ;;
    reload)     echo "Reloading nntpcache config";      kill -1 \`cat
\$PIDFILE\` ;;
    *)          echo "Usage: \$0 {start|stop|reload}";   exit 1 ;;
esac
EOF
ln -sf /sbin/init.d/nntpcache /sbin/rc2.d/K96nntpcache
ln -sf /sbin/init.d/nntpcache /sbin/rc2.d/S96nntpcache
ln -sf /sbin/init.d/nntpcache /sbin/rc3.d/S96nntpcache


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux