summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew McGinn2020-10-09 08:18:32 -0400
committerMatthew McGinn2020-10-09 08:18:32 -0400
commit3d891a412edc915c113199157aad6cc510d97c2c (patch)
treefd28ba6a749962d326cf739b4804c46cbfdd8893
parent676e4dacd38ecfb0eb86a2c1b796f43c47776c02 (diff)
downloadaur-3d891a412edc915c113199157aad6cc510d97c2c.tar.gz
update build
Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD13
-rw-r--r--chronograf.tmpfiles2
3 files changed, 11 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 29a77c70ec1..100aa5fceb8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -13,7 +13,9 @@ pkgbase = chronograf-bin
provides = chronograf
conflicts = chronograf
source = chronograf.install
+ source = chronograf.tmpfiles
sha256sums = 1252f86f1e249be19eec4f7fe388300fb5f8d1cad5603b2ea87ea07362dc8768
+ sha256sums = c81f81247b99928bd20428f7188c1790fff89c4521f3322a8ff148272b24bab6
source_x86_64 = https://dl.influxdata.com/chronograf/releases/chronograf-1.8.7_linux_amd64.tar.gz
sha256sums_x86_64 = 32e2b28dcc53eaa8f9bea21e5762d488042e7748f2ae3707070a80e77cd8ba4b
source_i686 = https://dl.influxdata.com/chronograf/releases/chronograf-1.8.7_linux_i386.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index cfaf5ff4919..15c5b74c95c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,8 +19,9 @@ source_x86_64=("https://dl.influxdata.com/chronograf/releases/chronograf-${pkgve
source_aarch64=("https://dl.influxdata.com/chronograf/releases/chronograf-${pkgver}_linux_arm64.tar.gz")
source_i686=("https://dl.influxdata.com/chronograf/releases/chronograf-${pkgver}_linux_i386.tar.gz")
source_armv7h=("https://dl.influxdata.com/chronograf/releases/chronograf-${pkgver}_linux_armhf.tar.gz")
-source=("${_pkgname}.install")
-sha256sums=('1252f86f1e249be19eec4f7fe388300fb5f8d1cad5603b2ea87ea07362dc8768')
+source=("${_pkgname}.install" "${_pkgname}.tmpfiles")
+sha256sums=('1252f86f1e249be19eec4f7fe388300fb5f8d1cad5603b2ea87ea07362dc8768'
+ 'c81f81247b99928bd20428f7188c1790fff89c4521f3322a8ff148272b24bab6')
sha256sums_x86_64=('32e2b28dcc53eaa8f9bea21e5762d488042e7748f2ae3707070a80e77cd8ba4b')
sha256sums_i686=('e03dc59e91588292780b9ff9e879df7b854734c28f59778fa85af5499b62a07c')
sha256sums_armv7h=('6a559b02b0e473d215eb4730662e6ccf855717b70ea8a394f0c046168619429c')
@@ -28,12 +29,12 @@ sha256sums_aarch64=('4e5b7433c4a1604ddd7b92f2421aecff6558e84d7a0cab65d5e583d8a3a
package() {
# binary
- mkdir -m755 -p ${pkgdir}/etc
- mkdir -m755 -p ${pkgdir}/var/{log,lib}
- mkdir -m755 -p ${pkgdir}/usr/{bin,lib,share}
+ mkdir -m755 -p ${pkgdir}/etc
+ mkdir -m755 -p ${pkgdir}/usr/{bin,lib,share}
mkdir -m755 -p "${pkgdir}/usr/share/chronograf/canned"
+ install -Dm644 chronograf.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/chronograf.conf"
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}-1/etc/logrotate.d/chronograf" "${pkgdir}/etc/logrotate.d/chronograf"
- install -Dm755 "${srcdir}/${_pkgname}-${pkgver}-1/usr/bin/chronograf" "${pkgdir}/usr/bin/chronograf"
+ install -Dm755 "${srcdir}/${_pkgname}-${pkgver}-1/usr/bin/chronograf" "${pkgdir}/usr/bin/chronograf"
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}-1/usr/lib/chronograf/scripts/chronograf.service" "${pkgdir}/usr/lib/systemd/system/chronograf.service"
install -Dm644 ${srcdir}/${_pkgname}-${pkgver}-1/usr/share/chronograf/canned/* "${pkgdir}/usr/share/chronograf/canned/."
}
diff --git a/chronograf.tmpfiles b/chronograf.tmpfiles
new file mode 100644
index 00000000000..0e33454e6f9
--- /dev/null
+++ b/chronograf.tmpfiles
@@ -0,0 +1,2 @@
+d /var/lib/chronograf 0755 chronograf chronograf
+x /var/lib/chronograf/*