1 diff -ruN strongswan-2.8.2-orig/programs/Makefile strongswan-2.8.2/programs/Makefile
2 --- strongswan-2.8.2-orig/programs/Makefile 2006-08-28 07:12:36.000000000 -0400
3 +++ strongswan-2.8.2/programs/Makefile 2007-02-05 00:27:47.214280563 -0500
5 SUBDIRS+=_realsetup _secretcensor _startklips _updown _updown_espmark
6 SUBDIRS+=auto barf ipsec look manual ranbits secrets starter
7 SUBDIRS+=rsasigkey send-pr setup showdefaults showhostkey calcgoo mailkey
8 -SUBDIRS+=ikeping examples openac scepclient
9 +SUBDIRS+=ikeping examples openac scepclient _showstatus wakeup
11 ifeq ($(USE_LWRES),true)
13 diff -ruN strongswan-2.8.2-orig/programs/_showstatus/Makefile strongswan-2.8.2/programs/_showstatus/Makefile
14 --- strongswan-2.8.2-orig/programs/_showstatus/Makefile 1969-12-31 19:00:00.000000000 -0500
15 +++ strongswan-2.8.2/programs/_showstatus/Makefile 2007-02-05 00:31:11.380714322 -0500
17 +# Makefile for miscelaneous programs
18 +# Copyright (C) 2002 Michael Richardson <mcr@freeswan.org>
20 +# This program is free software; you can redistribute it and/or modify it
21 +# under the terms of the GNU General Public License as published by the
22 +# Free Software Foundation; either version 2 of the License, or (at your
23 +# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
25 +# This program is distributed in the hope that it will be useful, but
26 +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
27 +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
30 +# RCSID $Id: Makefile,v 1.3 2006/04/17 06:48:49 as Exp $
33 +include ${FREESWANSRCDIR}/Makefile.inc
38 +include ../Makefile.program
39 diff -ruN strongswan-2.8.2-orig/programs/_showstatus/_showstatus.8 strongswan-2.8.2/programs/_showstatus/_showstatus.8
40 --- strongswan-2.8.2-orig/programs/_showstatus/_showstatus.8 1969-12-31 19:00:00.000000000 -0500
41 +++ strongswan-2.8.2/programs/_showstatus/_showstatus.8 2007-02-05 00:36:00.650410824 -0500
43 +.TH _showstatus 8 "03 Feb 2007"
45 +.\" RCSID $Id: _showstatus.8
48 +ipsec _showstatus \- give state feedback via led or other method
51 +is invoked by _updown to trigger led's, or other distribution
52 +or platform specific behavior. Presently, the SES button is
53 +supported as a status light on OpenWRT platforms. The button
54 +is configurable by environment variable:
55 +-B IPSEC_STATUS_LED_START
56 +defaults to ses_orange, and
57 +-B IPSEC_STATUS_LED_VALID
58 +defaults to ses_white.
60 +ipsec(8), ipsec_updown(8).
62 +Man page written for the Linux strongSwan project <http://www.strongswan.org/>
63 +by Kevin Cody Jr. Original manpage for _updown by Michael Richardson.
64 +Original program written by Henry Spencer. Extended for the Linux strongSwan
65 +project <http://www.strongswan.org/> by Andreas Steffen.
66 diff -ruN strongswan-2.8.2-orig/programs/_showstatus/_showstatus.in strongswan-2.8.2/programs/_showstatus/_showstatus.in
67 --- strongswan-2.8.2-orig/programs/_showstatus/_showstatus.in 1969-12-31 19:00:00.000000000 -0500
68 +++ strongswan-2.8.2/programs/_showstatus/_showstatus.in 2007-02-05 00:55:56.563116192 -0500
72 +# Copyright (C) 2007 Kevin Cody Jr. <kcody@vegaresearch.com>
74 +# This program is free software; you can redistribute it and/or modify it
75 +# under the terms of the GNU General Public License as published by the
76 +# Free Software Foundation; either version 2 of the License, or (at your
77 +# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
79 +# This program is distributed in the hope that it will be useful, but
80 +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
81 +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
84 +# RCSID $Id: _showstatus.in
87 +LED_START=$IPSEC_STATUS_LED_START
88 +LED_VALID=$IPSEC_STATUS_LED_VALID
90 +[ -z "$LED_START" ] && LED_START="ses_orange"
91 +[ -z "$LED_VALID" ] && LED_VALID="ses_white"
98 + [ -n "$led" -a -n "$st" ] || return
100 + if [ -w "/proc/diag/led/$led" ] ; then
101 + echo "$st" > "/proc/diag/led/$led"
104 + # integrate other led control methods here
111 + [ -n "$LED_VALID" ] && setled "$LED_START" 1
112 + [ -z "$LED_VALID" ] && setled "$LED_START" f
113 + setled "$LED_VALID" 0
116 + setled "$LED_START" 0
117 + setled "$LED_VALID" 0
120 + setled "$LED_VALID" 1
123 + setled "$LED_VALID" 0
126 + [ -n "$LED_VALID" ] && setled "$LED_START" 0
127 + [ -z "$LED_VALID" ] && setled "$LED_START" 1
128 + setled "$LED_VALID" 1
131 + [ -n "$LED_VALID" ] && setled "$LED_START" 1
132 + [ -z "$LED_VALID" ] && setled "$LED_START" f
133 + setled "$LED_VALID" f
136 + echo "$0: unknown status $status" >&2
140 diff -ruN strongswan-2.8.2-orig/programs/wakeup/Makefile strongswan-2.8.2/programs/wakeup/Makefile
141 --- strongswan-2.8.2-orig/programs/wakeup/Makefile 1969-12-31 19:00:00.000000000 -0500
142 +++ strongswan-2.8.2/programs/wakeup/Makefile 2007-02-05 00:28:03.960726309 -0500
144 +# Makefile for miscelaneous programs
145 +# Copyright (C) 2002 Michael Richardson <mcr@freeswan.org>
147 +# This program is free software; you can redistribute it and/or modify it
148 +# under the terms of the GNU General Public License as published by the
149 +# Free Software Foundation; either version 2 of the License, or (at your
150 +# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
152 +# This program is distributed in the hope that it will be useful, but
153 +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
154 +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
157 +# RCSID $Id: Makefile,v 1.3 2006/04/17 06:48:49 as Exp $
159 +FREESWANSRCDIR=../..
160 +include ${FREESWANSRCDIR}/Makefile.inc
163 +PROGRAMDIR=${LIBDIR}
165 +include ../Makefile.program
166 diff -ruN strongswan-2.8.2-orig/programs/wakeup/wakeup.8 strongswan-2.8.2/programs/wakeup/wakeup.8
167 --- strongswan-2.8.2-orig/programs/wakeup/wakeup.8 1969-12-31 19:00:00.000000000 -0500
168 +++ strongswan-2.8.2/programs/wakeup/wakeup.8 2007-02-05 00:36:34.029298760 -0500
170 +.TH wakeup 8 "03 Feb 2007"
172 +.\" RCSID $Id: wakeup.8
175 +ipsec wakeup \- stalled and down connection detection
178 +is invoked by cron and checks ipsec status, whacking as necessary.
180 +ipsec(8), ipsec_whack(8).
182 +Man page written for the Linux strongSwan project <http://www.strongswan.org/>
183 +by Kevin Cody Jr. Original manpage for _updown by Michael Richardson.
184 +Original program written by Henry Spencer. Extended for the Linux strongSwan
185 +project <http://www.strongswan.org/> by Andreas Steffen.
186 diff -ruN strongswan-2.8.2-orig/programs/wakeup/wakeup.in strongswan-2.8.2/programs/wakeup/wakeup.in
187 --- strongswan-2.8.2-orig/programs/wakeup/wakeup.in 1969-12-31 19:00:00.000000000 -0500
188 +++ strongswan-2.8.2/programs/wakeup/wakeup.in 2007-02-05 00:28:03.961726336 -0500
193 +# Copyright (C) 2007 Kevin Cody Jr. <kcody@vegaresearch.com>
195 +# This program is free software; you can redistribute it and/or modify it
196 +# under the terms of the GNU General Public License as published by the
197 +# Free Software Foundation; either version 2 of the License, or (at your
198 +# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
200 +# This program is distributed in the hope that it will be useful, but
201 +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
202 +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
206 +# only applicable when ipsec is running
207 +[ -e /var/run/pluto.pid ] || exit
209 +# loop through any erouted tunnels in the HOLD state
210 +for f in `ipsec status | awk '/erouted HOLD/{ print $2 }' | cut -f1 -d\: | cut -f2 -d\"` ; do
212 + # only whack if no pending events at all exists
213 + ipsec status | grep STATE | grep -q $f ||
214 + ipsec whack --name $f --initiate --asynchronous
218 +# loop through any tunnels that don't quite exist
219 +for f in `ipsec status | awk '/prospective erouted/{ print $2 }' | cut -f1 -d: | grep -v \# | cut -f2 -d\"` ; do
221 + ipsec status | grep STATE_QUICK | grep -q $f || {
222 + ipsec status | grep STATE_MAIN | grep -q $f && ipsec down $f