summaryrefslogtreecommitdiff
path: root/news/nntpclnt/Makefile
diff options
context:
space:
mode:
authorcube <cube@pkgsrc.org>2004-04-07 13:56:43 +0000
committercube <cube@pkgsrc.org>2004-04-07 13:56:43 +0000
commit4cba1243fb2d5ca18bda5f87c86bc18217b71abb (patch)
tree54cb19dc4f153260ee3b244bcca768f8c847b43a /news/nntpclnt/Makefile
parent0f086b9983f91cc2b9e70ba9e5e2a460f69d834b (diff)
downloadpkgsrc-4cba1243fb2d5ca18bda5f87c86bc18217b71abb.tar.gz
Use more safely the various buffers in postauth.c so that at least it
doesn't crash on common configuration. Fixes PR 24982 by Gary Duzan. Also, silently try to delete the configuration directory not to wipe the user's configuration when updating the package. Finally, mark this package as NetBSD and SunOS only, since it will fail on other platforms by lack of default configuration. Bump PKGREVISION.
Diffstat (limited to 'news/nntpclnt/Makefile')
-rw-r--r--news/nntpclnt/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/news/nntpclnt/Makefile b/news/nntpclnt/Makefile
index 70d55cdc54a..e85ee75b0b0 100644
--- a/news/nntpclnt/Makefile
+++ b/news/nntpclnt/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2003/07/17 22:52:09 grant Exp $
+# $NetBSD: Makefile,v 1.21 2004/04/07 13:56:43 cube Exp $
DISTNAME= nntpclnt-1.6.1
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= news
MASTER_SITES= ftp://ftp.uu.net/networking/news/nntp/
@@ -18,13 +18,18 @@ NO_BIN_ON_CDROM=${RESTRICTED}
ALL_TARGET= inews
PKG_GROUPS= news
USE_PKGINSTALL= yes
+PKG_SYSCONFSUBDIR= nntp
+
+PLIST_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
.include "../../mk/bsd.prefs.mk"
CONFIG_SH= ${FILESDIR}/config.${OPSYS}.sh
+ONLY_FOR_PLATFORM= NetBSD-*-* SunOS-*-*
do-configure:
- ${SED} -e s,@PREFIX@,${PREFIX}, ${CONFIG_SH} >${WRKSRC}/config.sh
+ ${SED} -e s,@PREFIX@,${PREFIX}, -e s,@PKGSYSCONFDIR@,${PKG_SYSCONFDIR}, \
+ ${CONFIG_SH} >${WRKSRC}/config.sh
@cd ${WRKSRC} && ${SH} Makefile.SH && ${SH} config.h.SH
post-build:
@@ -37,6 +42,6 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/nntp.h ${PREFIX}/include/
${INSTALL_DATA} ${WRKSRC}/libnntpclnt.a ${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/nntpclnt.3 ${PREFIX}/man/man3/
- ${INSTALL_DATA_DIR} ${PREFIX}/etc/nntp
+ ${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}
.include "../../mk/bsd.pkg.mk"