Permalink
Browse files

racoon build framework, from netbsd-current

  • Loading branch information...
itojun
itojun committed Dec 13, 2000
1 parent 91ba692 commit d9e6ac3c10aa522f373700ea662726a6d75f6eb3
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2000/10/04 00:21:17 itojun Exp $
+
+SUBDIR+=libpfkey racoon
+
+.include <bsd.subdir.mk>
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile.inc,v 1.2 2000/10/04 00:27:48 itojun Exp $
+
+# point top of your KAME tree by ${KAMEROOT}
+KAMEROOT= ${.CURDIR}/../../../../..
+LIBPFKEYSRCDIR= ${KAMEROOT}/kame/kame/kame/libipsec
+RACOONSRCDIR= ${KAMEROOT}/kame/kame/kame/racoon
+TCPDUMPSRCDIR= ${KAMEROOT}/kame/kame/kame/tcpdump
+
+# this may or may not work.
+##TCPDUMPSRCDIR= ${.CURDIR}/../../../usr.sbin/tcpdump
+
+ETCDIR?= /etc/racoon
+
+.include "../Makefile.inc"
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2000/10/04 00:21:21 itojun Exp $
+
+LIB= pfkey
+CFLAGS+=-g -Wall -Werror
+CPPFLAGS+=-DIPSEC_DEBUG -DIPSEC -DINET6 -I. -DYY_NO_UNPUT -I${LIBPFKEYSRCDIR}
+
+SRCS= pfkey.c pfkey_dump.c ipsec_strerror.c
+SRCS+= key_debug.c
+#YPREFIX=__libyy
+#LPREFIX=__libyy
+#YHEADER=1
+
+#MAN= ipsec_set_policy.3 ipsec_strerror.3
+#MLINKS+=ipsec_set_policy.3 ipsec_get_policylen.3 \
+# ipsec_set_policy.3 ipsec_dump_policy.3
+
+MKPIC=no
+MKPROFILE=no
+MKLINT=no
+
+# don't install it into public place!
+libinstall::
+
+.include <bsd.lib.mk>
+
+.PATH: ${LIBPFKEYSRCDIR} ${.CURDIR}/../../../sys/netkey
@@ -0,0 +1,57 @@
+# $NetBSD: Makefile,v 1.4 2000/12/12 22:41:51 itojun Exp $
+
+.include <bsd.own.mk>
+
+PROG= racoon
+SRCS= main.c session.c isakmp.c handler.c random.c \
+ isakmp_ident.c isakmp_agg.c isakmp_base.c \
+ isakmp_quick.c isakmp_inf.c isakmp_newg.c \
+ gssapi.c \
+ pfkey.c admin.c ipsec_doi.c oakley.c grabmyaddr.c \
+ policy.c localconf.c remoteconf.c crypto_openssl.c algorithm.c \
+ cfparse.c cftoken.c strnames.c \
+ vmbuf.c plog.c logger.c schedule.c str2val.c misc.c sockmisc.c \
+ proposal.c sainfo.c vendorid.c safefile.c
+
+MAN= racoon.8 racoon.conf.5
+
+# debugging code with print-isakmp.c
+SRCS+= print-isakmp.c
+CPPFLAGS+=-I${TCPDUMPSRCDIR} -I${TCPDUMPSRCDIR}/lbl -DHAVE_PRINT_ISAKMP_C=1
+.if (${MKKERBEROS} != "no")
+CPPFLAGS+=-I${DESTDIR}/usr/include/krb5
+.endif
+
+# for debugging malloc/free
+#.if exists(/usr/pkg/lib/libefence.a) || exists(/usr/pkg/lib/libefence.so)
+#LDADD+=-L/usr/pkg/lib -lefence
+#.endif
+
+LIBPFKEYDIR!= cd ${.CURDIR}/../libpfkey; make print-objdir
+LDADD+= -L${LIBPFKEYDIR} -lpfkey
+DPADD+= ${LIBPFKEYDIR}/libpfkey.a
+.if (${MKKERBEROS} != "no")
+LDADD+= -lgssapi -lkrb5 -lcom_err -lroken -lasn1
+DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBCOM_ERR} ${LIBROKEN} ${LIBASN1}
+.endif
+LDADD+= -lipsec -ly -ll -lcrypto
+DPADD+= ${LIBIPSEC} ${LIBY} ${LIBL} ${LIBCRYPTO}
+
+#CFLAGS+=-g
+OPTFLAG+=-DHAVE_PFKEYV2 -DYIPS_DEBUG
+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)\"
+CPPFLAGS+=-DHAVE_OPENSSL_OPENSSLV_H=1
+CPPFLAGS+=-DYY_NO_UNPUT
+CPPFLAGS+=-I${LIBPFKEYSRCDIR}
+.if (${MKKERBEROS} != "no")
+CPPFLAGS+=-DHAVE_GSSAPI
+.endif
+YFLAGS+=-d
+
+# Certificate support
+CPPFLAGS+=-DHAVE_SIGNING_C=1 -DHAVE_OPENSSL_PEM_H=1 -DHAVE_OPENSSL_X509_H=1
+
+.include <bsd.prog.mk>
+
+.PATH: ${RACOONSRCDIR} ${TCPDUMPSRCDIR}
+CLEANFILES+= y.tab.h cfparse.c cftoken.c

0 comments on commit d9e6ac3

Please sign in to comment.