summaryrefslogtreecommitdiff
path: root/net/rp-pppoe
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-19 18:41:39 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-19 18:41:39 +0000
commit9f1aa8605ccccefd780cdebb3d4bc01376692341 (patch)
tree5c05086ed85eefedb735f8dabdb459bb39bd04ec /net/rp-pppoe
parent6366d4b811c19fcb13dc2052cbd8b7264357561b (diff)
downloadpkgsrc-9f1aa8605ccccefd780cdebb3d4bc01376692341.tar.gz
Fix DESTDIR support
Diffstat (limited to 'net/rp-pppoe')
-rw-r--r--net/rp-pppoe/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/net/rp-pppoe/Makefile b/net/rp-pppoe/Makefile
index 8f2094bbba8..88222b525b2 100644
--- a/net/rp-pppoe/Makefile
+++ b/net/rp-pppoe/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2009/01/11 02:50:46 jmcneill Exp $
+# $NetBSD: Makefile,v 1.39 2010/02/19 18:41:39 joerg Exp $
DISTNAME= rp-pppoe-3.8
PKGREVISION= 1
@@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.roaringpenguin.com/products/pppoe
COMMENT= Roaring Penguin's PPP over Ethernet client
+PKG_DESTDIR_SUPPORT= user-destdir
+
NOT_FOR_PLATFORM+= Interix-*-* # no userland protocol stack support
CONFLICTS+= mouse_pppoe<20000912nb1
@@ -23,10 +25,13 @@ BUILD_DIRS= src
RCD_SCRIPTS= pppoe
+INSTALLATION_DIRS+= share/examples/rp-pppoe
+
+INSTALL_MAKE_FLAGS+= RPM_INSTALL_ROOT=${DESTDIR}
+
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
+ ${DESTDIR}${PREFIX}/share/examples/rp-pppoe
.include "../../mk/bsd.pkg.mk"