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:
parent
840b84bdda
commit
4017da95db
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88682
@ -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
|
||||||
|
|
||||||
|
14
databases/usogres/files/patch-SysLog.cc
Normal file
14
databases/usogres/files/patch-SysLog.cc
Normal 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);
|
@ -1,3 +1,2 @@
|
|||||||
bin/usogres
|
bin/usogres
|
||||||
etc/usogresrc
|
|
||||||
etc/usogresrc.sample
|
etc/usogresrc.sample
|
||||||
|
Loading…
Reference in New Issue
Block a user