aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2003-09-07 20:34:16 +0800
committerkuriyama <kuriyama@FreeBSD.org>2003-09-07 20:34:16 +0800
commit6113f80f5e4bad51bf7201248384ad130ffaaddc (patch)
tree7a394dfc2f14f00dd1e3c6ee616e67e909c5f4fa /databases
parent4812d69f3bd6c13eaee20810c91a06976932f113 (diff)
downloadfreebsd-ports-gnome-6113f80f5e4bad51bf7201248384ad130ffaaddc.tar.gz
freebsd-ports-gnome-6113f80f5e4bad51bf7201248384ad130ffaaddc.tar.zst
freebsd-ports-gnome-6113f80f5e4bad51bf7201248384ad130ffaaddc.zip
o Remove unneeded plist entry.
o Add non-default hint to reduce the load of syslogd message.
Diffstat (limited to 'databases')
-rw-r--r--databases/usogres/Makefile3
-rw-r--r--databases/usogres/files/patch-SysLog.cc14
-rw-r--r--databases/usogres/pkg-plist1
3 files changed, 17 insertions, 1 deletions
diff --git a/databases/usogres/Makefile b/databases/usogres/Makefile
index 1113b2580889..853861e385c4 100644
--- a/databases/usogres/Makefile
+++ b/databases/usogres/Makefile
@@ -17,6 +17,9 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
+# To avoid syslogd load, add this parameter.
+#MAKE_ARGS= NDEBUG=yes
+
post-patch:
cd ${WRKSRC}; ${CP} usogresrc usogresrc.sample
diff --git a/databases/usogres/files/patch-SysLog.cc b/databases/usogres/files/patch-SysLog.cc
new file mode 100644
index 000000000000..68a7efbaad60
--- /dev/null
+++ b/databases/usogres/files/patch-SysLog.cc
@@ -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);
diff --git a/databases/usogres/pkg-plist b/databases/usogres/pkg-plist
index 2b0ab6b82f4a..7e1fe6c101b9 100644
--- a/databases/usogres/pkg-plist
+++ b/databases/usogres/pkg-plist
@@ -1,3 +1,2 @@
bin/usogres
-etc/usogresrc
etc/usogresrc.sample