pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/openslp Make slpd reopen its log file on HUP (it d...
details: https://anonhg.NetBSD.org/pkgsrc/rev/308691530930
branches: trunk
changeset: 516056:308691530930
user: he <he%pkgsrc.org@localhost>
date: Thu Jul 13 13:42:36 2006 +0000
description:
Make slpd reopen its log file on HUP (it does not use syslog - bah!).
The log file needs to be writable for user=daemon, since slpd setuid()s
to that user after starting up.
Put the extremely verbose and disk-filling logging of "Parse Erorr"
packets (is this an SLPv1 vs. SLPv2 protocol versioning issue gone
bad?!?) under DEBUG, which is not normally turned on in our builds.
Change HOMEPAGE, since Caldera appears to have seen fit to remove
the www.openslp.org DNS name and associated web server. Instead point
to the SourceForge home page.
Bump package revision to 1.
diffstat:
net/openslp/Makefile | 5 +++--
net/openslp/distinfo | 4 +++-
net/openslp/patches/patch-aj | 19 +++++++++++++++++++
net/openslp/patches/patch-ak | 30 ++++++++++++++++++++++++++++++
4 files changed, 55 insertions(+), 3 deletions(-)
diffs (90 lines):
diff -r c52c21b8ac20 -r 308691530930 net/openslp/Makefile
--- a/net/openslp/Makefile Thu Jul 13 13:42:12 2006 +0000
+++ b/net/openslp/Makefile Thu Jul 13 13:42:36 2006 +0000
@@ -1,11 +1,12 @@
-# $NetBSD: Makefile,v 1.30 2005/12/29 06:22:01 jlam Exp $
+# $NetBSD: Makefile,v 1.31 2006/07/13 13:42:36 he Exp $
DISTNAME= openslp-1.2.1
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openslp/}
MAINTAINER= jlam%pkgsrc.org@localhost
-HOMEPAGE= http://www.openslp.org/
+HOMEPAGE= http://sourceforge.net/projects/openslp
COMMENT= Open-source implementation of the Service Location Protocol
# Needs pkgviews-enabled automake
diff -r c52c21b8ac20 -r 308691530930 net/openslp/distinfo
--- a/net/openslp/distinfo Thu Jul 13 13:42:12 2006 +0000
+++ b/net/openslp/distinfo Thu Jul 13 13:42:36 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2005/05/26 20:14:21 adrianp Exp $
+$NetBSD: distinfo,v 1.13 2006/07/13 13:42:36 he Exp $
SHA1 (openslp-1.2.1.tar.gz) = 47ab19154084d2b467f09525f5351e9ab7193cf9
RMD160 (openslp-1.2.1.tar.gz) = a31d516ba784ad893a740946082fe5e0f15a37ea
@@ -7,3 +7,5 @@
SHA1 (patch-ae) = 1332580b2d9cb3e2e5c5da219c1036b9701161e5
SHA1 (patch-ah) = f15c497b19f4bfc4efbd5cce0b50932733115824
SHA1 (patch-ai) = 11baa3ef891677f1df78f75b93001580ff450e13
+SHA1 (patch-aj) = 8e1d32772cf59a938a4d9d9d0957d223f4ea6c06
+SHA1 (patch-ak) = e64ede590e4af9d8951177b68c4bbf1b56ebdfae
diff -r c52c21b8ac20 -r 308691530930 net/openslp/patches/patch-aj
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openslp/patches/patch-aj Thu Jul 13 13:42:36 2006 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-aj,v 1.1 2006/07/13 13:42:36 he Exp $
+
+--- slpd/slpd_main.c.orig 2005-02-09 00:24:53.000000000 +0100
++++ slpd/slpd_main.c
+@@ -208,6 +208,14 @@ void HandleSigTerm()
+ void HandleSigHup()
+ /*------------------------------------------------------------------------*/
+ {
++ /*------------------------------*/
++ /* Reinitialize the log file */
++ /*------------------------------*/
++ if(SLPDLogFileOpen(G_SlpdCommandLine.logfile, 1))
++ {
++ SLPDFatal("Could not open logfile %s\n",G_SlpdCommandLine.logfile);
++ }
++
+ /* Reinitialize */
+ SLPDLog("****************************************\n");
+ SLPDLogTime();
diff -r c52c21b8ac20 -r 308691530930 net/openslp/patches/patch-ak
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openslp/patches/patch-ak Thu Jul 13 13:42:36 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ak,v 1.1 2006/07/13 13:42:36 he Exp $
+
+--- slpd/slpd_process.c.orig 2005-02-08 07:12:24.000000000 +0100
++++ slpd/slpd_process.c
+@@ -1438,10 +1438,12 @@ int SLPDProcessMessage(struct sockaddr_i
+ break;
+ }
+ }
++#ifdef DEBUG
+ else
+ {
+ SLPDLogParseWarning(peerinfo, recvbuf);
+ }
++#endif
+
+ if (header.functionid == SLP_FUNCT_SRVREG ||
+ header.functionid == SLP_FUNCT_DAADVERT )
+@@ -1470,10 +1472,12 @@ int SLPDProcessMessage(struct sockaddr_i
+ errorcode = SLP_ERROR_INTERNAL_ERROR;
+ }
+ }
++#ifdef DEBUG
+ else
+ {
+ SLPDLogParseWarning(peerinfo,recvbuf);
+ }
++#endif
+
+ FINISHED:
+
Home |
Main Index |
Thread Index |
Old Index