diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ppp-lzs/DESCR | 9 | ||||
-rw-r--r-- | net/ppp-lzs/MESSAGE.NetBSD | 8 | ||||
-rw-r--r-- | net/ppp-lzs/Makefile | 58 | ||||
-rw-r--r-- | net/ppp-lzs/PLIST | 6 | ||||
-rw-r--r-- | net/ppp-lzs/distinfo | 4 |
5 files changed, 85 insertions, 0 deletions
diff --git a/net/ppp-lzs/DESCR b/net/ppp-lzs/DESCR new file mode 100644 index 00000000000..5c2077f4cc7 --- /dev/null +++ b/net/ppp-lzs/DESCR @@ -0,0 +1,9 @@ +This is a NetBSD decompressor for PPP compatible with the Stac LZS +scheme as described in rfc1974. The algorithm is apparently covered +by patents held by Hifn in the USA and Europe though it was written +independently with no help from Hifn or anybody associated with them, +and with no reference to the patents. You might want to consider this +'example' code only if that makes you feel better. + +This package patches the included pppd in NetBSD and thus, in order to +compile this, you will need to have the NetBSD source sets installed. diff --git a/net/ppp-lzs/MESSAGE.NetBSD b/net/ppp-lzs/MESSAGE.NetBSD new file mode 100644 index 00000000000..9df9583ea17 --- /dev/null +++ b/net/ppp-lzs/MESSAGE.NetBSD @@ -0,0 +1,8 @@ +=========================================================================== +$NetBSD: MESSAGE.NetBSD,v 1.1.1.1 2004/08/27 00:16:52 reed Exp $ + +You will probably need to add a line to your /etc/lkm.conf file to +load the kernel module at bootup time, like so: + +${PREFIX}/lkm/lzs.o - - - - BEFORENET +=========================================================================== diff --git a/net/ppp-lzs/Makefile b/net/ppp-lzs/Makefile new file mode 100644 index 00000000000..9cb863efc10 --- /dev/null +++ b/net/ppp-lzs/Makefile @@ -0,0 +1,58 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/08/27 00:16:52 reed Exp $ + +DISTNAME= ppp-lzs-1.2 +CATEGORIES= net +MASTER_SITES= http://homepages.rya-online.net/plunky/ + +MAINTAINER= plunky@rya-online.net +HOMEPAGE= http://homepages.rya-online.net/plunky/lzs.html +COMMENT= PPP daemon and LKM with Stac LZS decompression + +CONFLICTS+= ppp-* ppp-mppe-* +ONLY_FOR_PLATFORM= NetBSD-*-* + +.include "../../mk/bsd.prefs.mk" + +MAKE_ENV+= NETBSDSRCDIR="${NETBSDSRCDIR}" +MESSAGE_SUBST+= PREFIX="${PREFIX}" + +pre-extract: +.if !exists(${NETBSDSRCDIR}/usr.sbin/pppd/Makefile) + @${ECHO} "This package requires the NetBSD source sets to be installed in" + @${ECHO} "order to compile, as it patches against the supplied pppd. Please" + @${ECHO} "place them in ${NETBSDSRCDIR} or set the NETBSDSRCDIR variable" + @${ECHO} "to their location." + @${FALSE} +.endif + +post-extract: + @${CP} ${NETBSDSRCDIR}/sys/net/ppp-comp.h ${WRKSRC}/net + @${CP} ${NETBSDSRCDIR}/usr.sbin/pppd/pppd/*.[ch8] ${WRKSRC}/pppd + @${CP} ${NETBSDSRCDIR}/usr.sbin/pppd/pppd/Makefile ${WRKSRC}/pppd + +do-patch: + @cd ${WRKSRC}; \ + v=`${SED} -n -e "/^#define.*VERSION.*\"\(.*\)\".*/s//\1/p" pppd/patchlevel.h`; \ + ${ECHO} -n "pppd $${v} sources found, "; \ + if [ -d $${v} ]; then \ + ${ECHO} "patching.."; \ + ${CAT} $${v}/patch.* | ${PATCH} --quiet; \ + else \ + ${ECHO} "Have no patches for this version, sorry!"; \ + ${FALSE}; \ + fi + +pre-install: +.if !exists(${PREFIX}/lkm) + ${INSTALL_PROGRAM_DIR} ${PREFIX}/lkm +.endif + +do-install: + ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m 4555 \ + ${WRKSRC}/pppd/pppd ${PREFIX}/sbin/pppd + ${INSTALL_MAN} ${WRKSRC}/pppd/pppd.cat8 ${PREFIX}/man/cat8/pppd.0 + ${INSTALL_MAN} ${WRKSRC}/pppd/pppd.8 ${PREFIX}/man/man8/pppd.8 + ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${WRKSRC}/lkm/lzs.o ${PREFIX}/lkm/lzs.o + +.include "../../mk/bsd.pkg.mk" diff --git a/net/ppp-lzs/PLIST b/net/ppp-lzs/PLIST new file mode 100644 index 00000000000..c7bbb54f3ee --- /dev/null +++ b/net/ppp-lzs/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/27 00:16:52 reed Exp $ +sbin/pppd +man/man8/pppd.8 +man/cat8/pppd.0 +lkm/lzs.o +@dirrm lkm diff --git a/net/ppp-lzs/distinfo b/net/ppp-lzs/distinfo new file mode 100644 index 00000000000..620cec3fc93 --- /dev/null +++ b/net/ppp-lzs/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/08/27 00:16:52 reed Exp $ + +SHA1 (ppp-lzs-1.2.tar.gz) = 2d9dfdc30e38c1499acde27adb3ccfd0d6ccb47e +Size (ppp-lzs-1.2.tar.gz) = 16506 bytes |