pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/ppp-lzs This is initial import of ppp-lzs-1.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c19fc1a28fa
branches:  trunk
changeset: 479944:0c19fc1a28fa
user:      reed <reed%pkgsrc.org@localhost>
date:      Fri Aug 27 00:16:50 2004 +0000

description:
This is initial import of ppp-lzs-1.2.
It is a PPP daemon and LKM with Stac LZS decompression.

This was packaged by Iain Hibbert and provided via pkgsrc-wip.

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.

NOTE: I didn't test this software.

diffstat:

 net/ppp-lzs/DESCR          |   9 +++++++
 net/ppp-lzs/MESSAGE.NetBSD |   8 ++++++
 net/ppp-lzs/Makefile       |  58 ++++++++++++++++++++++++++++++++++++++++++++++
 net/ppp-lzs/PLIST          |   6 ++++
 net/ppp-lzs/distinfo       |   4 +++
 5 files changed, 85 insertions(+), 0 deletions(-)

diffs (105 lines):

diff -r 36827843b11f -r 0c19fc1a28fa net/ppp-lzs/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ppp-lzs/DESCR Fri Aug 27 00:16:50 2004 +0000
@@ -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 -r 36827843b11f -r 0c19fc1a28fa net/ppp-lzs/MESSAGE.NetBSD
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ppp-lzs/MESSAGE.NetBSD        Fri Aug 27 00:16:50 2004 +0000
@@ -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 -r 36827843b11f -r 0c19fc1a28fa net/ppp-lzs/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ppp-lzs/Makefile      Fri Aug 27 00:16:50 2004 +0000
@@ -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@localhost
+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 -r 36827843b11f -r 0c19fc1a28fa net/ppp-lzs/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ppp-lzs/PLIST Fri Aug 27 00:16:50 2004 +0000
@@ -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 -r 36827843b11f -r 0c19fc1a28fa net/ppp-lzs/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ppp-lzs/distinfo      Fri Aug 27 00:16:50 2004 +0000
@@ -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



Home | Main Index | Thread Index | Old Index