aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-02-14 02:53:09 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-02-14 02:54:17 +0100
commit4ab03fc5d394987a7aeff93e2fbf148722e2671a (patch)
tree41236134778e4248b8a2052f8586ff42dcdc363f /main/open-vm-tools
parent7968f61fd335316373e293391f05a93001039087 (diff)
downloadaports-4ab03fc5d394987a7aeff93e2fbf148722e2671a.tar.bz2
aports-4ab03fc5d394987a7aeff93e2fbf148722e2671a.tar.xz
main/open-vm-tools: add logrotate
Diffstat (limited to 'main/open-vm-tools')
-rw-r--r--main/open-vm-tools/APKBUILD7
-rw-r--r--main/open-vm-tools/open-vm-tools.logrotate5
2 files changed, 11 insertions, 1 deletions
diff --git a/main/open-vm-tools/APKBUILD b/main/open-vm-tools/APKBUILD
index 46291687f7..10e77a6ae8 100644
--- a/main/open-vm-tools/APKBUILD
+++ b/main/open-vm-tools/APKBUILD
@@ -34,6 +34,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/vmware/$pkgname/archive/stab
$pkgname.initd
$pkgname.confd
+ $pkgname.logrotate
"
builddir="$srcdir/$pkgname-stable-$_ver"
@@ -77,6 +78,9 @@ package() {
install -D -m 644 "$srcdir"/$pkgname.confd \
./etc/conf.d/$pkgname || return 1
+ install -D -m 644 "$srcdir"/$pkgname.logrotate \
+ ./etc/logrotate.d/$pkgname || return 1
+
mkdir -p ./etc/modules-load.d/
cat > ./etc/modules-load.d/$pkgname <<-EOF
vmblock
@@ -120,4 +124,5 @@ d0551458fa6a9d9fd3e576f856fb0269e1a40930ab625bd5243a256a90ca89b3a90e7bd97678ca83
af109a9aab9da5f312e1f06a4db318f577a5bbb22a8974892a9a1f6941865fea663694362dd8ffb0d8cbe776f3297458bec1004131b3e92b8da003506087df39 0013-use-off64_t-instead-of-loff_t.patch
d30c74e2de1ae729fb0eec9f510c89b9c5180478b3ace625dd7a0b3fa3fd269ddbdcf802c6c014e39da794b36891beed2f5b85e7c6a0179ec0723ee6be390782 0014-remove-references-to-missing-common-agent-etc-config.patch
d4d0c0c3042eef4d241c933de6f7c398a88275744b3576efc2f909acd681752f548e4ae4a17eca7db731ee0b9254b46169a48463d12a72ec6354065d788159f4 open-vm-tools.initd
-ffc9c945a41e48791bab61ba72fed96c1a6ae3722caa715424e3077d167421b4e2f53bb4d415ab227d1f6e40d6ca3779df41e6b0a38db34b520979fa2b19298d open-vm-tools.confd"
+ffc9c945a41e48791bab61ba72fed96c1a6ae3722caa715424e3077d167421b4e2f53bb4d415ab227d1f6e40d6ca3779df41e6b0a38db34b520979fa2b19298d open-vm-tools.confd
+5626c68b8ee01ece804f314b829476280e892581a448c27092e32a60b04d40ecfa8e8eca464c4376c3cfc497eb60406798b7383d1a747a173d3cd8b78d23100b open-vm-tools.logrotate"
diff --git a/main/open-vm-tools/open-vm-tools.logrotate b/main/open-vm-tools/open-vm-tools.logrotate
new file mode 100644
index 0000000000..79d7e67f2e
--- /dev/null
+++ b/main/open-vm-tools/open-vm-tools.logrotate
@@ -0,0 +1,5 @@
+/var/log/vmware-vmsvc.log {
+ copytruncate
+ delaycompress
+ missingok
+}