summaryrefslogtreecommitdiff
path: root/news/nntpclnt/Makefile
diff options
context:
space:
mode:
authorobache <obache>2010-03-13 05:20:24 +0000
committerobache <obache>2010-03-13 05:20:24 +0000
commitee9c0343353831bbaa8dc8d8c86ea06be45740c7 (patch)
tree56686239d186520e7bdb0df1125c40fa3041dfc4 /news/nntpclnt/Makefile
parent4d7b57e6fb604bf862d12c6984831c30c0708486 (diff)
downloadpkgsrc-ee9c0343353831bbaa8dc8d8c86ea06be45740c7.tar.gz
Add usre-destdir installation support and expunge custom PKG_SYSCONFDIR
handlinkg (it will handled automatically).
Diffstat (limited to 'news/nntpclnt/Makefile')
-rw-r--r--news/nntpclnt/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/news/nntpclnt/Makefile b/news/nntpclnt/Makefile
index 29bc2a573c4..aa4ae5b43b6 100644
--- a/news/nntpclnt/Makefile
+++ b/news/nntpclnt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2010/01/31 21:12:20 zafer Exp $
+# $NetBSD: Makefile,v 1.36 2010/03/13 05:20:24 obache Exp $
DISTNAME= nntpclnt-1.6.1
PKGREVISION= 6
@@ -17,6 +17,8 @@ NO_BIN_ON_CDROM=${RESTRICTED}
CONFLICTS+= inn-[0-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
+
BUILD_TARGET= inews
PKG_GROUPS= news
PKG_SYSCONFSUBDIR= nntp
@@ -40,11 +42,11 @@ post-build:
${AR} clq libnntpclnt.a nntpclnt.o && ${RANLIB} libnntpclnt.a
do-install:
- ${INSTALL_PROGRAM} -g ${PKG_GROUPS} -m 2555 ${WRKSRC}/inews \
- ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/nntp.h ${PREFIX}/include/
- ${INSTALL_DATA} ${WRKSRC}/libnntpclnt.a ${PREFIX}/lib/
- ${INSTALL_DATA} ${WRKSRC}/nntpclnt.3 ${PREFIX}/${PKGMANDIR}/man3/
- ${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/inews ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/nntp.h ${DESTDIR}${PREFIX}/include/
+ ${INSTALL_DATA} ${WRKSRC}/libnntpclnt.a ${DESTDIR}${PREFIX}/lib/
+ ${INSTALL_DATA} ${WRKSRC}/nntpclnt.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/
+
+SPECIAL_PERMS+= bin/inews ${REAL_ROOT_USER} ${PKG_GROUPS} 2555
.include "../../mk/bsd.pkg.mk"