Package influxdb: 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 | %global import_path github.com/influxdata/influxdb %global _unpackaged_files_terminate_build 1 Name: influxdb Version: 1.8.10 Release: alt1.1 Summary: Distributed time-series database Group: Development/Other License: MIT URL: https://github.com/influxdata/influxdb Source0: %name-%version.tar Source100: influxdb.sysconfig Source101: influxdb.logrotate Source102: influxdb.init Source103: influxdb.service Source104: influxdb.tmpfiles Patch1: influxdb-opentsdb-fix.patch ExclusiveArch: %go_arches BuildRequires(pre): rpm-build-golang BuildRequires: xmlto asciidoc %description InfluxDB is an open source time series database with no external dependencies. It's useful for recording metrics, events, and performing analytics. %prep %setup -q %patch1 -p1 %build # Important!!! # The %builddir/.gopath created by the hands. It contains the dependencies required for your project. # This is necessary because the gdm cannot work with the vendor directory and always tries to update # all dependencies from the external servers. So, we can't use Makefile to compile. # # $ git rm -rf vendor # $ go mod vendor # $ git add --force vendor # $ git commit -m "update go pkgs by go mod vendor" export BUILDDIR="$PWD/.gopath" export IMPORT_PATH="%import_path" export GOPATH="$BUILDDIR:%go_path" export VERSION=%version export COMMIT=%release export BRANCH=altlinux export GOFLAGS="-mod=vendor" %golang_prepare pushd .gopath/src/%import_path go install -ldflags " \ -X main.version=$VERSION \ -X main.commit=$COMMIT \ -X main.branch=$BRANCH \ " ./... popd %install export BUILDDIR="$PWD/.gopath" export GOPATH="%go_path" %golang_install rm -rf -- %buildroot%_datadir rm -f %buildroot%_bindir/{stress_test_server,test_client} # Install config files install -p -D -m 640 etc/config.sample.toml %buildroot%_sysconfdir/%name/%name.conf # Setup directories install -d -m 755 %buildroot%_logdir/%name install -d -m 755 %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 644 %SOURCE100 %buildroot%_sysconfdir/sysconfig/%name 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 # Install man files %make_install DESTDIR=%buildroot%_prefix -C man install %pre %_sbindir/groupadd -r -f %name 2>/dev/null ||: %_sbindir/useradd -r -g %name -G %name -c 'InfluxDB Daemon' \ -s /sbin/nologin -d %_sharedstatedir/%name %name 2>/dev/null ||: %post %post_service %name %preun %preun_service %name %files %_bindir/* %_man1dir/* %_initdir/%name %_unitdir/%name.service %_tmpfilesdir/%name.conf %dir %attr(0750, root, %name) %_sysconfdir/%name %config(noreplace) %attr(0640, root, %name) %_sysconfdir/%name/%name.conf %config(noreplace) %_sysconfdir/sysconfig/%name %config(noreplace) %_logrotatedir/%name %dir %attr(0770, root, %name) %_logdir/%name %dir %attr(0775, root, %name) %_runtimedir/%name %dir %attr(0755, %name, %name) %_sharedstatedir/%name %changelog * Tue Oct 31 2023 Ivan A. Melnikov <iv@altlinux.org> 1.8.10-alt1.1 - NMU: update vendored golang.org/x/sys to fix build on loongarch64 * Wed Nov 17 2021 Alexey Shabalin <shaba@altlinux.org> 1.8.10-alt1 - 1.8.10 * Fri Jul 30 2021 Alexey Shabalin <shaba@altlinux.org> 1.8.7-alt1 - 1.8.7 * Thu Jun 24 2021 Alexey Shabalin <shaba@altlinux.org> 1.8.6-alt1 - 1.8.6 * Sun Apr 25 2021 Alexey Shabalin <shaba@altlinux.org> 1.8.5-alt1 - 1.8.5 * Mon Mar 15 2021 Alexey Shabalin <shaba@altlinux.org> 1.8.4-alt1 - 1.8.4 * Fri Nov 13 2020 Alexey Shabalin <shaba@altlinux.org> 1.8.3-alt1 - 1.8.3 * Wed Aug 19 2020 Alexey Shabalin <shaba@altlinux.org> 1.8.2-alt1 - 1.8.2 * Wed Aug 05 2020 Alexey Shabalin <shaba@altlinux.org> 1.8.1-alt1 - 1.8.1 * Tue Apr 21 2020 Alexey Shabalin <shaba@altlinux.org> 1.8.0-alt1 - 1.8.0 * Sat Apr 11 2020 Alexey Shabalin <shaba@altlinux.org> 1.7.10-alt1 - 1.7.10 * Sun Dec 22 2019 Alexey Shabalin <shaba@altlinux.org> 1.7.9-alt1 - 1.7.9 * Wed Sep 11 2019 Alexey Shabalin <shaba@altlinux.org> 1.7.8-alt1 - 1.7.8 * Thu Jul 18 2019 Alexey Shabalin <shaba@altlinux.org> 1.7.7-alt1 - 1.7.7 * Thu Jun 20 2019 Vitaly Lipatov <lav@altlinux.ru> 1.7.6-alt2 - NMU: fix writing millisecond timestamps through opentsdb (ALT bug 36873) * Sat Apr 20 2019 Alexey Shabalin <shaba@altlinux.org> 1.7.6-alt1 - 1.7.6 - update sysv init script for logging to logfile * Thu Mar 28 2019 Alexey Shabalin <shaba@altlinux.org> 1.7.5-alt1 - 1.7.5 * Wed Feb 27 2019 Alexey Shabalin <shaba@altlinux.org> 1.7.4-alt1 - 1.7.4 * Mon Jan 21 2019 Alexey Shabalin <shaba@altlinux.org> 1.6.5-alt1 - 1.6.5 * Thu Oct 11 2018 Alexey Shabalin <shaba@altlinux.org> 1.6.3-alt1 - 1.6.3 * Thu Jun 21 2018 Alexey Shabalin <shaba@altlinux.ru> 1.5.3-alt1 - 1.5.3 * Sat Apr 28 2018 Alexey Shabalin <shaba@altlinux.ru> 1.5.2-alt1 - 1.5.2 * Tue Feb 13 2018 Alexey Shabalin <shaba@altlinux.ru> 1.4.3-alt1 - 1.4.3 * Mon Oct 30 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.7-alt1 - 1.3.7 * Fri Oct 13 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.6-alt1 - 1.3.6 * Mon Aug 28 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.4-alt1 - 1.3.4 * Mon Aug 07 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.2-alt1 - 1.3.2 * Mon Jul 24 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.1-alt1 - First build for ALTLinux. |