head	1.12;
access;
symbols
	RELENG_6_4_0_RELEASE:1.11.10.1
	RELENG_6_4:1.11.10.1.0.8
	RELENG_6_4_BP:1.11.10.1
	RELENG_6_3_0_RELEASE:1.11.10.1
	RELENG_6_3:1.11.10.1.0.6
	RELENG_6_3_BP:1.11.10.1
	RELENG_6_2_0_RELEASE:1.11.10.1
	RELENG_6_2:1.11.10.1.0.4
	RELENG_6_2_BP:1.11.10.1
	RELENG_5_5_0_RELEASE:1.11
	RELENG_5_5:1.11.0.14
	RELENG_5_5_BP:1.11
	RELENG_6_1_0_RELEASE:1.11.10.1
	RELENG_6_1:1.11.10.1.0.2
	RELENG_6_1_BP:1.11.10.1
	RELENG_6_0_0_RELEASE:1.11
	RELENG_6_0:1.11.0.12
	RELENG_6_0_BP:1.11
	RELENG_6:1.11.0.10
	RELENG_6_BP:1.11
	RELENG_5_4_0_RELEASE:1.11
	RELENG_5_4:1.11.0.8
	RELENG_5_4_BP:1.11
	RELENG_4_11_0_RELEASE:1.1.2.5
	RELENG_4_11:1.1.2.5.0.16
	RELENG_4_11_BP:1.1.2.5
	RELENG_5_3_0_RELEASE:1.11
	RELENG_5_3:1.11.0.6
	RELENG_5_3_BP:1.11
	RELENG_5:1.11.0.4
	RELENG_5_BP:1.11
	RELENG_4_10_0_RELEASE:1.1.2.5
	RELENG_4_10:1.1.2.5.0.14
	RELENG_4_10_BP:1.1.2.5
	RELENG_5_2_1_RELEASE:1.11
	RELENG_5_2_0_RELEASE:1.11
	RELENG_5_2:1.11.0.2
	RELENG_5_2_BP:1.11
	RELENG_4_9_0_RELEASE:1.1.2.5
	RELENG_4_9:1.1.2.5.0.12
	RELENG_4_9_BP:1.1.2.5
	RELENG_5_1_0_RELEASE:1.10
	RELENG_5_1:1.10.0.4
	RELENG_5_1_BP:1.10
	RELENG_4_8_0_RELEASE:1.1.2.5
	RELENG_4_8:1.1.2.5.0.10
	RELENG_4_8_BP:1.1.2.5
	RELENG_5_0_0_RELEASE:1.10
	RELENG_5_0:1.10.0.2
	RELENG_5_0_BP:1.10
	RELENG_4_7_0_RELEASE:1.1.2.5
	RELENG_4_7:1.1.2.5.0.8
	RELENG_4_7_BP:1.1.2.5
	RELENG_4_6_2_RELEASE:1.1.2.5
	RELENG_4_6_1_RELEASE:1.1.2.5
	RELENG_4_6_0_RELEASE:1.1.2.5
	RELENG_4_6:1.1.2.5.0.6
	RELENG_4_6_BP:1.1.2.5
	RELENG_4_5_0_RELEASE:1.1.2.5
	RELENG_4_5:1.1.2.5.0.4
	RELENG_4_5_BP:1.1.2.5
	RELENG_4_4_0_RELEASE:1.1.2.5
	RELENG_4_4:1.1.2.5.0.2
	RELENG_4_4_BP:1.1.2.5
	RELENG_4_3_0_RELEASE:1.1.2.3
	RELENG_4_3:1.1.2.3.0.2
	RELENG_4_3_BP:1.1.2.3
	RELENG_4_2_0_RELEASE:1.1.2.2
	RELENG_4_1_1_RELEASE:1.1.2.2
	PRE_SMPNG:1.3
	RELENG_4_1_0_RELEASE:1.1.2.2
	RELENG_4_0_0_RELEASE:1.1
	RELENG_4:1.1.0.2
	RELENG_4_BP:1.1;
locks; strict;
comment	@# @;


1.12
date	2005.10.12.21.40.41;	author pjd;	state dead;
branches;
next	1.11;

1.11
date	2003.11.05.09.47.54;	author ume;	state Exp;
branches
	1.11.10.1;
next	1.10;

1.10
date	2002.05.16.15.44.08;	author ume;	state Exp;
branches;
next	1.9;

1.9
date	2001.07.20.06.20.19;	author obrien;	state Exp;
branches;
next	1.8;

1.8
date	2001.04.07.11.21.35;	author ru;	state Exp;
branches;
next	1.7;

1.7
date	2001.03.26.14.41.55;	author ru;	state Exp;
branches;
next	1.6;

1.6
date	2001.03.20.18.17.14;	author ru;	state Exp;
branches;
next	1.5;

1.5
date	2000.12.05.22.10.42;	author obrien;	state Exp;
branches;
next	1.4;

1.4
date	2000.12.01.09.39.28;	author obrien;	state Exp;
branches;
next	1.3;

1.3
date	2000.07.04.16.22.05;	author itojun;	state Exp;
branches;
next	1.2;

1.2
date	2000.03.27.16.40.59;	author bde;	state Exp;
branches;
next	1.1;

1.1
date	2000.01.06.12.40.51;	author shin;	state Exp;
branches
	1.1.2.1;
next	;

1.11.10.1
date	2005.12.15.23.30.11;	author pjd;	state dead;
branches;
next	;

1.1.2.1
date	2000.07.01.10.11.54;	author ps;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2000.07.15.07.37.03;	author kris;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2000.12.07.16.33.38;	author obrien;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2001.04.25.12.10.55;	author ru;	state Exp;
branches;
next	1.1.2.5;

1.1.2.5
date	2001.04.25.14.05.11;	author ru;	state Exp;
branches;
next	1.1.2.6;

1.1.2.6
date	2012.11.17.07.28.43;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.12
log
@setkey(8) was repo-copied from usr.sbin/ to sbin/.
This will allow for NFS mount of /usr over IPsec.

Discussed on:	arch@@
@
text
@# Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
# All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. Neither the name of the project nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
# 
# THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.11 2003/11/05 09:47:54 ume Exp $

PROG=	setkey
MAN=	setkey.8
SRCS=	setkey.c parse.y token.l

CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../lib/libipsec
YFLAGS=	-d

DPADD=	${LIBL} ${LIBY}
LDADD=	-ll -ly

CLEANFILES=	y.tab.c y.tab.h key_test.o keytest

# libpfkey
# ipsec_strerror.c is for avoiding shlib reference to non-exported function.
.PATH: ${.CURDIR}/../../lib/libipsec ${.CURDIR}/../../sys/netkey
SRCS+= pfkey.c pfkey_dump.c key_debug.c ipsec_strerror.c
CFLAGS+= -I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey

SRCS+=	y.tab.h
y.tab.h: parse.y
CFLAGS+= -DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I.
DPADD+=	${LIBIPSEC}
LDADD+=	-lipsec
CLEANFILES+=	scriptdump y.tab.h

#SCRIPTS= scriptdump

LOCALPREFIX=	/usr

scriptdump: scriptdump.pl
	sed -e 's#@@LOCALPREFIX@@#${LOCALPREFIX}#' < $> > scriptdump

.include <bsd.prog.mk>
@


1.11
log
@- do hexdump on send.  set length field properly
- check for encryption/authentication key together with algorithm.
- warned if a deprecated encryption algorithm (that includes "simple")
  is specified.
- changed the syntax how to define a policy of a ICMPv6 type and/or a
  code, like spdadd ::/0 ::/0 icmp6 134,0 -P out none;
- random cleanup in parser.
- use yyfatal, or return -1 after yyerror.
- deal with strdup() failure.
- permit scope notation in policy string (-P
  esp/tunnel/foo%scope-bar%scope/use)
- simplify /prefix and [port].
- g/c some unused symbols.

Obtained from:	KAME
@
text
@d28 1
a28 1
# $FreeBSD$
@


1.11.10.1
log
@MFC:	Move setkey(8) from usr.sbin/ to sbin/ and make rc.d/ipsec to run
	before rc.d/mountcritremote, so it is possible to mount /usr/ over
	IPsec.

Discussed on:	arch@@
Suggested by:	Tomasz Piat <tomasz.pilat@@axelspringer.pl>
Prodded by:	dougb
@
text
@d28 1
a28 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.11 2003/11/05 09:47:54 ume Exp $
@


1.10
log
@Don't install scriptdump which is written in Perl.  This is
corresponding to removal of Perl from base system.
@
text
@d42 1
a42 1
# libpfkey.
@


1.9
log
@Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
@
text
@d28 1
a28 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.8 2001/04/07 11:21:35 ru Exp $
d55 1
a55 1
SCRIPTS= scriptdump
@


