Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

racoon build framework, from netbsd-current

  • Loading branch information...
commit d9e6ac3c10aa522f373700ea662726a6d75f6eb3 1 parent 91ba692
authored December 13, 2000
5  netbsd/sbin/racoon/Makefile
... ...
@@ -0,0 +1,5 @@
  1
+#	$NetBSD: Makefile,v 1.1 2000/10/04 00:21:17 itojun Exp $
  2
+
  3
+SUBDIR+=libpfkey racoon
  4
+
  5
+.include <bsd.subdir.mk>
14  netbsd/sbin/racoon/Makefile.inc
... ...
@@ -0,0 +1,14 @@
  1
+#	$NetBSD: Makefile.inc,v 1.2 2000/10/04 00:27:48 itojun Exp $
  2
+
  3
+# point top of your KAME tree by ${KAMEROOT}
  4
+KAMEROOT=	${.CURDIR}/../../../../..
  5
+LIBPFKEYSRCDIR=	${KAMEROOT}/kame/kame/kame/libipsec
  6
+RACOONSRCDIR=	${KAMEROOT}/kame/kame/kame/racoon
  7
+TCPDUMPSRCDIR=	${KAMEROOT}/kame/kame/kame/tcpdump
  8
+
  9
+# this may or may not work.
  10
+##TCPDUMPSRCDIR=	${.CURDIR}/../../../usr.sbin/tcpdump
  11
+
  12
+ETCDIR?=	/etc/racoon
  13
+
  14
+.include "../Makefile.inc"
26  netbsd/sbin/racoon/libpfkey/Makefile
... ...
@@ -0,0 +1,26 @@
  1
+#	$NetBSD: Makefile,v 1.1 2000/10/04 00:21:21 itojun Exp $
  2
+
  3
+LIB=	pfkey
  4
+CFLAGS+=-g -Wall -Werror
  5
+CPPFLAGS+=-DIPSEC_DEBUG -DIPSEC -DINET6 -I. -DYY_NO_UNPUT -I${LIBPFKEYSRCDIR}
  6
+
  7
+SRCS=	pfkey.c pfkey_dump.c ipsec_strerror.c
  8
+SRCS+=	key_debug.c
  9
+#YPREFIX=__libyy
  10
+#LPREFIX=__libyy
  11
+#YHEADER=1
  12
+
  13
+#MAN=	ipsec_set_policy.3 ipsec_strerror.3
  14
+#MLINKS+=ipsec_set_policy.3 ipsec_get_policylen.3 \
  15
+#	ipsec_set_policy.3 ipsec_dump_policy.3
  16
+
  17
+MKPIC=no
  18
+MKPROFILE=no
  19
+MKLINT=no
  20
+
  21
+# don't install it into public place!
  22
+libinstall::
  23
+
  24
+.include <bsd.lib.mk>
  25
+
  26
+.PATH:	${LIBPFKEYSRCDIR} ${.CURDIR}/../../../sys/netkey
57  netbsd/sbin/racoon/racoon/Makefile
... ...
@@ -0,0 +1,57 @@
  1
+#	$NetBSD: Makefile,v 1.4 2000/12/12 22:41:51 itojun Exp $
  2
+
  3
+.include <bsd.own.mk>
  4
+
  5
+PROG=	racoon
  6
+SRCS=	main.c session.c isakmp.c handler.c random.c \
  7
+	isakmp_ident.c isakmp_agg.c isakmp_base.c \
  8
+	isakmp_quick.c isakmp_inf.c isakmp_newg.c \
  9
+	gssapi.c \
  10
+	pfkey.c admin.c ipsec_doi.c oakley.c grabmyaddr.c \
  11
+	policy.c localconf.c remoteconf.c crypto_openssl.c algorithm.c \
  12
+	cfparse.c cftoken.c strnames.c \
  13
+	vmbuf.c plog.c logger.c schedule.c str2val.c misc.c sockmisc.c \
  14
+	proposal.c sainfo.c vendorid.c safefile.c
  15
+
  16
+MAN=	racoon.8 racoon.conf.5
  17
+
  18
+# debugging code with print-isakmp.c
  19
+SRCS+=	print-isakmp.c
  20
+CPPFLAGS+=-I${TCPDUMPSRCDIR} -I${TCPDUMPSRCDIR}/lbl -DHAVE_PRINT_ISAKMP_C=1
  21
+.if (${MKKERBEROS} != "no")
  22
+CPPFLAGS+=-I${DESTDIR}/usr/include/krb5
  23
+.endif
  24
+
  25
+# for debugging malloc/free
  26
+#.if exists(/usr/pkg/lib/libefence.a) || exists(/usr/pkg/lib/libefence.so)
  27
+#LDADD+=-L/usr/pkg/lib -lefence
  28
+#.endif
  29
+
  30
+LIBPFKEYDIR!=	cd ${.CURDIR}/../libpfkey; make print-objdir
  31
+LDADD+=	-L${LIBPFKEYDIR} -lpfkey
  32
+DPADD+=	${LIBPFKEYDIR}/libpfkey.a
  33
+.if (${MKKERBEROS} != "no")
  34
+LDADD+=	-lgssapi -lkrb5 -lcom_err -lroken -lasn1
  35
+DPADD+=	${LIBGSSAPI} ${LIBKRB5} ${LIBCOM_ERR} ${LIBROKEN} ${LIBASN1}
  36
+.endif
  37
+LDADD+=	-lipsec -ly -ll -lcrypto
  38
+DPADD+=	${LIBIPSEC} ${LIBY} ${LIBL} ${LIBCRYPTO}
  39
+
  40
+#CFLAGS+=-g
  41
+OPTFLAG+=-DHAVE_PFKEYV2 -DYIPS_DEBUG
  42
+CPPFLAGS+=-DINET6 -DHAVE_FUNCTION_MACRO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBL=1 -DHAVE_LIBY=1 -DENABLE_IPV6=1 -DADVAPI=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_STRDUP=1  $(OPTFLAG) -DIPSEC -I${RACOONSRCDIR} -I. -Dss_family=__ss_family -Dss_len=__ss_len -DSYSCONFDIR=\"$(ETCDIR)\"
  43
+CPPFLAGS+=-DHAVE_OPENSSL_OPENSSLV_H=1
  44
+CPPFLAGS+=-DYY_NO_UNPUT
  45
+CPPFLAGS+=-I${LIBPFKEYSRCDIR}
  46
+.if (${MKKERBEROS} != "no")
  47
+CPPFLAGS+=-DHAVE_GSSAPI 
  48
+.endif
  49
+YFLAGS+=-d
  50
+
  51
+# Certificate support
  52
+CPPFLAGS+=-DHAVE_SIGNING_C=1 -DHAVE_OPENSSL_PEM_H=1 -DHAVE_OPENSSL_X509_H=1
  53
+
  54
+.include <bsd.prog.mk>
  55
+
  56
+.PATH:	${RACOONSRCDIR} ${TCPDUMPSRCDIR}
  57
+CLEANFILES+=	y.tab.h cfparse.c cftoken.c

0 notes on commit d9e6ac3

Please sign in to comment.
Something went wrong with that request. Please try again.