mirror of
https://github.com/opnsense/src.git
synced 2026-02-14 08:13:38 -05:00
Support for compression has been available from July 2007 but it was never imported due to concerns with patents once held by STAC/HiFn. The issues have clearly been resolved so bring it in now. Special thanks to Brett Glass for preserving the code and pointing documentation for the expiration case. Obtained from: mav (through Brett Glass) Relnotes: yes MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D6739
31 lines
662 B
Makefile
31 lines
662 B
Makefile
# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
|
|
# $FreeBSD$
|
|
|
|
KMOD= ng_mppc
|
|
SRCS= ng_mppc.c opt_netgraph.h
|
|
|
|
NETGRAPH_MPPC_COMPRESSION?= 1
|
|
NETGRAPH_MPPC_ENCRYPTION?= 1
|
|
|
|
.if ${NETGRAPH_MPPC_COMPRESSION} > 0
|
|
.PATH: ${.CURDIR}/../../../net
|
|
SRCS+= mppcc.c mppcd.c
|
|
.endif
|
|
|
|
.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
|
|
.PATH: ${.CURDIR}/../../../crypto
|
|
SRCS+= sha1.c
|
|
.endif
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
opt_netgraph.h:
|
|
:> ${.TARGET}
|
|
.if ${NETGRAPH_MPPC_COMPRESSION} > 0
|
|
echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
|
|
.endif
|
|
.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
|
|
echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|