head	1.8;
access;
symbols
	perseant-exfatfs-base-20250801:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.46
	perseant-exfatfs-base:1.8
	cjep_sun2x:1.8.0.44
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	cjep_staticlib_x:1.8.0.42
	cjep_staticlib_x-base:1.8
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	phil-wifi-20200406:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	pgoyette-compat-0728:1.8
	pgoyette-compat-0625:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	pgoyette-compat:1.8.0.40
	pgoyette-compat-base:1.8
	perseant-stdc-iso10646:1.8.0.38
	perseant-stdc-iso10646-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.36
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	bouyer-socketcan:1.8.0.34
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	pgoyette-localcount-20161104:1.8
	localcount-20160914:1.8
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.32
	pgoyette-localcount-base:1.8
	netbsd-5-2-3-RELEASE:1.8
	netbsd-5-1-5-RELEASE:1.8
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.8
	tls-earlyentropy:1.8.0.28
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-5-2-2-RELEASE:1.8
	netbsd-5-1-4-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.8
	netbsd-5-1-3-RELEASE:1.8
	agc-symver:1.8.0.30
	agc-symver-base:1.8
	tls-maxphys-base:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.8.0.26
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.8
	netbsd-5-2-RC1:1.8
	yamt-pagecache-base6:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-5-1-2-RELEASE:1.8
	netbsd-5-1-1-RELEASE:1.8
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.24
	yamt-pagecache-base:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.22
	bouyer-quota2-base:1.8
	matt-nb5-pq3:1.8.0.20
	matt-nb5-pq3-base:1.8
	netbsd-5-1:1.8.0.18
	netbsd-5-1-RELEASE:1.8
	netbsd-5-1-RC4:1.8
	netbsd-5-1-RC3:1.8
	netbsd-5-1-RC2:1.8
	netbsd-5-1-RC1:1.8
	netbsd-5-0-2-RELEASE:1.8
	netbsd-5-0-1-RELEASE:1.8
	jym-xensuspend-nbase:1.8
	netbsd-5-0:1.8.0.16
	netbsd-5-0-RELEASE:1.8
	netbsd-5-0-RC4:1.8
	netbsd-5-0-RC3:1.8
	netbsd-5-0-RC2:1.8
	jym-xensuspend:1.8.0.14
	jym-xensuspend-base:1.8
	netbsd-5-0-RC1:1.8
	netbsd-5:1.8.0.12
	netbsd-5-base:1.8
	mjf-devfs2:1.8.0.10
	mjf-devfs2-base:1.8
	yamt-pf42-base4:1.8
	yamt-pf42-base3:1.8
	hpcarm-cleanup-nbase:1.8
	yamt-pf42-base2:1.8
	yamt-pf42:1.8.0.8
	yamt-pf42-base:1.8
	keiichi-mipv6-nbase:1.8
	keiichi-mipv6:1.8.0.6
	keiichi-mipv6-base:1.8
	cube-autoconf:1.8.0.4
	cube-autoconf-base:1.8
	hpcarm-cleanup:1.8.0.2
	hpcarm-cleanup-base:1.8
	minoura-xpg4dl-base:1.5
	minoura-xpg4dl:1.5.0.2
	wrstuden-devbsize-19991221:1.2
	wrstuden-devbsize:1.2.0.4
	wrstuden-devbsize-base:1.2
	comdex-fall-1999:1.2.0.2
	comdex-fall-1999-base:1.2;
locks; strict;
comment	@# @;


1.8
date	2000.06.13.15.15.32;	author itojun;	state dead;
branches;
next	1.7;

1.7
date	2000.06.13.05.35.45;	author itojun;	state Exp;
branches;
next	1.6;

1.6
date	2000.06.12.10.40.50;	author itojun;	state Exp;
branches;
next	1.5;

1.5
date	2000.03.13.21.04.07;	author itojun;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2000.02.25.08.52.04;	author mycroft;	state Exp;
branches;
next	1.3;

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

1.2
date	99.07.10.11.31.28;	author tron;	state Exp;
branches;
next	1.1;

1.1
date	99.07.02.17.41.24;	author itojun;	state Exp;
branches;
next	;

1.5.2.1
date	2000.06.22.18.01.13;	author minoura;	state dead;
branches;
next	;


