summaryrefslogtreecommitdiff
path: root/news
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
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')
-rw-r--r--news/nntpclnt/Makefile13
-rw-r--r--news/nntpclnt/PLIST11
-rw-r--r--news/nntpclnt/distinfo3
-rw-r--r--news/nntpclnt/files/config.NetBSD.sh8
-rw-r--r--news/nntpclnt/files/config.SunOS.sh8
5 files changed, 23 insertions, 20 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"
diff --git a/news/nntpclnt/PLIST b/news/nntpclnt/PLIST
index fcdfcb508ab..0f7b2b21c23 100644
--- a/news/nntpclnt/PLIST
+++ b/news/nntpclnt/PLIST
@@ -1,10 +1,7 @@
-@comment $NetBSD: PLIST,v 1.3 2002/06/26 10:29:53 seb Exp $
+@comment $NetBSD: PLIST,v 1.4 2004/04/07 13:56:43 cube Exp $
bin/inews
include/nntp.h
lib/libnntpclnt.a
-@exec ${MKDIR} %D/etc/nntp
-@unexec ${RM} -f %D/etc/nntp/domainname
-@unexec ${RM} -f %D/etc/nntp/server
-@unexec ${RM} -f %D/etc/nntp/server.auth
-@dirrm etc/nntp
-man/man3/nntpclnt.3.gz
+man/man3/nntpclnt.3
+@exec ${MKDIR} ${PKG_SYSCONFDIR} 2>/dev/null || ${TRUE}
+@unexec ${RMDIR} ${PKG_SYSCONFDIR} 2>/dev/null || ${TRUE}
diff --git a/news/nntpclnt/distinfo b/news/nntpclnt/distinfo
index cb8cfda5a57..d9c5e1c8d93 100644
--- a/news/nntpclnt/distinfo
+++ b/news/nntpclnt/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2002/09/18 06:28:05 tron Exp $
+$NetBSD: distinfo,v 1.4 2004/04/07 13:56:43 cube Exp $
SHA1 (nntpclnt-1.6.1.tar.gz) = df24e9083185680d85bdc016e9e4ba54f4071f80
Size (nntpclnt-1.6.1.tar.gz) = 34369 bytes
SHA1 (patch-aa) = 62bcf11bb2cb0b39baf8188816a039165e9e6338
SHA1 (patch-ab) = 2cffb1a1eb68c7520bef6b81d41c924e5aa5be2c
+SHA1 (patch-ac) = ed067e2f2c6c22e32ca388dc6f990aa720d762aa
diff --git a/news/nntpclnt/files/config.NetBSD.sh b/news/nntpclnt/files/config.NetBSD.sh
index b9df6c57f38..fdf65c6beb2 100644
--- a/news/nntpclnt/files/config.NetBSD.sh
+++ b/news/nntpclnt/files/config.NetBSD.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: config.NetBSD.sh,v 1.3 1999/09/20 18:52:06 kim Exp $
+# $NetBSD: config.NetBSD.sh,v 1.4 2004/04/07 13:56:43 cube Exp $
#
# config.sh
# This file was produced by running the Configure script
@@ -49,7 +49,7 @@ strncasecmp='define'
strcasecmp='define'
seteuid='define'
sitename=''
-hostfile='@PREFIX@/etc/nntp/domainname'
+hostfile='@PKGSYSCONFDIR@/domainname'
domain=''
isadmin='undef'
newsadmin='root'
@@ -71,11 +71,11 @@ gethostname='undef'
douname='undef'
phostname='undef'
hostcmd=''
-serverfile='@PREFIX@/etc/nntp/server'
+serverfile='@PKGSYSCONFDIR@/server'
auth='define'
authsimple='define'
authold='define'
-passfile='@PREFIX@/etc/nntp/server.auth'
+passfile='@PKGSYSCONFDIR@/server.auth'
decnet='undef'
datakit='undef'
CONFIG=true
diff --git a/news/nntpclnt/files/config.SunOS.sh b/news/nntpclnt/files/config.SunOS.sh
index 8ae1a7498cf..7c045547d45 100644
--- a/news/nntpclnt/files/config.SunOS.sh
+++ b/news/nntpclnt/files/config.SunOS.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: config.SunOS.sh,v 1.2 1999/09/20 19:23:16 kim Exp $
+# $NetBSD: config.SunOS.sh,v 1.3 2004/04/07 13:56:43 cube Exp $
#
# config.sh
# This file was produced by running the Configure script.
@@ -49,7 +49,7 @@ strncasecmp='define'
strcasecmp='define'
seteuid='define'
sitename=''
-hostfile='@PREFIX@/etc/nntp/domainname'
+hostfile='@PKGSYSCONFDIR@/domainname'
domain=''
isadmin='undef'
newsadmin='root'
@@ -71,11 +71,11 @@ gethostname='undef'
douname='undef'
phostname='undef'
hostcmd=''
-serverfile='@PREFIX@/etc/nntp/server'
+serverfile='@PKGSYSCONFDIR@/etc/nntp/server'
auth='define'
authsimple='define'
authold='define'
-passfile='@PREFIX@/etc/nntp/server.auth'
+passfile='@PKGSYSCONFDIR@/etc/nntp/server.auth'
decnet='undef'
datakit='undef'
CONFIG=true