diff --git a/systemtap/.SRCINFO b/systemtap/.SRCINFO new file mode 100644 index 0000000..5e93981 --- /dev/null +++ b/systemtap/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = systemtap + pkgdesc = Infrastructure to simplify the gathering of information about the running Linux system + pkgver = 5.0 + pkgrel = 1 + url = https://sourceware.org/systemtap/ + install = systemtap.install + arch = x86_64 + license = GPL + makedepends = python-setuptools + makedepends = xmlto + depends = elfutils + depends = nss + depends = python + depends = cpio + optdepends = sqlite3: for storing results in a database + options = !emptydirs + source = https://sourceware.org/ftp/systemtap/releases/systemtap-5.0.tar.gz + source = https://sourceware.org/ftp/systemtap/releases/systemtap-5.0.tar.gz.asc + validpgpkeys = 41A0C11274B1E87FE28E4C53E3D77E1F95161991 + sha512sums = dc511a05e66abcbbd8c926973962751196180f3c571d0cd2a3b158ae367c5339ad32967a680ecd03224ab5f7ed2c55be7064867e4fb1b1cd7ea1cb21b2436e4c + sha512sums = SKIP + +pkgname = systemtap diff --git a/systemtap/.gitignore b/systemtap/.gitignore new file mode 100644 index 0000000..e93be39 --- /dev/null +++ b/systemtap/.gitignore @@ -0,0 +1,5 @@ +*.tar.xz +*.tar.gz +*.asc +pkg +src diff --git a/systemtap/PKGBUILD b/systemtap/PKGBUILD new file mode 100644 index 0000000..a899440 --- /dev/null +++ b/systemtap/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Manuel Hüsers +# Contributor: Christian Pellegrin (chripell) +# Contributor: An Nguyen (stk) +# Contributor: George Angelopoulos +# Contributor: Christian Rebischke +# Contributor: dront78 + +pkgname=systemtap +pkgver=5.0 +pkgrel=1 +pkgdesc="Infrastructure to simplify the gathering of information about the running Linux system" +url="https://sourceware.org/systemtap/" +arch=('x86_64') +license=('GPL') +depends=('elfutils' 'nss' 'python' 'cpio') +makedepends=('python-setuptools' 'xmlto') +optdepends=('sqlite3: for storing results in a database') +options=('!emptydirs') +install="${pkgname}.install" +source=("https://sourceware.org/ftp/${pkgname}/releases/${pkgname}-${pkgver}.tar.gz"{,.asc}) +sha512sums=('dc511a05e66abcbbd8c926973962751196180f3c571d0cd2a3b158ae367c5339ad32967a680ecd03224ab5f7ed2c55be7064867e4fb1b1cd7ea1cb21b2436e4c' + 'SKIP') + +validpgpkeys=('41A0C11274B1E87FE28E4C53E3D77E1F95161991') + +build() { + cd "${pkgname}-${pkgver}" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/"${pkgname}" \ + --libdir=/usr/lib/"${pkgname}" \ + --mandir=/usr/share/man/ \ + --sbindir=/usr/bin \ + --localstatedir=/var \ + --enable-pie \ + --disable-docs \ + --enable-htmldocs \ + --with-python3 + make +} + +package() { + cd "${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/systemtap/systemtap.install b/systemtap/systemtap.install new file mode 100644 index 0000000..f39e7c3 --- /dev/null +++ b/systemtap/systemtap.install @@ -0,0 +1,18 @@ +post_install() { + getent group stapusr >/dev/null || groupadd -g 156 -r stapusr 2>/dev/null || groupadd -r stapusr + getent group stapsys >/dev/null || groupadd -g 157 -r stapsys 2>/dev/null || groupadd -r stapsys + getent group stapdev >/dev/null || groupadd -g 158 -r stapdev 2>/dev/null || groupadd -r stapdev + + getent group stapusr >/dev/null && chgrp stapusr /usr/bin/stapbpf + chmod 04110 /usr/bin/stapbpf + + getent group stapusr >/dev/null && chgrp stapusr /usr/bin/staprun + chmod 04110 /usr/bin/staprun + + echo "CONFIG_DEBUG_INFO is disabled on default. You need to recompile" + echo "the kernel with CONFIG_DEBUG_INFO enabled." +} + +post_upgrade() { + post_install $1 +}