summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-12-27 12:08:01 +0000
committerobache <obache@pkgsrc.org>2007-12-27 12:08:01 +0000
commit2f8fe1549bc3c93d0748c3b77b7109c84c299b46 (patch)
tree789fb25820154c3445e331ac67e7edfbb7672118 /net
parentae986718a98ec3d90104b1f38fa314228aa15d6a (diff)
downloadpkgsrc-2f8fe1549bc3c93d0748c3b77b7109c84c299b46.tar.gz
* Use *_MAKE_FLAGS instead of *_TARGET to pass variables.
* Add DESTDIR support. * Honor PKGMANDIR. Bump PKGREVISION.
Diffstat (limited to 'net')
-rw-r--r--net/srsh/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/net/srsh/Makefile b/net/srsh/Makefile
index 70f7088c210..66b0de64a28 100644
--- a/net/srsh/Makefile
+++ b/net/srsh/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2004/12/03 15:15:06 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2007/12/27 12:08:01 obache Exp $
#
DISTNAME= srsh-1.2
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.gw.com/pub/people/kim/
@@ -12,8 +13,16 @@ COMMENT= Emulate rsh client behavior using ssh
DEPENDS+= {ssh{,6}-[0-9]*,openssh-[0-9]*}:../../security/openssh
.endif
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
NO_CONFIGURE= yes
-BUILD_TARGET= all PREFIX=${PREFIX}
-INSTALL_TARGET= install PREFIX=${PREFIX}
+BUILD_MAKE_FLAGS+= PREFIX=${PREFIX}
+INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+SUBST_CLASSES+= manpath
+SUBST_STAGE.manpath= post-extract
+SUBST_FILES.manpath= Makefile
+SUBST_SED.manpath= -e 's,/man/,/${PKGMANDIR}/,'
.include "../../mk/bsd.pkg.mk"