blob: e89d98fc5297da380fe753ea47f96f07adcec011 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.11 2006/05/18 20:30:00 wiz 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
BROKEN_IN= pkgsrc-2005Q4 pkgsrc-2006Q1
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 man/cat8 man/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
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"
|