diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-05-06 13:23:15 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-05-06 13:23:36 +0000 |
commit | c212a0c4ad2cea5de0b448cece335500e3bebd36 (patch) | |
tree | fb19cc23f7a1075207c2ef786844b8fbf5755dfe /main/zabbix/APKBUILD | |
parent | 0991e381890667032a920157aa641b0d6400f980 (diff) | |
download | aports-c212a0c4ad2cea5de0b448cece335500e3bebd36.tar.bz2 aports-c212a0c4ad2cea5de0b448cece335500e3bebd36.tar.xz |
main/zabbix: don't ship configuration files
Diffstat (limited to 'main/zabbix/APKBUILD')
-rw-r--r-- | main/zabbix/APKBUILD | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/main/zabbix/APKBUILD b/main/zabbix/APKBUILD index df27dc54b3..80888731bd 100644 --- a/main/zabbix/APKBUILD +++ b/main/zabbix/APKBUILD @@ -4,7 +4,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=zabbix pkgver=2.4.5 -pkgrel=1 +pkgrel=2 pkgdesc="Enterprise-class open source distributed monitoring" url="http://www.zabbix.com" arch="all" @@ -19,10 +19,6 @@ pkggroups="zabbix" subpackages="$pkgname-doc $pkgname-agent $pkgname-pgsql $pkgname-mysql $pkgname-webif $pkgname-sqlite $pkgname-utils $pkgname-setup" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz - zabbix_server.conf - zabbix_trapper.conf - zabbix_proxy.conf - zabbix_agentd.conf zabbix-getloadavg.patch automake.patch musl-fix-includes.patch @@ -61,6 +57,13 @@ prepare() { aclocal -I m4 && autoconf && autoheader \ && automake --add-missing || return 1 # update_config_sub + # Fix config file locations + for file in server agentd proxy; do + sed -i "$_builddir"/conf/zabbix_${file}.conf \ + -e 's|SNMPTrapperFile=/tmp|SNMPTrapperFile=/var/log/zabbix|' \ + -e 's|PidFile=/tmp|PidFile=/var/run/zabbix|' \ + -e 's|LogFile=/tmp|LogFile=/var/log/zabbix|' || return 1 + done } build() { @@ -108,9 +111,9 @@ package() { done install -d -m0750 -o zabbix -g zabbix \ "$pkgdir"/var/run/zabbix "$pkgdir"/var/log/zabbix - install -D -m0644 "$srcdir"/zabbix_server.conf \ + install -D -m0644 "$_builddir"/conf/zabbix_server.conf \ "$pkgdir"/etc/zabbix/zabbix_server.conf - install -D -m0644 "$srcdir"/zabbix_trapper.conf \ + install -D -m0644 "$_builddir"/conf/zabbix_trapper.conf \ "$pkgdir"/etc/zabbix/zabbix_trapper.conf for i in server proxy; do install -D -m0755 "$srcdir"/zabbix-$i.initd \ @@ -137,7 +140,7 @@ _do_db() { "$subpkgdir"/usr/sbin/ || return 1 mv "$_builddir-$1"/src/zabbix_proxy/zabbix_proxy \ "$subpkgdir"/usr/sbin/ || return 1 - install -D -m0644 "$srcdir"/zabbix_proxy.conf \ + install -D -m0644 "$_builddir"/conf/zabbix_proxy.conf \ "$pkgdir"/etc/zabbix/zabbix_proxy.conf || return 1 cd "$_builddir" for i in upgrades/dbpatches/*/$1; do @@ -178,7 +181,7 @@ agent() { install="$subpkgname.pre-install" install -d -m0750 -o zabbix -g zabbix \ "$subpkgdir"/var/run/zabbix "$subpkgdir"/var/log/zabbix - install -D -m0644 "$srcdir"/zabbix_agentd.conf \ + install -D -m0644 "$_builddir"/conf/zabbix_agentd.conf \ "$subpkgdir"/etc/zabbix/zabbix_agentd.conf install -D -m0755 "$srcdir"/zabbix-agentd.initd \ "$subpkgdir"/etc/init.d/zabbix-agentd @@ -191,10 +194,6 @@ agent() { } md5sums="a82eb0d55d3ca947e10a4a55238f4388 zabbix-2.4.5.tar.gz -bc69447c44db5dd95f5c56718bc6c280 zabbix_server.conf -9832a81e134c8e2c11e2a06b7adbf88f zabbix_trapper.conf -e9cc2ad434bff7ae7b769a6d4f8194ba zabbix_proxy.conf -721c18077fa739f956340afca9f067f4 zabbix_agentd.conf 3a71e310bd2b38498a7c6830169f7480 zabbix-getloadavg.patch bf62c539870874e11de39c60cb974786 automake.patch 40c81bdec85815f4ba637eb6528cc5e8 musl-fix-includes.patch @@ -204,10 +203,6 @@ d9711779f969958c8aa348991170578b zabbix-agentd.initd 0ce2ab963a0bc5a0a6e17a708b7c7064 zabbix-proxy.initd c3b399a406f7dd1df0de7b3fae3ed081 002-fix-res_send-on-uclibc.patch" sha256sums="4e2cf1e4893a45d83379a05e2debabddf16beab324c93e84adc0bb57716fb957 zabbix-2.4.5.tar.gz -377de68bccb1be5f1cbdcee1a4091a3e3b10dd810a14854b43d8802afe7a52c1 zabbix_server.conf -3ae307895c9a7189e29c4ebf7479ce08d4c3bbe1a7f0a3554828170dac417bab zabbix_trapper.conf -018a63c40e814fa6ecf5ec1825e85a6d24e55a59435ea4332f57c4e8b0b9c009 zabbix_proxy.conf -98343193215c9e1bc79ff332688c684f7023da38583bba800acc404b12c6cc51 zabbix_agentd.conf d2c0651c5fa67a1857707552e79ecece7ca95c149042460c40456634bf7611dc zabbix-getloadavg.patch b347ca77660e69bea353c50e2fce0c7c4cc837f782c9f84f74ba92c1a62b4c1b automake.patch 38b4e1a5d5c16c7d9b31347acf710d84b693f6e1df365d1072548e897e034884 musl-fix-includes.patch @@ -217,10 +212,6 @@ ddf75041fb0afc5b211dd79a934341cc9db4325447ad33a42cbf09bdfb5cad42 zabbix-server. ec3a8c564be20221ea7560fbec345191cd251d58bd15e9c41abec40c2cf5b4f2 zabbix-proxy.initd c796e9aa371f50155b396da53504375f35f77bd3941440525dcaf92da33dac99 002-fix-res_send-on-uclibc.patch" sha512sums="bdcba684b3d1cdb9eb5e1f9b370ef450201de8dbd9fe1619ef2b2437de6c34762dc041fa873976c4af0a2af229eec450aa58b1663feb75b6345d303484d35ead zabbix-2.4.5.tar.gz -cf3920ab1f9ba56f49ae404e3d9f2e5bc2da182f74c176aeed0ad29326507ece56c566f7a2aea89b87e500b52ab0063a46e1866fe02f6990ab34d6145bddb2b3 zabbix_server.conf -cd08d907838de646f65316950e8c71deae25be1701e0cc22e5fd2f636c21ef2365a537d247277bafb694cae8c5dbd22eb725c1647797ad3e4ac4b3df2084ef07 zabbix_trapper.conf -7d5c52557e30fc44bbed9337b55a71834c27850f56040e838773080e3203968ea20b648606cfaa1a4d051e6796b52a773dd0c96161cfb67bb0692519302e244a zabbix_proxy.conf -8a3298cb98787f89b4cc0faa6168a1ab59860c60bec159ecd341db25c0903e89061b40d2b37df9e2df99e08b71b57089bcb25f352e7edf09fbc1b0bd3f1034f6 zabbix_agentd.conf b65c6ba7701d98ae7f6fe2124c1d2b8b8fea3c3cc7ee080bf99f5afff0aaa6a025c2a1f5136b4700b53d1b7609e6185642650d7edd013c554b2af37fddae771c zabbix-getloadavg.patch 9bff8966cb8b3f1767bfb1b3f3529bca5c9957f2c8179a40ded3b4e43615ba9fb408aef43092fd119b7df80b042555d05c9780fac3760176b95524aa48252fee automake.patch 9b87ec1ea4a9cbb501c16012d498cdae82a696f4cd495e1e8cb201d9e31c6e135da5bb264c6273f2de87297bd3e4bd16f66703610686f5d610e3316ee24aac91 musl-fix-includes.patch |