blob: 7e3f3711938c0058c53919bad132ea040bdb383f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
|