pkgsrc/net/ppp-lzs/Makefile
2009-02-16 13:59:42 +00:00

64 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2009/02/16 13:59:42 joerg 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
PKG_DESTDIR_SUPPORT= user-destdir
CONFLICTS+= ppp-* ppp-mppe-*
ONLY_FOR_PLATFORM= NetBSD-*-*
.include "../../mk/bsd.prefs.mk"
MAKE_ENV+= NETBSDSRCDIR=${NETBSDSRCDIR:Q}
MAKE_ENV+= S="${NETBSDSRCDIR}/sys"
MESSAGE_SUBST+= PREFIX="${PREFIX}"
USE_TOOLS+= patch
BUILDLINK_PASSTHRU_DIRS= ${NETBSDSRCDIR}/lib/libpcap
INSTALLATION_DIRS= lkm ${PKGMANDIR}/cat8 ${PKGMANDIR}/man8 sbin
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
INSTALLATION_DIRS= lkm sbin ${PKGMANDIR}/cat8 ${PKGMANDIR}/man8
do-install:
${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m 4555 \
${WRKSRC}/pppd/pppd ${DESTDIR}${PREFIX}/sbin/pppd
${INSTALL_MAN} ${WRKSRC}/pppd/pppd.cat8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat8/pppd.0
${INSTALL_MAN} ${WRKSRC}/pppd/pppd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/pppd.8
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
${WRKSRC}/lkm/lzs.o ${DESTDIR}${PREFIX}/lkm/lzs.o
.include "../../mk/bsd.pkg.mk"