summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron>2000-08-12 16:54:44 +0000
committertron <tron>2000-08-12 16:54:44 +0000
commit184bb4161b9a5f7b9e294ae2af928d655de0b9c8 (patch)
treeb4488df8f0040487ccce1a69aee80e4c100d653b /net
parent338a6f1352cd2a683dd579c58f5d19e300d31cc1 (diff)
downloadpkgsrc-184bb4161b9a5f7b9e294ae2af928d655de0b9c8.tar.gz
Use the system PPP daemon on NetBSD 1.5 or newer and the "ppp" package
otherwise. This should fix problems with system were "pppd" is not configured.
Diffstat (limited to 'net')
-rw-r--r--net/rp-pppoe/Makefile25
1 files changed, 7 insertions, 18 deletions
diff --git a/net/rp-pppoe/Makefile b/net/rp-pppoe/Makefile
index 4189c9d16f1..620da9bbd69 100644
--- a/net/rp-pppoe/Makefile
+++ b/net/rp-pppoe/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2000/07/31 19:31:03 tron Exp $
+# $NetBSD: Makefile,v 1.6 2000/08/12 16:54:44 tron Exp $
DISTNAME= rp-pppoe-2.2
CATEGORIES= net
@@ -7,10 +7,6 @@ MASTER_SITES= http://www.roaringpenguin.com/pppoe/
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://home.sprynet.com/~minaret/pppoe/
-.if !defined(CHECK_PPPD_DEPENDS)
-DEPENDS!= ${MAKE} CHECK_PPPD_DEPENDS=1 ${MAKEFLAGS} pppd-depend
-.endif
-
CONFLICTS+= mouse_pppoe-*
GNU_CONFIGURE= yes
@@ -19,21 +15,14 @@ CONFIGURE_ENV+= PPPD=${PPPD}
post-install:
${INSTALL_DATA} ${WRKSRC}/pppoe.conf ${PREFIX}/share/doc/rp-pppoe
-.include "../../mk/bsd.pkg.mk"
+.include "../../mk/bsd.prefs.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 ${OPSYS} == "NetBSD" && ${OS_VERSION:M1.[0-4]*} != ""
+DEPENDS+= ppp>=2.3.10:../ppp
-.if ${PPPD_VERSION} < 2003010
PPPD= ${LOCALBASE}/sbin/pppd
-
-pppd-depend:
- @${ECHO} "ppp>=2.3.10:../ppp"
.else
-PPPD= ${BASE_PPPD}
-
-pppd-depend:
- @${ECHO} ""
+PPPD= /usr/sbin/pppd
.endif
+
+.include "../../mk/bsd.pkg.mk"