desc
@@


1.8
log
@move setkey(8) from usr.sbin to sbin, to enable us to initialize
IPsec manual key before /usr mount..
(based on "don't use cvsmove" discussion i have seen, I did not use cvsmove)
@
text
@# $NetBSD: Makefile,v 1.7 2000/06/13 05:35:45 itojun Exp $

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

CFLAGS+=-g
CPPFLAGS+=-I${.CURDIR}/../../lib/libipsec
LDADD+=	-ll -ly
DPADD+=	${LIBL} ${LIBY}
CLEANFILES+=	y.tab.c y.tab.h key_test.o keytest
YFLAGS+=-d

#SCRIPTS=	scriptdump

all: ${PROG} scriptdump

CPPFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT
CPPFLAGS+=-I. -I${.CURDIR}
LDADD+= -lipsec
DPADD+=	${LIBIPSEC}
CLEANFILES+=	scriptdump

# 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
CPPFLAGS+=-I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey

MAN=	setkey.8
LOCALPREFIX=	/usr/pkg

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

.include <bsd.prog.mk>
@


1.7
log
@do not install /usr/sbin/scriptdump, a helper perl script for setkey(8).
makes no sense when we have no perl in base system.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2000/06/12 10:40:50 itojun Exp $
@


1.6
log
@sync with almost-latest KAME IPsec.  full changelog would be too big
to mention here.  notable changes are like below.

kernel:
- make PF_KEY kernel interface more robust against broken input stream.
  it includes complete internal structure change in sys/netkey/key.c.
- remove non-RFC compliant change in PF_KEY API, in particular,
  in struct sadb_msg.  we cannot just change these standard structs.
  sadb_x_sa2 is introduced instead.
- remove prototypes for pfkey_xx functions from /usr/include/net/pfkeyv2.h.
  these functions are not supplied in /usr/lib.

setkey(8):
- get/delete does not require "-m mode" (ignored with warning, if you
  specify it)
- spddelete takes direction specification
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2000/03/13 21:04:07 itojun Exp $
d13 1
a13 1
SCRIPTS=	scriptdump
@


1.5
log
@avoid shlib reference for pfkey_*.  compile them on our own.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2000/02/25 08:52:04 mycroft Exp $
d7 1
@


1.5.2.1
log
@Sync w/ netbsd-1-5-base.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2000/03/13 21:04:07 itojun Exp $
@


1.4
log
@Nuke gratuitous setting of BINOWN and BINGRP.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2000/01/31 14:22:41 itojun Exp $
d5 1
d21 6
@


1.3
log
@catch up with latest libipsec/kernel.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 1999/07/10 11:31:28 tron Exp $
a11 4

BINOWN=root
BINGRP=bin
BINMODE=555
@


1.2
log
@Remove "parse.c" and "parse.h" during "make cleandir".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 1999/07/02 17:41:24 itojun Exp $
d5 1
d7 3
a9 2
CLEANFILES+=	parse.c parse.h key_test.o keytest
YFLAGS+=
d11 1
a11 2
CPPFLAGS+=-DIPSEC_DEBUG -DYY_NO_UNPUT -DINET6
CPPFLAGS+=-I.
d13 3
a15 1
#SCRIPTS=	scriptdump
d17 1
a17 9
BINOWN  = root
BINGRP  = bin
BINMODE = 555

all: ${PROG} ${SCRIPTS}

# FreeBSD
#SRCS+=y.tab.h
#y.tab.h: parse.y
d19 2
d23 1
a23 1
#CLEANFILES+=	scriptdump
d28 2
a29 7
#scriptdump: scriptdump.pl
#	sed -e 's#@@LOCALPREFIX@@#${LOCALPREFIX}#' < ${.CURDIR}/scriptdump.pl > scriptdump

parse.c parse.h: parse.y
	${YACC.y} -d ${.ALLSRC}
	mv -f y.tab.c parse.c
	mv -f y.tab.h parse.h
@


1.1
log
@setkey: configure IPsec keys to the kernel key table
(not subject to export control as itself does not contain crypto)
@
text
@d1 1
a1 1
# $NetBSD$
d6 1
a6 1
CLEANFILES+=	y.tab.c y.tab.h key_test.o keytest
@

