Subject: [alpine-aports] [PATCH] main/openrc: install logrotate file for /var/log/rc.log

From: Sören Tempel <[email-masked]>
Date: Mon, 27 Jul 2015 22:46:24 +0200

---
 main/openrc/APKBUILD         | 9 +++++++--
 main/openrc/openrc.logrotate | 4 ++++
 2 files changed, 11 insertions(+), 2 deletions(-)
 create mode 100644 main/openrc/openrc.logrotate

diff --git a/main/openrc/APKBUILD b/main/openrc/APKBUILD
index 2650d93..703ad1e 100644
--- a/main/openrc/APKBUILD
+++ b/main/openrc/APKBUILD
@@ -2,7 +2,7 @@
 pkgname=openrc
 pkgver=0.17
 _ver=${pkgver/_git*/}
-pkgrel=2
+pkgrel=3
 pkgdesc="OpenRC manages the services, startup and shutdown of a host"
 url="http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git"
 arch="all"
@@ -21,6 +21,7 @@ source="openrc-$pkgver.tar.gz::https://github.com/OpenRC/openrc/archive/$pkgver.
 	hide-migrate-to-run-error.patch
 	rc-pull-in-sysinit-and-boot-as-stacked-levels-when-needed.patch
 
+	openrc.logrotate
 	hostname.initd
 	hwdrivers.initd
 	keymaps.initd
@@ -63,13 +64,14 @@ package() {
 		j=${i##*/}
 		install -Dm755 $i "$pkgdir"/etc/init.d/${j%.initd}
 	done
-	
+
 	# we override some of the conf.d files
 	for i in "$srcdir"/*.confd; do
 		j=${i##*/}
 		install -Dm644 $i "$pkgdir"/etc/conf.d/${j%.confd}
 	done
 
+	install -Dm644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
 	install -d "$pkgdir"/etc/local.d "$pkgdir"/run
 }
 
@@ -81,6 +83,7 @@ c2af5e52da614a6cef02d1e4d537e360  swap-umount-tmpfs.patch
 1c426b84d13a725ad493647b5253f239  swap-ifexists.patch
 679c559aa54f9e855cd735866eeaaad6  hide-migrate-to-run-error.patch
 db45dc04a50d48a0c377e9de3ee0008b  rc-pull-in-sysinit-and-boot-as-stacked-levels-when-needed.patch
+d83df5513f08f09fa9e7353327701bf7  openrc.logrotate
 2c9cf86959b9e51e662036b4e716617e  hostname.initd
 887eba592d487d6ffe2b42cfcd2813df  hwdrivers.initd
 41974f5408fd2e92892f891b58f2e49f  keymaps.initd
@@ -98,6 +101,7 @@ bdccc12593d9bb9df6fcff57a56e4100ae43e052d6eff87f561966653ca071dc  0001-sysctl.Li
 8978b00492d90b573f5254cc394582e8f1a5cd8b4d6c928fa0a9a022dd17fe9c  swap-ifexists.patch
 786580df90a5a75087e5adfd395d160dee2df4b994e0938e8524198aeaf2d774  hide-migrate-to-run-error.patch
 cb4ff88875c0125b68fe567cc41b42743499bbdc90a5c9dfe2b92883b5b05111  rc-pull-in-sysinit-and-boot-as-stacked-levels-when-needed.patch
+30a81fb2f761083088d4d6a3d435fc842966d44588e9837b45ffd03e48be6eb6  openrc.logrotate
 e23db45e9399dab96d6c922af6c0cd6c243bbcc43756c845b70a9c7222a96313  hostname.initd
 6cb4d9ea3ad562bcf2697f61f5a76a10481d23f5dead570f82eff576eaca5236  hwdrivers.initd
 32562d39ade4092df8163c2e8cf0b31eeec06aa5713d343e1c487bfa6d9f7c84  keymaps.initd
@@ -115,6 +119,7 @@ eee27fbf72776fb70d3aa6c6464180731d522191e5755aa431ab09ea11dd11bf001a95618adcaa5c
 c5b8806c693b0ea48ff87e0e3669304f5c2f95954ad54814889047a933f367081a8c8d3bb771dd1ed6c3bc845df894232bd6b662066d09eba3abf3964187d1d1  swap-ifexists.patch
 750e3305913d3f6fa6baa0b34b851fe17aacb922e864b95ec9b4b451e8e3c16d0c10686a12f4c7cb9b5d05894e1d89b0dac3beed19b1223d3fbc672f25769145  hide-migrate-to-run-error.patch
 a3c2f419a3d475519cc8f78bd3baa26cae90a492a5fc92308b18931889db10452aa33324cca8489058d2bcf720e67ab9163ada090d3d3f54ab55dbd758901d4a  rc-pull-in-sysinit-and-boot-as-stacked-levels-when-needed.patch
+12bb6354e808fbf47bbab963de55ee7901738b4a912659982c57ef2777fff9a670e867fcb8ec316a76b151032c92dc89a950d7d1d835ef53f753a8f3b41d2cec  openrc.logrotate
 a6e2b44dd548a2470971a44b61ddaaec037438050fe3411b4ea3fe5d36e9ad4cf5b5e226f8d4aacb8f3a4535bb3f2090608275abd76a30de33eb3fadaefad5fd  hostname.initd
 b51d95df7b692aaea3e14ed009d99b46b82500d505e2eeecb6a20136cee140aea4a7377a65ccc5c51fff64be7a50666be48616d179888eaeff9d35178a7a772b  hwdrivers.initd
 584ecbbcecb284527d7616790b6e337ace610e4b3cedf2993eca294bfbef54674aeaee3078b6c17d746a0c48b5a64a813c3534136915947e6f62a6fa206cd3ca  keymaps.initd
diff --git a/main/openrc/openrc.logrotate b/main/openrc/openrc.logrotate
new file mode 100644
index 0000000..5e5e64b
--- /dev/null
+++ b/main/openrc/openrc.logrotate
@@ -0,0 +1,4 @@
+/var/log/rc.log {
+	missingok
+	notifempty
+}
-- 
2.4.6

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---