If base system includes "pppd" 2.3.10 or newer use that instead of the
"ppp" package.
This commit is contained in:
parent
03dabdb86e
commit
41565a8e82
1 changed files with 22 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue