[arch-commits] Commit in osquery/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Dec 12 15:45:57 UTC 2020
Date: Saturday, December 12, 2020 @ 15:45:56
Author: felixonmars
Revision: 773341
archrelease: copy trunk to community-staging-x86_64
Added:
osquery/repos/community-staging-x86_64/
osquery/repos/community-staging-x86_64/PKGBUILD
(from rev 773340, osquery/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: osquery/repos/community-staging-x86_64/PKGBUILD (from rev 773340, osquery/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-12 15:45:56 UTC (rev 773341)
@@ -0,0 +1,43 @@
+# Maintainer: Anatol Pomozov
+
+pkgname=osquery
+pkgver=4.5.1
+pkgrel=3
+pkgdesc='SQL powered operating system instrumentation, monitoring, and analytics'
+arch=(x86_64)
+url='https://osquery.io'
+license=(Apache GPL2)
+depends=(augeas boost-libs gflags google-glog aws-sdk-cpp librdkafka rocksdb gtest device-mapper rpm-tools dpkg pacman lvm2 libelfin lldpd rapidjson sleuthkit ssdeep thrift yara lmdb iptables)
+makedepends=(cmake python boost linenoise-ng)
+# patched version of smartools that we need to build statically to avoid collision with the upstream version
+_smartmontools_commit=6afcf545d2ab86d13a3ecb9f656aa81622031f2a
+_patched_osquery_commit=f54b2ca8b18dee86077521789788f9e29c8db317
+source=(osquery-$pkgver.zip::https://github.com/osquery/osquery/archive/$pkgver.zip
+ smartmontools-$_smartmontools_commit.zip::https://github.com/osquery/third-party-smartmontools/archive/$_smartmontools_commit.zip
+ devendorize.patch::https://github.com/anatol/osquery/compare/$pkgver...$_patched_osquery_commit.patch)
+sha256sums=('568af4bd2562e5321bbac68177b377b3ad386942e227511867981876cbce3e26'
+ '191848bf04ca6fe14a9634bdcff6f6e851aa59526f1f3fb168ad7c8c6d9b1d00'
+ 'fbcfb24caa3786a37d371cd8e2e45fdc3095d6e526e97c0d403bba8be2683d0f')
+
+prepare() {
+ cd osquery-$pkgver
+ patch -p1 < ../devendorize.patch
+
+ rm -rf libraries/cmake/source/smartmontools/src
+ ln -sf `pwd`/../third-party-smartmontools-$_smartmontools_commit libraries/cmake/source/smartmontools/src
+}
+
+build() {
+ cd osquery-$pkgver
+
+ cmake -DCMAKE_BUILD_TYPE=Release -DOSQUERY_STATIC_BUILD=OFF -DCMAKE_INSTALL_PREFIX=/usr -DOSQUERY_VERSION=$pkgver -S . -B build
+ cmake --build build
+}
+
+package() {
+ cd osquery-$pkgver
+
+ cmake --build build --target install -- DESTDIR="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ rm -r "$pkgdir/etc/init.d/"
+}
More information about the arch-commits
mailing list