From 41565a8e82898b9f3e027c49548add9102e7826c Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 18 Jul 2000 18:42:48 +0000 Subject: If base system includes "pppd" 2.3.10 or newer use that instead of the "ppp" package. --- net/rp-pppoe/Makefile | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'net/rp-pppoe') diff --git a/net/rp-pppoe/Makefile b/net/rp-pppoe/Makefile index 17e4a4a06ef..eecfbd38439 100644 --- a/net/rp-pppoe/Makefile +++ b/net/rp-pppoe/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2000/07/17 21:11:45 tron Exp $ +# $NetBSD: Makefile,v 1.4 2000/07/18 18:42:48 tron Exp $ DISTNAME= rp-pppoe-2.0 CATEGORIES= net @@ -7,14 +7,33 @@ MASTER_SITES= http://www.roaringpenguin.com/pppoe/ MAINTAINER= tron@netbsd.org HOMEPAGE= http://home.sprynet.com/~minaret/pppoe/ -DEPENDS+= ppp>=2.3.10:../ppp +.if !defined(CHECK_PPPD_DEPENDS) +DEPENDS!= ${MAKE} CHECK_PPPD_DEPENDS=1 ${MAKEFLAGS} pppd-depend +.endif CONFLICTS+= mouse_pppoe-* GNU_CONFIGURE= yes -CONFIGURE_ENV= PPPD=${LOCALBASE}/sbin/pppd +CONFIGURE_ENV+= PPPD=${PPPD} post-install: ${INSTALL_DATA} ${WRKSRC}/pppoe.conf ${PREFIX}/share/doc/rp-pppoe .include "../../mk/bsd.pkg.mk" + +BASE_PPPD= /usr/sbin/pppd +PPPD_VERSION!= ${BASE_PPPD} --version 2>&1 | \ + ${SED} -e 's/ patch level /\./' -e 's/.* //' | \ + ${AWK} -F. '{printf("%d\n",$$1*1000000+$$2*1000+$$3)}' + +.if ${PPPD_VERSION} < 2003010 +PPPD= ${LOCALBASE}/sbin/pppd + +pppd-depend: + @${ECHO} "ppp>=2.3.10:../ppp" +.else +PPPD= ${BASE_PPPD} + +pppd-depend: + @${ECHO} "" +.endif -- cgit v1.2.3