summaryrefslogtreecommitdiff
path: root/news/nntpclnt
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-03-13 05:20:24 +0000
committerobache <obache@pkgsrc.org>2010-03-13 05:20:24 +0000
commit276587ad8acd07bca555bfd7e90fa75a4be4626a (patch)
tree56686239d186520e7bdb0df1125c40fa3041dfc4 /news/nntpclnt
parentfafa99a90d0ccd656730f5c5cf8e5c805ee0f462 (diff)
downloadpkgsrc-276587ad8acd07bca555bfd7e90fa75a4be4626a.tar.gz
Add usre-destdir installation support and expunge custom PKG_SYSCONFDIR
handlinkg (it will handled automatically).
Diffstat (limited to 'news/nntpclnt')
-rw-r--r--news/nntpclnt/Makefile16
-rw-r--r--news/nntpclnt/PLIST4
2 files changed, 10 insertions, 10 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"
diff --git a/news/nntpclnt/PLIST b/news/nntpclnt/PLIST
index 0f7b2b21c23..cb781e35254 100644
--- a/news/nntpclnt/PLIST
+++ b/news/nntpclnt/PLIST
@@ -1,7 +1,5 @@
-@comment $NetBSD: PLIST,v 1.4 2004/04/07 13:56:43 cube Exp $
+@comment $NetBSD: PLIST,v 1.5 2010/03/13 05:20:24 obache Exp $
bin/inews
include/nntp.h
lib/libnntpclnt.a
man/man3/nntpclnt.3
-@exec ${MKDIR} ${PKG_SYSCONFDIR} 2>/dev/null || ${TRUE}
-@unexec ${RMDIR} ${PKG_SYSCONFDIR} 2>/dev/null || ${TRUE}