summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-01-16 09:27:59 +0000
committergrant <grant@pkgsrc.org>2003-01-16 09:27:59 +0000
commitc13244873656822be75f164a9f8afe1494a9b610 (patch)
tree1471c49f8266df3db58ef7ed1d2137b5eb9f317c /net
parent767cea7dce6bf4fe4b84fd4c73346ef5b1d2e82f (diff)
downloadpkgsrc-c13244873656822be75f164a9f8afe1494a9b610.tar.gz
use automatic rc script handling.
Diffstat (limited to 'net')
-rw-r--r--net/rp-pppoe/Makefile8
-rwxr-xr-xnet/rp-pppoe/files/pppoe.sh8
2 files changed, 7 insertions, 9 deletions
diff --git a/net/rp-pppoe/Makefile b/net/rp-pppoe/Makefile
index 804f3209a2a..0c6d9d33a09 100644
--- a/net/rp-pppoe/Makefile
+++ b/net/rp-pppoe/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2002/10/09 08:30:40 tron Exp $
+# $NetBSD: Makefile,v 1.20 2003/01/16 09:27:59 grant Exp $
DISTNAME= rp-pppoe-3.5
CATEGORIES= net
@@ -16,15 +16,13 @@ CONFIGURE_ENV+= PPPD=${PPPD}
WRKSRC= ${WRKDIR}/${DISTNAME}/src
-post-build:
- ${SED} -e 's#$${PREFIX}#${PREFIX}#g' <${FILESDIR}/pppoe.sh \
- >${WRKDIR}/pppoe.sh
+RCD_SCRIPTS= pppoe
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rp-pppoe
cd ${WRKSRC}/../configs && \
${INSTALL_DATA} pppoe.conf pppoe-server-options \
${PREFIX}/share/examples/rp-pppoe
- ${INSTALL_SCRIPT} ${WRKDIR}/pppoe.sh ${PREFIX}/etc/rc.d/pppoe
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/rp-pppoe/files/pppoe.sh b/net/rp-pppoe/files/pppoe.sh
index c56c534aa8a..c25ab62c743 100755
--- a/net/rp-pppoe/files/pppoe.sh
+++ b/net/rp-pppoe/files/pppoe.sh
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pppoe.sh,v 1.1 2001/03/18 18:55:29 tron Exp $
+# $NetBSD: pppoe.sh,v 1.2 2003/01/16 09:28:01 grant Exp $
#
# PROVIDE: pppoe
# REQUIRE: ipnat
@@ -11,10 +11,10 @@ case $1 in
start)
. /etc/ppp/pppoe.conf
ifconfig $ETH up
- ${PREFIX}/sbin/adsl-start
+ @PREFIX@/sbin/adsl-start
;;
stop)
- ${PREFIX}/sbin/adsl-stop
+ @PREFIX@/sbin/adsl-stop
. /etc/ppp/pppoe.conf
ifconfig $ETH down
;;