summaryrefslogtreecommitdiff
path: root/news/suck/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-11 22:57:40 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-11 22:57:40 +0000
commit87c133631b21887f418a36348facdb0db22b7e62 (patch)
tree892f24338b971c99ecdc3db1d871d95d58c28c61 /news/suck/Makefile
parent5ed11b372cb33923cdbc2835d3949451b69209e7 (diff)
downloadpkgsrc-87c133631b21887f418a36348facdb0db22b7e62.tar.gz
DESTDIR support
Diffstat (limited to 'news/suck/Makefile')
-rw-r--r--news/suck/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/news/suck/Makefile b/news/suck/Makefile
index f49afe07d62..2a518ba4f7f 100644
--- a/news/suck/Makefile
+++ b/news/suck/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2010/01/17 12:02:37 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2010/02/11 23:33:41 joerg Exp $
#
DISTNAME= suck-4.3.2
@@ -10,6 +10,8 @@ MAINTAINER= drankin@bohemians.lexington.ky.us
HOMEPAGE= http://home.comcast.net/~bobyetman/
COMMENT= Feed a local news server without a dedicated newsfeed
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
USE_FEATURES= snprintf
@@ -22,10 +24,12 @@ post-patch:
${WRKSRC}/Makefile.in >${WRKSRC}/Makefile.tmp
@${MV} ${WRKSRC}/Makefile.tmp ${WRKSRC}/Makefile.in
+INSTALLATION_DIRS+= share/examples/suck
+INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \
+ mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/suck
- ${CP} ${WRKSRC}/sample/* ${PREFIX}/share/examples/suck
- ${CHMOD} 644 ${PREFIX}/share/examples/suck/*
+ ${INSTALL_DATA} ${WRKSRC}/sample/* ${DESTDIR}${PREFIX}/share/examples/suck
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"