commit fcb8404d7ded44efd0bbd6fbb433c514fa90ef4d Author: Dominik Richter Date: Thu Aug 12 01:53:59 2021 -0700 public pre-release of Mondoo v5.0.0 We are publishing this version during this period of the Mondoo soft-launch. The initial full range of upstream functionality will be available at the end of the month (09/2021). Please contact us at https://github.com/mondoolabs/mondoo or https://discord.gg/MRrWXYTmHJ diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..59339dbf2604 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mondoo + pkgdesc = Infrastructure search, analytics, and security analysis + pkgver = 5.0.0 + pkgrel = 1 + url = https://mondoo.io + arch = x86_64 + license = custom + source = https://releases.mondoo.io/mondoo/5.0.0/mondoo_5.0.0_linux_amd64.tar.gz + source = LICENSE.html::https://mondoo.io/terms + source = OSS-LICENSES.tar.xz + source = mondoo.service + source = mondoo.sh + sha256sums = cb8cfc25ee93516ace120123fcecf1ba8587973aea9cf5a7ca8542e44a9ec6df + sha256sums = 77e73e231a13c3c072e4c8a4812779d34b9bdf9cc6a495f82fd0efc92f07c1aa + sha256sums = cd99e204a986af5a91f46c43478b28f556a4f50fd9721844d0b600d45ac43cb8 + sha256sums = 2febf46353886823e6a61ca15c73e651d71d45579b0a1a17e18905a61387e7e6 + sha256sums = 92ceefe40c2963f96d02e36743338599cfa9a062d00a5e38580370099b01066c + +pkgname = mondoo diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f6360210cfde --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +src/ +pkg/ +LICENSE.html +*.tar.gz +*.tar.zst diff --git a/OSS-LICENSES.tar.xz b/OSS-LICENSES.tar.xz new file mode 100644 index 000000000000..60d412e3ba5d Binary files /dev/null and b/OSS-LICENSES.tar.xz differ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4602a1fac46a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Mondoo Inc +# Maintainer: Dominik Richter +# +# TODO: +# - replace the html license with a proper TXT version +# - use upstream oss-licenses instead of bundling it + +pkgname=mondoo +pkgver=5.0.0 +pkgrel=1 +pkgdesc="Infrastructure search, analytics, and security analysis" +url="https://mondoo.io" +license=('custom') +source=( + "https://releases.mondoo.io/mondoo/${pkgver}/mondoo_${pkgver}_linux_amd64.tar.gz" + 'LICENSE.html::https://mondoo.io/terms' + 'OSS-LICENSES.tar.xz' + 'mondoo.service' + 'mondoo.sh' +) +arch=('x86_64') + +sha256sums=('cb8cfc25ee93516ace120123fcecf1ba8587973aea9cf5a7ca8542e44a9ec6df' + '77e73e231a13c3c072e4c8a4812779d34b9bdf9cc6a495f82fd0efc92f07c1aa' + 'cd99e204a986af5a91f46c43478b28f556a4f50fd9721844d0b600d45ac43cb8' + '2febf46353886823e6a61ca15c73e651d71d45579b0a1a17e18905a61387e7e6' + '92ceefe40c2963f96d02e36743338599cfa9a062d00a5e38580370099b01066c') + + +package() { + install -dm755 ${pkgdir}/opt/$pkgname/bin \ + ${pkgdir}/usr/bin + + cp ${srcdir}/$pkgname ${pkgdir}/opt/$pkgname/bin/. + + install -Dm 755 mondoo.sh ${pkgdir}/usr/bin/mondoo + install -Dm 644 LICENSE.html "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.html + install -Dm 644 OSS-LICENSES.txt "$pkgdir"/usr/share/licenses/$pkgname/OSS-LICENSES.txt + install -Dm 644 mondoo.service "$pkgdir"/usr/lib/systemd/system/mondoo.service +} + +#vim: syntax=sh diff --git a/mondoo.service b/mondoo.service new file mode 100644 index 000000000000..d8478fbc3ed0 --- /dev/null +++ b/mondoo.service @@ -0,0 +1,15 @@ +[Unit] +Description=Mondoo Service +After=network-online.target + +[Service] +Type=simple +WorkingDirectory=/opt/mondoo/bin/ +ExecStart=/opt/mondoo/bin/mondoo --config /etc/opt/mondoo/mondoo.yml serve +KillMode=process +Restart=on-failure +RestartSec=90 +RestartPreventExitStatus=78 + +[Install] +WantedBy=multi-user.target diff --git a/mondoo.sh b/mondoo.sh new file mode 100644 index 000000000000..51eeff1189ff --- /dev/null +++ b/mondoo.sh @@ -0,0 +1,3 @@ +#!/bin/sh +/opt/mondoo/bin/mondoo --config /etc/opt/mondoo/mondoo.yml "$@" +