<< | Thread Index | >> ]    [ << | Date Index | >> ]

To: cipe-l,AT,inka,DOT,de
Subject: Re: Compliling Cipe for Debian 3.0r1
From: Christoph Biedl <cbiedl,AT,gmx,DOT,de>
Date: Thu, 21 Aug 2003 19:12:41 +0200
In-reply-to: <5.1.0.14.2.20030820182845.00b00a40@pop.gmx.at>

[ sent as personal mail first - apologies ]

Andreas Stagl wrote...

> So it seems that I really have to compile it by myself... but how do i 
> do this? Can anyone here explain me, what to do... or even a 
> compiling-HowTo might be helpful!

I've explained that recently here on the list:
http://sites.inka.de/bigred/archive/cipe-l/2003-08/msg00052.html
http://sites.inka.de/bigred/archive/cipe-l/2003-08/msg00054.html

As you are using Debian, the following patch might be interesting to you
as it simulates the ip-up.d/ip-down.d as in /etc/ppp:

diff -urN cipe-1.5.4.orig/samples/ip-down cipe-1.5.4/samples/ip-down
--- cipe-1.5.4.orig/samples/ip-down     Sat Dec 16 18:49:10 2000
+++ cipe-1.5.4/samples/ip-down  Tue Aug  5 17:38:11 2003
@@ -9,6 +9,13 @@
 umask 022
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
+export CIPE_IFACE="$1"
+export CIPE_MYADDR="$2"
+export CIPE_DAEMON="$3"
+export CIPE_LOCAL="$4"
+export CIPE_REMOTE="$5"
+export CIPE_IPPARAM="$6"
+
 # Logging example
 now=`date "+%b %d %T"`
 echo "$now DOWN $*" >> /var/log/cipe.log
@@ -18,5 +25,7 @@
 
 # If the system runs gated, tell it what has happened
 #gdc interface
+
+run-parts /etc/cipe/ip-down.d
 
 exit 0
diff -urN cipe-1.5.4.orig/samples/ip-up cipe-1.5.4/samples/ip-up
--- cipe-1.5.4.orig/samples/ip-up       Sat Dec 16 18:49:10 2000
+++ cipe-1.5.4/samples/ip-up    Tue Aug  5 17:38:11 2003
@@ -17,6 +17,13 @@
 umask 022
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
+export CIPE_IFACE="$1"
+export CIPE_MYADDR="$2"
+export CIPE_DAEMON="$3"
+export CIPE_LOCAL="$4"
+export CIPE_REMOTE="$5"
+export CIPE_IPPARAM="$6"
+
 case `uname -r` in
 2.0*)
   # Under Linux 2.0, a minimal route to the remote CIPE is needed.
@@ -55,5 +62,7 @@
 #NA=`expr $5 : '\([0-9]*\.[0-9]*\.[0-9]*\.\)'`
 #ipfwadm -F -a accept -m -b -S $NA.0/24 -D 0.0.0.0/0
 # the usual way for this would be a case selection on $5 or $6, however
+
+run-parts /etc/cipe/ip-up.d
 
 exit 0

After that you can place executable programs, usually shell scripts, in
/etc/cipe/ip-up.d and -down, don't forget to create them first.

        Christoph

Oh, you'll probably don't know how to apply a patch... Save it in a file,
cd to the cipe sources and try
patch --dry-run -p1 </path/to/saved/file
If you see no errors, omit the --dry-run

----- End forwarded message -----


<< | Thread Index | >> ]    [ << | Date Index | >> ]