1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

o Remove unneeded plist entry.

o Add non-default hint to reduce the load of syslogd message.
This commit is contained in:
Jun Kuriyama 2003-09-07 12:34:16 +00:00
parent 840b84bdda
commit 4017da95db
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88682
3 changed files with 17 additions and 1 deletions

View File

@ -17,6 +17,9 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_GMAKE= yes USE_GMAKE= yes
# To avoid syslogd load, add this parameter.
#MAKE_ARGS= NDEBUG=yes
post-patch: post-patch:
cd ${WRKSRC}; ${CP} usogresrc usogresrc.sample cd ${WRKSRC}; ${CP} usogresrc usogresrc.sample

View File

@ -0,0 +1,14 @@
--- src/SysLog.cc.orig Sat Sep 6 23:03:07 2003
+++ src/SysLog.cc Sat Sep 6 23:07:08 2003
@@ -57,7 +57,11 @@
char* pbuf = new char[strlen(format)*3];
::vsprintf(pbuf, format, ap);
+#if defined(NDEBUG)
+ if (lvl <= LOG_ERR) ::syslog(lvl, pbuf);
+#else
::syslog(lvl, pbuf);
+#endif
delete [] pbuf;
va_end(ap);

View File

@ -1,3 +1,2 @@
bin/usogres bin/usogres
etc/usogresrc
etc/usogresrc.sample etc/usogresrc.sample