Commit d5568786 authored by Jonathan Carter's avatar Jonathan Carter
Browse files

Initial commit with aims patch

parents
This diff is collapsed.
use-separate-vpnc-script.patch
fix_makefile_VERSION.patch
vpnc_typo.patch
bug_799429.patch
cross.patch
dpd_big-endian.patch
restore_original_cwd_after_vpnc_main_loop.patch
a-d-bug20
This diff is collapsed.
# Makefile for an IPSec VPN client compatible with Cisco equipment.
# Copyright (C) 2002 Geoffrey Keating
# Copyright (C) 2003-2004 Maurice Massar
# Copyright (C) 2006-2007 Dan Villiom Podlaski Christiansen
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
DESTDIR=
PREFIX=/usr/local
ETCDIR=/etc/vpnc
BINDIR=$(PREFIX)/bin
SBINDIR=$(PREFIX)/sbin
MANDIR=$(PREFIX)/share/man
DOCDIR=$(PREFIX)/share/doc/vpnc
# The license of vpnc (Gpl >= 2) is quite likely incompatible with the
# openssl license. Openssl is one possible library used to provide certificate
# support for vpnc (hybrid only).
# While it is OK for users to build their own binaries linking in openssl
# with vpnc and even providing dynamically linked binaries it is probably
# not OK to provide the binaries inside a distribution.
# See http://www.gnome.org/~markmc/openssl-and-the-gpl.html for further
# details.
# Some distributions like Suse and Fedora seem to think otherwise.
# Comment this in to obtain a binary with certificate support which is
# GPL incompliant though.
#OPENSSL_GPL_VIOLATION=yes
CRYPTO_LDADD = $(shell pkg-config --libs gnutls)
CRYPTO_CFLAGS = $(shell pkg-config --cflags gnutls) -DCRYPTO_GNUTLS
CRYPTO_SRCS = crypto-gnutls.c
ifeq ($(OPENSSL_GPL_VIOLATION), yes)
CRYPTO_LDADD = -lcrypto
CRYPTO_CFLAGS = -DOPENSSL_GPL_VIOLATION -DCRYPTO_OPENSSL
CRYPTO_SRCS = crypto-openssl.c
endif
SRCS = sysdep.c vpnc-debug.c isakmp-pkt.c tunip.c config.c dh.c math_group.c supp.c decrypt-utils.c crypto.c $(CRYPTO_SRCS)
BINS = vpnc cisco-decrypt test-crypto
OBJS = $(addsuffix .o,$(basename $(SRCS)))
CRYPTO_OBJS = $(addsuffix .o,$(basename $(CRYPTO_SRCS)))
BINOBJS = $(addsuffix .o,$(BINS))
BINSRCS = $(addsuffix .c,$(BINS))
VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^ ]+).*,\1,p')
RELEASE_VERSION := $(shell cat VERSION)
CC ?= gcc
CFLAGS ?= -O3 -g
CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings
CFLAGS += $(shell libgcrypt-config --cflags) $(CRYPTO_CFLAGS)
CPPFLAGS += -DVERSION=\"$(VERSION)\"
LDFLAGS ?= -g
LIBS += $(shell libgcrypt-config --libs) $(CRYPTO_LDADD)
ifeq ($(shell uname -s), SunOS)
LIBS += -lnsl -lresolv -lsocket
endif
ifneq (,$(findstring Apple,$(shell $(CC) --version)))
# enabled in FSF GCC, disabled by default in Apple GCC
CFLAGS += -fstrict-aliasing -freorder-blocks -fsched-interblock
endif
all : $(BINS) vpnc.8
vpnc : $(OBJS) vpnc.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
vpnc.8 : vpnc.8.template makeman.pl vpnc
./makeman.pl
cisco-decrypt : cisco-decrypt.o decrypt-utils.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
test-crypto : sysdep.o test-crypto.o crypto.o $(CRYPTO_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
.depend: $(SRCS) $(BINSRCS)
$(CC) -MM $(SRCS) $(BINSRCS) $(CFLAGS) $(CPPFLAGS) > $@
vpnc-debug.c vpnc-debug.h : isakmp.h enum2debug.pl
LC_ALL=C perl -w ./enum2debug.pl isakmp.h >vpnc-debug.c 2>vpnc-debug.h
vpnc.ps : vpnc.c
enscript -E -G -T 4 --word-wrap -o- $^ | psnup -2 /dev/stdin $@
../vpnc-%.tar.gz : vpnc-$*.tar.gz
etags :
etags *.[ch]
ctags :
ctags *.[ch]
vpnc-%.tar.gz :
mkdir vpnc-$*
LC_ALL=C svn info -R | awk -v RS='' -v FS='\n' '/Node Kind: file/ {print substr($$1,7)}' | \
tar -cf - -T - | tar -xf - -C vpnc-$*/
tar -czf ../$@ vpnc-$*
rm -rf vpnc-$*
test : all
./test-crypto test/sig_data.bin test/dec_data.bin test/ca_list.pem \
test/cert3.pem test/cert2.pem test/cert1.pem test/cert0.pem
dist : VERSION vpnc.8 vpnc-$(RELEASE_VERSION).tar.gz
clean :
-rm -f $(OBJS) $(BINOBJS) $(BINS) tags
distclean : clean
-rm -f vpnc-debug.c vpnc-debug.h vpnc.ps vpnc.8 .depend
install-common: all
install -d $(DESTDIR)$(ETCDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(DOCDIR)
if [ "`uname -s | cut -c-6`" = "CYGWIN" ]; then \
install vpnc-script-win $(DESTDIR)$(ETCDIR)/vpnc-script; \
install vpnc-script-win.js $(DESTDIR)$(ETCDIR); \
else \
install vpnc-script $(DESTDIR)$(ETCDIR); \
fi
install -m600 vpnc.conf $(DESTDIR)$(ETCDIR)/default.conf
install -m755 vpnc-disconnect $(DESTDIR)$(SBINDIR)
install -m755 pcf2vpnc $(DESTDIR)$(BINDIR)
install -m644 vpnc.8 $(DESTDIR)$(MANDIR)/man8
install -m644 pcf2vpnc.1 $(DESTDIR)$(MANDIR)/man1
install -m644 cisco-decrypt.1 $(DESTDIR)$(MANDIR)/man1
install -m644 COPYING $(DESTDIR)$(DOCDIR)
install : install-common
install -m755 vpnc $(DESTDIR)$(SBINDIR)
install -m755 cisco-decrypt $(DESTDIR)$(BINDIR)
install-strip : install-common
install -s -m755 vpnc $(DESTDIR)$(SBINDIR)
install -s -m755 cisco-decrypt $(DESTDIR)$(BINDIR)
uninstall :
rm -f $(DESTDIR)$(SBINDIR)/vpnc \
$(DESTDIR)$(SBINDIR)/vpnc-disconnect \
$(DESTDIR)$(BINDIR)/pcf2vpnc \
$(DESTDIR)$(BINDIR)/cisco-decrypt \
$(DESTDIR)$(MANDIR)/man1/cisco-decrypt.1 \
$(DESTDIR)$(MANDIR)/man1/pcf2vpnc \
$(DESTDIR)$(MANDIR)/man8/vpnc.8
@echo NOTE: remove $(DESTDIR)$(ETCDIR) manually
.PHONY : clean distclean dist all install install-strip uninstall
#
-include .depend
#! /usr/bin/env perl
# $Id$
# Written by Wolfram Sang (wolfram@the-dreams.de) in 2007,
# some inspiration from help2man by Brendan O'Dea and from Perl::Critic
# Generate the vpnc-manpage from a template and the --long-help-output.
# Version 0.2
# Command-line options: none
# Files needed : ./vpnc ./vpnc.8.template ./VERSION
# Files created : ./vpnc.8
# Exit status : errno-values or 255 (Magic string not found)
# Distributed under the same licence as vpnc.
use strict;
use warnings;
use Fatal qw(open close);
use filetest qw(access); # to always get errno-values on filetests
use POSIX qw(strftime setlocale LC_ALL);
my $vpnc = './vpnc';
-e $vpnc or die "$0: Can't find $vpnc. Did you compile it?\n";
-x $vpnc or die "$0: Can't execute $vpnc. Please check permissions.\n";
# The code converting the help-output to manpage format is lots of
# regex-fiddling, sorry. It got a bit more complicated by additionally
# indenting lists (those originally starting with an asterisk). I hope
# this pays off when converting the manpage to HTML or such.
open my $LONGHELP, '-|', "$vpnc --long-help";
my $vpnc_options = '';
my $relative_indent = 0;
my $indent_needed = 0;
while (<$LONGHELP>) {
if (/^ /) {
# Check if additional indent needs to be finished by comparing the
# amount of spaces at the beginning. A bit ugly, but I don't see a
# better way to do it.
if ($relative_indent) {
/^( *)/;
if (length($1) < $relative_indent) {
$vpnc_options .= ".RE\n";
$relative_indent = 0;
$indent_needed = 1;
}
}
# Highlight the option and make an optional argument italic.
if (s/^ *(--[\w-]+)/\n.TP\n.BI "$1"/) {
s/(<.+>)/ " $1"/;
}
# Highlight conffile-only options.
s/^ *(\(configfile only option\))/\n.TP\n.B $1/;
# Position the Default-string
s/^ *(Default:)/.IP\n$1/;
# Highlight the conf-variable and make an optional argument italic.
if (s/^ *(conf-variable:) (.+?) ?([<\n])/.P\n$1\n.BI "$2"$3/) {
s/(<.+>)/ " $1"/;
}
# Replace asterisk with bulletin; indent if needed.
if (s/^( +)\* /.IP \\(bu\n/) {
if (not $relative_indent) {
$vpnc_options .= ".RS\n";
$relative_indent = length $1;
}
}
# Do we need to add an .IP-command after .RE or is there already one?
if ($indent_needed and not /^\n?\.[TI]?P/) {
$vpnc_options .= ".IP\n";
$indent_needed = 0;
}
# Finalize string and add it to buffer
s/^ *//;
s/ *$//;
s/-/\\-/g;
$vpnc_options .= $_;
}
}
close $LONGHELP;
# Hopefully the code speaks for itself from now on...
setlocale( LC_ALL, 'C' );
my $write_secs = (stat("./vpnc.8.template"))[9];
my $date = strftime( '%B %Y', localtime($write_secs) );
open my $VERSION, '<', './VERSION';
my $vpnc_version = <$VERSION>;
close $VERSION;
chomp $vpnc_version;
open my $TEMPLATE, '<', './vpnc.8.template';
open my $MANPAGE , '>', './vpnc.8';
my $magic_found;
my $MAGIC_FOR_HEADER = qq(.\\" ###makeman.pl: Replace header here!\n);
my $MAGIC_FOR_OPTIONS = qq(.\\" ###makeman.pl: Insert options from help-output here!\n);
# Skip the template-header
while (<$TEMPLATE>) {
last if ($magic_found = ($_ eq $MAGIC_FOR_HEADER));
}
die "$0: Missing magic: $MAGIC_FOR_HEADER" if not $magic_found;
print {$MANPAGE} <<"END_MANPAGE_HEADER";
.\\" This manpage is generated!
.\\" Please edit the template-file in the source-distribution only.
.TH VPNC "8" "$date" "vpnc version $vpnc_version" "System Administration Utilities"
END_MANPAGE_HEADER
$magic_found = 0;
while (<$TEMPLATE>) {
if ($_ ne $MAGIC_FOR_OPTIONS) {
print {$MANPAGE} $_;
} else {
print {$MANPAGE} $vpnc_options;
$magic_found = 1;
}
}
die "$0: Missing magic: $MAGIC_FOR_OPTIONS" if not $magic_found;
close $TEMPLATE;
close $MANPAGE;
This diff is collapsed.
# Makefile for an IPSec VPN client compatible with Cisco equipment.
# Copyright (C) 2002 Geoffrey Keating
# Copyright (C) 2003-2004 Maurice Massar
# Copyright (C) 2006-2007 Dan Villiom Podlaski Christiansen
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
DESTDIR=
PREFIX=/usr/local
ETCDIR=/etc/vpnc
BINDIR=$(PREFIX)/bin
SBINDIR=$(PREFIX)/sbin
MANDIR=$(PREFIX)/share/man
DOCDIR=$(PREFIX)/share/doc/vpnc
# The license of vpnc (Gpl >= 2) is quite likely incompatible with the
# openssl license. Openssl is one possible library used to provide certificate
# support for vpnc (hybrid only).
# While it is OK for users to build their own binaries linking in openssl
# with vpnc and even providing dynamically linked binaries it is probably
# not OK to provide the binaries inside a distribution.
# See http://www.gnome.org/~markmc/openssl-and-the-gpl.html for further
# details.
# Some distributions like Suse and Fedora seem to think otherwise.
# Comment this in to obtain a binary with certificate support which is
# GPL incompliant though.
#OPENSSL_GPL_VIOLATION=yes
CRYPTO_LDADD = $(shell pkg-config --libs gnutls)
CRYPTO_CFLAGS = $(shell pkg-config --cflags gnutls) -DCRYPTO_GNUTLS
CRYPTO_SRCS = crypto-gnutls.c
ifeq ($(OPENSSL_GPL_VIOLATION), yes)
CRYPTO_LDADD = -lcrypto
CRYPTO_CFLAGS = -DOPENSSL_GPL_VIOLATION -DCRYPTO_OPENSSL
CRYPTO_SRCS = crypto-openssl.c
endif
SRCS = sysdep.c vpnc-debug.c isakmp-pkt.c tunip.c config.c dh.c math_group.c supp.c decrypt-utils.c crypto.c $(CRYPTO_SRCS)
BINS = vpnc cisco-decrypt test-crypto
OBJS = $(addsuffix .o,$(basename $(SRCS)))
CRYPTO_OBJS = $(addsuffix .o,$(basename $(CRYPTO_SRCS)))
BINOBJS = $(addsuffix .o,$(BINS))
BINSRCS = $(addsuffix .c,$(BINS))
VERSION := $(shell sh mk-version)
RELEASE_VERSION := $(shell cat VERSION)
CC ?= gcc
CFLAGS ?= -O3 -g
CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings
CFLAGS += $(shell libgcrypt-config --cflags) $(CRYPTO_CFLAGS)
CPPFLAGS += -DVERSION=\"$(VERSION)\"
LDFLAGS ?= -g
LIBS += $(shell libgcrypt-config --libs) $(CRYPTO_LDADD)
ifeq ($(shell uname -s), SunOS)
LIBS += -lnsl -lresolv -lsocket
endif
ifneq (,$(findstring Apple,$(shell $(CC) --version)))
# enabled in FSF GCC, disabled by default in Apple GCC
CFLAGS += -fstrict-aliasing -freorder-blocks -fsched-interblock
endif
all : $(BINS) vpnc.8
vpnc : $(OBJS) vpnc.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
vpnc.8 : vpnc.8.template makeman.pl vpnc
./makeman.pl
cisco-decrypt : cisco-decrypt.o decrypt-utils.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
test-crypto : sysdep.o test-crypto.o crypto.o $(CRYPTO_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
.depend: $(SRCS) $(BINSRCS)
$(CC) -MM $(SRCS) $(BINSRCS) $(CFLAGS) $(CPPFLAGS) > $@
vpnc-debug.c vpnc-debug.h : isakmp.h enum2debug.pl
LC_ALL=C perl -w ./enum2debug.pl isakmp.h >vpnc-debug.c 2>vpnc-debug.h
vpnc.ps : vpnc.c
enscript -E -G -T 4 --word-wrap -o- $^ | psnup -2 /dev/stdin $@
../vpnc-%.tar.gz : vpnc-$*.tar.gz
etags :
etags *.[ch]
ctags :
ctags *.[ch]
vpnc-%.tar.gz :
mkdir vpnc-$*
LC_ALL=C svn info -R | awk -v RS='' -v FS='\n' '/Node Kind: file/ {print substr($$1,7)}' | \
tar -cf - -T - | tar -xf - -C vpnc-$*/
tar -czf ../$@ vpnc-$*
rm -rf vpnc-$*
test : all
./test-crypto test/sig_data.bin test/dec_data.bin test/ca_list.pem \
test/cert3.pem test/cert2.pem test/cert1.pem test/cert0.pem
dist : VERSION vpnc.8 vpnc-$(RELEASE_VERSION).tar.gz
clean :
-rm -f $(OBJS) $(BINOBJS) $(BINS) tags
distclean : clean
-rm -f vpnc-debug.c vpnc-debug.h vpnc.ps vpnc.8 .depend
install-common: all
install -d $(DESTDIR)$(ETCDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(DOCDIR)
if [ "`uname -s | cut -c-6`" = "CYGWIN" ]; then \
install vpnc-script-win $(DESTDIR)$(ETCDIR)/vpnc-script; \
install vpnc-script-win.js $(DESTDIR)$(ETCDIR); \
else \
install vpnc-script $(DESTDIR)$(ETCDIR); \
fi
install -m600 vpnc.conf $(DESTDIR)$(ETCDIR)/default.conf
install -m755 vpnc-disconnect $(DESTDIR)$(SBINDIR)
install -m755 pcf2vpnc $(DESTDIR)$(BINDIR)
install -m644 vpnc.8 $(DESTDIR)$(MANDIR)/man8
install -m644 pcf2vpnc.1 $(DESTDIR)$(MANDIR)/man1
install -m644 cisco-decrypt.1 $(DESTDIR)$(MANDIR)/man1
install -m644 COPYING $(DESTDIR)$(DOCDIR)
install : install-common
install -m755 vpnc $(DESTDIR)$(SBINDIR)
install -m755 cisco-decrypt $(DESTDIR)$(BINDIR)
install-strip : install-common
install -s -m755 vpnc $(DESTDIR)$(SBINDIR)
install -s -m755 cisco-decrypt $(DESTDIR)$(BINDIR)
uninstall :
rm -f $(DESTDIR)$(SBINDIR)/vpnc \
$(DESTDIR)$(SBINDIR)/vpnc-disconnect \
$(DESTDIR)$(BINDIR)/pcf2vpnc \
$(DESTDIR)$(BINDIR)/cisco-decrypt \
$(DESTDIR)$(MANDIR)/man1/cisco-decrypt.1 \
$(DESTDIR)$(MANDIR)/man1/pcf2vpnc \
$(DESTDIR)$(MANDIR)/man8/vpnc.8
@echo NOTE: remove $(DESTDIR)$(ETCDIR) manually
.PHONY : clean distclean dist all install install-strip uninstall
#
-include .depend
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# Makefile for an IPSec VPN client compatible with Cisco equipment.
# Copyright (C) 2002 Geoffrey Keating
# Copyright (C) 2003-2004 Maurice Massar
# Copyright (C) 2006-2007 Dan Villiom Podlaski Christiansen
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
DESTDIR=
PREFIX=/usr/local
ETCDIR=/etc/vpnc
BINDIR=$(PREFIX)/bin
SBINDIR=$(PREFIX)/sbin
MANDIR=$(PREFIX)/share/man
DOCDIR=$(PREFIX)/share/doc/vpnc
# The license of vpnc (Gpl >= 2) is quite likely incompatible with the
# openssl license. Openssl is one possible library used to provide certificate
# support for vpnc (hybrid only).
# While it is OK for users to build their own binaries linking in openssl
# with vpnc and even providing dynamically linked binaries it is probably
# not OK to provide the binaries inside a distribution.
# See http://www.gnome.org/~markmc/openssl-and-the-gpl.html for further
# details.
# Some distributions like Suse and Fedora seem to think otherwise.
# Comment this in to obtain a binary with certificate support which is
# GPL incompliant though.
#OPENSSL_GPL_VIOLATION=yes
PKG_CONFIG ?= pkg-config
CRYPTO_LDADD = $(shell $(PKG_CONFIG) --libs gnutls)
CRYPTO_CFLAGS = $(shell $(PKG_CONFIG) --cflags gnutls) -DCRYPTO_GNUTLS
CRYPTO_SRCS = crypto-gnutls.c
ifeq ($(OPENSSL_GPL_VIOLATION), yes)
CRYPTO_LDADD = -lcrypto
CRYPTO_CFLAGS = -DOPENSSL_GPL_VIOLATION -DCRYPTO_OPENSSL
CRYPTO_SRCS = crypto-openssl.c
endif
SRCS = sysdep.c vpnc-debug.c isakmp-pkt.c tunip.c config.c dh.c math_group.c supp.c decrypt-utils.c crypto.c $(CRYPTO_SRCS)
BINS = vpnc cisco-decrypt test-crypto
OBJS = $(addsuffix .o,$(basename $(SRCS)))
CRYPTO_OBJS = $(addsuffix .o,$(basename $(CRYPTO_SRCS)))
BINOBJS = $(addsuffix .o,$(BINS))
BINSRCS = $(addsuffix .c,$(BINS))
VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^ ]+).*,\1,p')
RELEASE_VERSION := $(shell cat VERSION)
CC ?= gcc
CFLAGS ?= -O3 -g
CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings
CFLAGS += $(shell libgcrypt-config --cflags) $(CRYPTO_CFLAGS)
CPPFLAGS += -DVERSION=\"$(VERSION)\"
LDFLAGS ?= -g
LIBS += $(shell libgcrypt-config --libs) $(CRYPTO_LDADD)
VPNC ?= ./vpnc
ifeq ($(shell uname -s), SunOS)
LIBS += -lnsl -lresolv -lsocket
endif
ifneq (,$(findstring Apple,$(shell $(CC) --version)))
# enabled in FSF GCC, disabled by default in Apple GCC
CFLAGS += -fstrict-aliasing -freorder-blocks -fsched-interblock
endif
all : $(BINS) vpnc.8
vpnc : $(OBJS) vpnc.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
vpnc.8 : vpnc.8.template makeman.pl vpnc
./makeman.pl $(VPNC)
cisco-decrypt : cisco-decrypt.o decrypt-utils.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
test-crypto : sysdep.o test-crypto.o crypto.o $(CRYPTO_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
.depend: $(SRCS) $(BINSRCS)
$(CC) -MM $(SRCS) $(BINSRCS) $(CFLAGS) $(CPPFLAGS) > $@
vpnc-debug.c vpnc-debug.h : isakmp.h enum2debug.pl
LC_ALL=C perl -w ./enum2debug.pl isakmp.h >vpnc-debug.c 2>vpnc-debug.h
vpnc.ps : vpnc.c
enscript -E -G -T 4 --word-wrap -o- $^ | psnup -2 /dev/stdin $@
../vpnc-%.tar.gz : vpnc-$*.tar.gz
etags :
etags *.[ch]
ctags :
ctags *.[ch]
vpnc-%.tar.gz :