1.8
log
@beforeinstall -> SCRIPTS.
@
text
@d27 2
a28 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.7 2001/03/26 14:41:55 ru Exp $
d31 1
d33 1
a33 1
CFLAGS+=-g
d35 2
d39 2
a40 2
CLEANFILES+=	y.tab.c y.tab.h key_test.o keytest
YFLAGS+=-d
d46 1
a46 1
CFLAGS+=-I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey
d48 1
a48 1
SRCS+=y.tab.h
d50 1
a50 1
CFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I.
d55 1
a55 2
SCRIPTS=scriptdump
MAN=	setkey.8
@


1.7
log
@- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
@
text
@d27 1
a27 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.6 2001/03/20 18:17:14 ru Exp $
a43 8
SCRIPTS=	scriptdump

BINOWN  = root
BINGRP  = bin
BINMODE = 555

all: ${PROG} scriptdump

d51 1
d53 2
a54 1
LOCALPREFIX=	/usr/local
@


1.6
log
@Set the default manual section for usr.sbin/ to 8.
@
text
@d27 1
a27 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.5 2000/12/05 22:10:42 obrien Exp $
d59 1
@


1.5
log
@Change the spelling of `.' to `.' from .OBJDIR since `.' really is where
generated files land.  Also give precedence to generated files.
@
text
@d27 1
a27 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.4 2000/12/01 09:39:28 obrien Exp $
a58 1
MAN8=	setkey.8
@


1.4
log
@The GCC 2.96 snapshots have slightly different rules for finding include
files.  Mostly -I${.CURDIR} was needed -- especially for YACC generated
files as the new cpp does not look in the ultimate source file
(ie, the .y file)'s directory as told by the "#line" directive.  Some were
misspellings of "-I${.CURDIR}" as "-I.".
@
text
@d27 1
a27 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.3 2000/07/04 16:22:05 itojun Exp $
d54 1
a54 1
CFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I${.OBJDIR}
@


1.3
log
@synchronize with latest kame tree.

behavior change: policy syntax was changed.  you may need to update your
setkey(8) configuration files.
@
text
@d27 1
a27 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.2 2000/03/27 16:40:59 bde Exp $
d32 1
a32 1
CFLAGS+=-I${.CURDIR}/../../lib/libipsec
@


1.2
log
@Fixed missing DPADDs.

Fixed style bug for LDADD (don't use += for initial definitions).
@
text
@d27 1
a27 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.1 2000/01/06 12:40:51 shin Exp $
d32 1
d37 6
@


1.1
log
@libipsec and IPsec related apps. (and some KAME related man pages)

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
@
text
@d27 1
a27 1
# $FreeBSD$
d32 2
a33 1
LDADD+=	-ll -ly
d48 1
@


1.1.2.1
log
@MFC: Fix missing DPADD and style bugs.
@
text
@d32 1
a32 2
DPADD=	${LIBL} ${LIBY}
LDADD=	-ll -ly
a46 1
DPADD+=	${LIBIPSEC}
@


1.1.2.2
log
@MFC: Merge KAME 2000/07 code.
@
text
@a31 1
CFLAGS+=-I${.CURDIR}/../../lib/libipsec
a35 6

# libpfkey.
# ipsec_strerror.c is for avoiding shlib reference to non-exported function.
.PATH: ${.CURDIR}/../../lib/libipsec ${.CURDIR}/../../sys/netkey
SRCS+= pfkey.c pfkey_dump.c key_debug.c ipsec_strerror.c
CFLAGS+=-I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey
@


1.1.2.3
log
@MFC.
@
text
@d27 1
a27 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.1.2.2 2000/07/15 07:37:03 kris Exp $
d54 1
a54 1
CFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I.
@


1.1.2.4
log
@MFC: MAN[1-9] -> MAN.
@
text
@d27 1
a27 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.1.2.3 2000/12/07 16:33:38 obrien Exp $
d59 1
a59 1
MAN=	setkey.8
@


1.1.2.5
log
@MFC: Introduce and use SCRIPTS knob.
@
text
@d27 1
a27 1
# $FreeBSD: src/usr.sbin/setkey/Makefile,v 1.1.2.4 2001/04/25 12:10:55 ru Exp $
d44 8
a58 1
SCRIPTS=scriptdump
d60 1
a60 2

LOCALPREFIX=	/usr
@


1.1.2.6
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: stable/4/usr.sbin/setkey/Makefile 75972 2001-04-25 14:05:26Z ru $
@


