Package telegraf: Specfile
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | %global import_path github.com/influxdata/telegraf %global _unpackaged_files_terminate_build 1 Name: telegraf Version: 1.29.4 Release: alt1 Summary: The plugin-driven server agent for collecting and reporting metrics Group: Development/Other License: MIT URL: https://github.com/influxdata/telegraf Source0: %name-%version.tar Source101: telegraf.logrotate Source102: telegraf.init Source103: telegraf.service Source104: telegraf.tmpfiles ExclusiveArch: %go_arches BuildRequires(pre): rpm-macros-golang BuildRequires: rpm-build-golang golang >= 1.21 %description Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics. Design goals are to have a minimal memory footprint with a plugin system so that developers in the community can easily add support for collecting metrics from well known services (like Hadoop, Postgres, or Redis) and third party APIs (like Mailchimp, AWS CloudWatch, or Google Analytics). %prep # $ git rm -rf vendor # $ go mod vendor -v # $ git add -f vendor # $ git commit -m "update go pkgs by go mod vendor" %setup -q %build export BUILDDIR="$PWD/.gopath" export IMPORT_PATH="%import_path" export GOPATH="$BUILDDIR:%go_path" export GOFLAGS="-mod=vendor" %golang_prepare pushd $BUILDDIR/src/%import_path export INTERNAL_PKG=github.com/influxdata/telegraf/internal export VERSION=%version export COMMIT=%release export BRANCH=altlinux CGO_ENABLED=0 go install -ldflags " \ -X $INTERNAL_PKG.Version=$VERSION \ -X $INTERNAL_PKG.Commit=$COMMIT \ -X $INTERNAL_PKG.Branch=$BRANCH \ %ifarch %arm %ix86 %mips32 -w -s \ %endif " -a ./cmd/telegraf popd $BUILDDIR/bin/telegraf config > etc/telegraf.conf %install export BUILDDIR="$PWD/.gopath" export GOPATH="%go_path" %golang_install # cleanup rm -rf -- %buildroot%_datadir # Install config files install -p -D -m 640 etc/telegraf.conf %buildroot%_sysconfdir/%name/%name.conf install -d -m 750 %buildroot%_sysconfdir/%name/%name.d # Setup directories install -d -m 755 %buildroot%_logdir/%name install -d -m 750 %buildroot%_sharedstatedir/%name # Install pid directory install -d -m 775 %buildroot%_runtimedir/%name # Install logrotate install -p -D -m 644 %SOURCE101 %buildroot%_logrotatedir/%name # Install sysv init scripts install -p -D -m 755 %SOURCE102 %buildroot%_initdir/%name # Install systemd unit services install -p -D -m 644 %SOURCE103 %buildroot%_unitdir/%name.service install -p -D -m 644 %SOURCE104 %buildroot%_tmpfilesdir/%name.conf %pre %_sbindir/groupadd -r -f %name 2>/dev/null ||: %_sbindir/useradd -r -g %name -G %name -c 'Telegraf Agent Daemon' \ -s /sbin/nologin -d %_sharedstatedir/%name %name 2>/dev/null ||: %_sbindir/usermod -a -G proc telegraf ||: %post %post_service %name %preun %preun_service %name %files %doc docs/* %_bindir/%name %_initdir/%name %_unitdir/%name.service %_tmpfilesdir/%name.conf %dir %attr(0750, root, %name) %_sysconfdir/%name %dir %attr(0750, root, %name) %_sysconfdir/%name/%name.d %config(noreplace) %attr(0640, root, %name) %_sysconfdir/%name/%name.conf %config(noreplace) %_logrotatedir/%name %dir %attr(0770, root, %name) %_logdir/%name %dir %attr(0775, root, %name) %_runtimedir/%name %dir %attr(0750, %name, %name) %_sharedstatedir/%name %changelog * Wed Feb 14 2024 Alexey Shabalin <shaba@altlinux.org> 1.29.4-alt1 - 1.29.4 * Mon Jan 15 2024 Alexey Shabalin <shaba@altlinux.org> 1.29.2-alt1 - 1.29.2 * Fri Oct 06 2023 Alexey Shabalin <shaba@altlinux.org> 1.28.2-alt1 - 1.28.2 * Fri Jun 30 2023 Alexey Shabalin <shaba@altlinux.org> 1.27.1-alt1 - 1.27.1 * Mon Mar 27 2023 Alexey Shabalin <shaba@altlinux.org> 1.26.0-alt1 - 1.26.0 * Tue Feb 14 2023 Alexey Shabalin <shaba@altlinux.org> 1.25.2-alt1 - 1.25.2 * Wed Jan 11 2023 Alexey Shabalin <shaba@altlinux.org> 1.25.0-alt1 - 1.25.0 * Thu Oct 13 2022 Alexey Shabalin <shaba@altlinux.org> 1.24.2-alt1 - 1.24.2 - /var/run -> /run in init script and tmpfiles * Mon Apr 25 2022 Alexey Shabalin <shaba@altlinux.org> 1.22.2-alt1 - 1.22.2 * Thu Mar 24 2022 Alexey Shabalin <shaba@altlinux.org> 1.22.0-alt1 - 1.22.0 * Wed Jan 26 2022 Alexey Shabalin <shaba@altlinux.org> 1.21.2-alt1 - 1.21.2 * Wed Nov 17 2021 Alexey Shabalin <shaba@altlinux.org> 1.20.3-alt1 - 1.20.3 * Fri Jul 30 2021 Alexey Shabalin <shaba@altlinux.org> 1.19.2-alt1 - 1.19.2 * Fri Feb 19 2021 Alexey Shabalin <shaba@altlinux.org> 1.17.3-alt1 - 1.17.3 * Thu Nov 12 2020 Alexey Shabalin <shaba@altlinux.org> 1.16.1-alt1 - 1.16.1 * Sun Oct 25 2020 Alexey Shabalin <shaba@altlinux.org> 1.16.0-alt1 - 1.16.0 * Sat Sep 19 2020 Alexey Shabalin <shaba@altlinux.org> 1.15.3-alt1 - 1.15.3 * Wed Aug 05 2020 Alexey Shabalin <shaba@altlinux.org> 1.15.2-alt1 - 1.15.2 * Fri May 29 2020 Alexey Shabalin <shaba@altlinux.org> 1.14.3-alt1 - 1.14.3 * Tue Apr 21 2020 Alexey Shabalin <shaba@altlinux.org> 1.14.1-alt1 - 1.14.1 * Sat Apr 11 2020 Alexey Shabalin <shaba@altlinux.org> 1.14.0-alt1 - 1.14.0 * Sun Dec 22 2019 Alexey Shabalin <shaba@altlinux.org> 1.13.0-alt1 - 1.13.0 * Wed Sep 11 2019 Alexey Shabalin <shaba@altlinux.org> 1.12.1-alt1 - 1.12.1 * Tue Aug 13 2019 Alexey Shabalin <shaba@altlinux.org> 1.11.4-alt1 - 1.11.4 * Thu Jul 18 2019 Alexey Shabalin <shaba@altlinux.org> 1.11.2-alt1 - 1.11.2 * Thu Mar 28 2019 Alexey Shabalin <shaba@altlinux.org> 1.10.1-alt1 - 1.10.1 - add user telegraf to proc group (fixed ALT#35130) * Wed Feb 27 2019 Alexey Shabalin <shaba@altlinux.org> 1.9.5-alt1 - 1.9.5 * Tue Feb 26 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 1.9.2-alt2 - Added support parked ("P") state of processes. * Mon Jan 21 2019 Alexey Shabalin <shaba@altlinux.org> 1.9.2-alt1 - 1.9.2 * Thu Oct 11 2018 Alexey Shabalin <shaba@altlinux.org> 1.8.1-alt1 - 1.8.1 * Sat Apr 28 2018 Alexey Shabalin <shaba@altlinux.ru> 1.6.1-alt1 - 1.6.1 * Wed Feb 14 2018 Alexey Shabalin <shaba@altlinux.ru> 1.5.2-alt2 - fix "commit" * Thu Feb 01 2018 Alexey Shabalin <shaba@altlinux.ru> 1.5.2-alt1 - 1.5.2 * Mon Oct 30 2017 Alexey Shabalin <shaba@altlinux.ru> 1.4.3-alt1 - 1.4.3 * Thu Oct 12 2017 Alexey Shabalin <shaba@altlinux.ru> 1.4.2-alt1 - 1.4.2 * Tue Aug 08 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.5-alt1 - rebuild with Universal Branch Tag - fix run with sysv init script * Thu Jul 27 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.5-alt1 - 1.3.5 - upadte init script - add user home dir to files * Mon Jul 24 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.4-alt2 - add sysv init, systemd unit, logrotate config, tmpfiles * Sun Jul 23 2017 Alexey Gladkov <legion@altlinux.ru> 1.3.4-alt1 - First build for ALTLinux. |