summaryrefslogtreecommitdiff
path: root/uhub/0003-Most-unices-including-most-Linux-distro-have-logrota.patch
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-16 23:29:24 +0200
committerDeposite Pirate2018-09-16 23:29:24 +0200
commit569e598d38adb1918d127ee31af1cd332b072dcf (patch)
tree23a7204866591100db57f3acac53cd410ea8d3e4 /uhub/0003-Most-unices-including-most-Linux-distro-have-logrota.patch
Initial commit.HEADmaster
Diffstat (limited to 'uhub/0003-Most-unices-including-most-Linux-distro-have-logrota.patch')
-rw-r--r--uhub/0003-Most-unices-including-most-Linux-distro-have-logrota.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/uhub/0003-Most-unices-including-most-Linux-distro-have-logrota.patch b/uhub/0003-Most-unices-including-most-Linux-distro-have-logrota.patch
new file mode 100644
index 0000000..7e3f371
--- /dev/null
+++ b/uhub/0003-Most-unices-including-most-Linux-distro-have-logrota.patch
@@ -0,0 +1,78 @@
+From 1bdc47aa519b873b71ede1ce064a758e8cb6d468 Mon Sep 17 00:00:00 2001
+From: "Christoph J. Thompson" <cjsthompson@gmail.com>
+Date: Sat, 13 Dec 2014 22:56:02 +0100
+Subject: [PATCH 3/5] * Most unices including most Linux distro have logrotate
+
+ modified: CMakeLists.txt
+ deleted: doc/init.d.RedHat/etc/logrotate.d/uhub
+ new file: doc/uhub.logrotate
+ modified: doc/uhub.spec
+---
+ CMakeLists.txt | 1 +
+ doc/init.d.RedHat/etc/logrotate.d/uhub | 14 --------------
+ doc/uhub.logrotate | 7 +++++++
+ doc/uhub.spec | 2 +-
+ 4 files changed, 9 insertions(+), 15 deletions(-)
+ delete mode 100644 doc/init.d.RedHat/etc/logrotate.d/uhub
+ create mode 100644 doc/uhub.logrotate
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 80a1a85..c879185 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -250,5 +250,6 @@ if (UNIX)
+ install( TARGETS mod_example mod_welcome mod_logging mod_auth_simple mod_auth_sqlite mod_chat_history mod_chat_history_sqlite mod_chat_only mod_topic mod_no_guest_downloads DESTINATION ${INSTALL_LIB_DIR}/uhub/ OPTIONAL )
+ install( FILES ${CMAKE_SOURCE_DIR}/doc/uhub.conf ${CMAKE_SOURCE_DIR}/plugins.conf ${CMAKE_SOURCE_DIR}/doc/rules.txt ${CMAKE_SOURCE_DIR}/doc/motd.txt DESTINATION /etc/uhub/ OPTIONAL )
+ install( FILES ${CMAKE_SOURCE_DIR}/doc/uhub.1 ${CMAKE_SOURCE_DIR}/doc/uhub-passwd.1 DESTINATION ${INSTALL_MAN_DIR}/man1/ OPTIONAL )
++ install( FILES ${CMAKE_SOURCE_DIR}/doc/uhub.logrotate DESTINATION /etc/logrotate.d/ RENAME uhub OPTIONAL )
+ endif()
+
+diff --git a/doc/init.d.RedHat/etc/logrotate.d/uhub b/doc/init.d.RedHat/etc/logrotate.d/uhub
+deleted file mode 100644
+index a0849cb..0000000
+--- a/doc/init.d.RedHat/etc/logrotate.d/uhub
++++ /dev/null
+@@ -1,14 +0,0 @@
+-# Log rotate for Uhub
+-# see man logrotate
+-#
+-#
+-/var/log/uhub.log {
+- compress
+- size 10M
+- rotate 10
+- missingok
+- notifempty
+-
+-
+-}
+-
+diff --git a/doc/uhub.logrotate b/doc/uhub.logrotate
+new file mode 100644
+index 0000000..73142f9
+--- /dev/null
++++ b/doc/uhub.logrotate
+@@ -0,0 +1,7 @@
++/var/log/uhub.log {
++ compress
++ size 10M
++ rotate 10
++ missingok
++ notifempty
++}
+diff --git a/doc/uhub.spec b/doc/uhub.spec
+index 7a487f9..9574015 100644
+--- a/doc/uhub.spec
++++ b/doc/uhub.spec
+@@ -49,7 +49,7 @@ install uhub-passwd $RPM_BUILD_ROOT/usr/bin/
+ install -m644 doc/uhub.conf doc/users.conf doc/rules.txt doc/motd.txt doc/plugins.conf doc/users.db $RPM_BUILD_ROOT/etc/uhub
+ install doc/init.d.RedHat/etc/init.d/uhub $RPM_BUILD_ROOT/etc/init.d
+ install -m644 doc/init.d.RedHat/etc/sysconfig/uhub $RPM_BUILD_ROOT/etc/sysconfig/
+-install -m644 doc/init.d.RedHat/etc/logrotate.d/uhub $RPM_BUILD_ROOT/etc/logrotate.d/
++install -m644 doc/uhub.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/
+ /bin/gzip -9c doc/uhub.1 > doc/uhub.1.gz &&
+ install -m644 doc/uhub.1.gz $RPM_BUILD_ROOT/usr/share/man/man1
+ install -m644 mod_*.so $RPM_BUILD_ROOT/usr/lib/uhub
+--
+2.1.3
+