[arch-commits] Commit in usbguard/repos (4 files)
Date: Friday, May 29, 2020 @ 18:29:30 Author: lfleischer Revision: 387860 db-move: moved usbguard from [staging] to [testing] (x86_64) Added: usbguard/repos/testing-x86_64/ usbguard/repos/testing-x86_64/PKGBUILD (from rev 387859, usbguard/repos/staging-x86_64/PKGBUILD) usbguard/repos/testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (from rev 387859, usbguard/repos/staging-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch) Deleted: usbguard/repos/staging-x86_64/ + PKGBUILD | 67 + make-explicitly-treat-pthread-as-first-level-depende.patch | 598 +++ 2 files changed, 665 insertions(+) Copied: usbguard/repos/testing-x86_64/PKGBUILD (from rev 387859, usbguard/repos/staging-x86_64/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2020-05-29 18:29:30 UTC (rev 387860) @@ -0,0 +1,67 @@ +# Maintainer: Levente Polyak +# Contributor: Ian Beringer + +pkgname=usbguard +pkgver=0.7.5 +pkgrel=4 +pkgdesc='Software framework for implementing USB device authorization policies' +url='https://github.com/dkopecek/usbguard' +arch=('x86_64') +license=('GPL2') +depends=('glibc' 'libqb' 'libqb.so' 'libsodium' 'libcap-ng' 'protobuf' 'polkit' 'dbus-glib' + 'audit' 'libaudit.so' 'libseccomp' 'libseccomp.so') +makedepends=('catch2' 'pegtl' 'libxslt' 'asciidoc' 'systemd') +provides=('libusbguard.so') +backup=(etc/usbguard/usbguard-daemon.conf +etc/usbguard/rules.conf) +source=(https://github.com/dkopecek/usbguard/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz{,.sig} +make-explicitly-treat-pthread-as-first-level-depende.patch) +sha512sums=('b14f1cfaec676b5bc2f3aa2bda8be96ea8a6b3f02fc78f0fa7a58dd079c57886aae2c33a9e99cb9ccd53e5d6fa27712b978a2d19cd58b75dda34516d8caed0c4' +'SKIP' + '02232be248aa11e543b0cd2f26e3ff735267b58bb3a255fc32e390f0efff302e4b749fee3927942585a799f0e7571836bc085f89aef43df5517a678b04596e5a') +validpgpkeys=('FD9B3F9DCEBB5537A8FAF5213B0C109510712034') # Daniel Kopeček + +prepare() { + cd ${pkgname}-${pkgver} + sed 's|/usr/include/catch|/usr/include/catch2|g' -i configure.ac + patch -Np1 < ../make-explicitly-treat-pthread-as-first-level-depende.patch + autoreconf -fiv +} + +build() { + cd ${pkgname}-${pkgver} + ./configure \ +--prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--sys=/etc \ +--sbindir=/usr/bin \ +--libdir=/usr/lib \ +--enable-systemd \ +--without-bundled-catch \ +--without-bundled-pegtl \ +--with-dbus \ +--with-polkit \ +--with-crypto-library=sodium + make + touch rules.conf +} + +check() { + cd ${pkgname}-${pkgver} + make check +} + +package() { + cd ${pkgname}-${pkgver} + make INSTALL='install -p' DESTDIR="${pkgdir}" install + + chmod 750 "${pkgdir}/etc/usbguard" + install -Dpm 600 usbguard-daemon.conf rules.conf -t "${pkgdir}/etc/usbguard" + + # completion + install -Dpm 644 scripts/bash_completion/usbguard -t "${pkgdir}/usr/share/bash-completion/completions" + install -Dpm 644 scripts/usbguard-zsh-completion "${pkgdir}/usr/share/zsh/site-functions/_usbguard" +} + +# vim: ts=2 sw=2 et: Copied: usbguard/repos/testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (from rev 387859, usbguard/repos/staging-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch) === --- testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (rev 0) +++ testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch 2020-05-29 18:29:30 UTC (rev 387860) @@ -0,0 +1,598 @@ +From 2887cb6a49a9b04e968af00dc7d38d051785b600 Mon Sep 17 00:00:00 2001 +From: Levente Polyak +Date: Fri, 11 Oct 2019 23:14:40 +0200 +Subject: [PATCH] make: explicitly treat pthread as first level dependency + +Certain environments need to handle pthread explicitly and pass +appropriate flags (like -pthread) to make the compiler/linker happy. +Invoke the AX_PTHREAD macro to populate the pthread related flags and +pass them accordingly. +This fixes certain linking issues for the first level dependency +usage pthread_sigmask. +--- + Makefile.am | 12 +- + configure.ac | 1 + + m4/ax_pthread.m4 | 485 ++ + src/Tests/Makefile.am | 12 +- + 4 files changed, 506 insertions(+), 4 deletions(-) + create mode 100644 m4/ax_pthread.m4 + +diff --git a/Makefile.am b/Makefile.am +index ceb9a33..b73f564 100644 +--- a/Makefile.am b/Makefile.am +@@ -348,6 +348,9 @@ usbguard_daemon_SOURCES=\ + src/Daemon/LinuxAuditBackend.hpp \ + src/Daemon/LinuxAuditBackend.cpp +
[arch-commits] Commit in usbguard/repos (4 files)
Date: Thursday, December 12, 2019 @ 03:06:57 Author: lfleischer Revision: 370701 db-move: moved usbguard from [staging] to [testing] (x86_64) Added: usbguard/repos/testing-x86_64/ usbguard/repos/testing-x86_64/PKGBUILD (from rev 370700, usbguard/repos/staging-x86_64/PKGBUILD) usbguard/repos/testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (from rev 370700, usbguard/repos/staging-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch) Deleted: usbguard/repos/staging-x86_64/ + PKGBUILD | 67 + make-explicitly-treat-pthread-as-first-level-depende.patch | 598 +++ 2 files changed, 665 insertions(+) Copied: usbguard/repos/testing-x86_64/PKGBUILD (from rev 370700, usbguard/repos/staging-x86_64/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2019-12-12 03:06:57 UTC (rev 370701) @@ -0,0 +1,67 @@ +# Maintainer: Levente Polyak +# Contributor: Ian Beringer + +pkgname=usbguard +pkgver=0.7.5 +pkgrel=2 +pkgdesc='Software framework for implementing USB device authorization policies' +url='https://github.com/dkopecek/usbguard' +arch=('x86_64') +license=('GPL2') +depends=('glibc' 'libqb' 'libqb.so' 'libsodium' 'libcap-ng' 'protobuf' 'polkit' 'dbus-glib' + 'audit' 'libaudit.so' 'libseccomp' 'libseccomp.so') +makedepends=('catch2' 'pegtl' 'libxslt' 'asciidoc' 'systemd') +provides=('libusbguard.so') +backup=(etc/usbguard/usbguard-daemon.conf +etc/usbguard/rules.conf) +source=(https://github.com/dkopecek/usbguard/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz{,.sig} +make-explicitly-treat-pthread-as-first-level-depende.patch) +sha512sums=('b14f1cfaec676b5bc2f3aa2bda8be96ea8a6b3f02fc78f0fa7a58dd079c57886aae2c33a9e99cb9ccd53e5d6fa27712b978a2d19cd58b75dda34516d8caed0c4' +'SKIP' + '02232be248aa11e543b0cd2f26e3ff735267b58bb3a255fc32e390f0efff302e4b749fee3927942585a799f0e7571836bc085f89aef43df5517a678b04596e5a') +validpgpkeys=('FD9B3F9DCEBB5537A8FAF5213B0C109510712034') # Daniel Kopeček + +prepare() { + cd ${pkgname}-${pkgver} + sed 's|/usr/include/catch|/usr/include/catch2|g' -i configure.ac + patch -Np1 < ../make-explicitly-treat-pthread-as-first-level-depende.patch + autoreconf -fiv +} + +build() { + cd ${pkgname}-${pkgver} + ./configure \ +--prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--sys=/etc \ +--sbindir=/usr/bin \ +--libdir=/usr/lib \ +--enable-systemd \ +--without-bundled-catch \ +--without-bundled-pegtl \ +--with-dbus \ +--with-polkit \ +--with-crypto-library=sodium + make + touch rules.conf +} + +check() { + cd ${pkgname}-${pkgver} + make check +} + +package() { + cd ${pkgname}-${pkgver} + make INSTALL='install -p' DESTDIR="${pkgdir}" install + + chmod 750 "${pkgdir}/etc/usbguard" + install -Dpm 600 usbguard-daemon.conf rules.conf -t "${pkgdir}/etc/usbguard" + + # completion + install -Dpm 644 scripts/bash_completion/usbguard -t "${pkgdir}/usr/share/bash-completion/completions" + install -Dpm 644 scripts/usbguard-zsh-completion "${pkgdir}/usr/share/zsh/site-functions/_usbguard" +} + +# vim: ts=2 sw=2 et: Copied: usbguard/repos/testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (from rev 370700, usbguard/repos/staging-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch) === --- testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (rev 0) +++ testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch 2019-12-12 03:06:57 UTC (rev 370701) @@ -0,0 +1,598 @@ +From 2887cb6a49a9b04e968af00dc7d38d051785b600 Mon Sep 17 00:00:00 2001 +From: Levente Polyak +Date: Fri, 11 Oct 2019 23:14:40 +0200 +Subject: [PATCH] make: explicitly treat pthread as first level dependency + +Certain environments need to handle pthread explicitly and pass +appropriate flags (like -pthread) to make the compiler/linker happy. +Invoke the AX_PTHREAD macro to populate the pthread related flags and +pass them accordingly. +This fixes certain linking issues for the first level dependency +usage pthread_sigmask. +--- + Makefile.am | 12 +- + configure.ac | 1 + + m4/ax_pthread.m4 | 485 ++ + src/Tests/Makefile.am | 12 +- + 4 files changed, 506 insertions(+), 4 deletions(-) + create mode 100644 m4/ax_pthread.m4 + +diff --git a/Makefile.am b/Makefile.am +index ceb9a33..b73f564 100644 +--- a/Makefile.am b/Makefile.am +@@ -348,6 +348,9 @@ usbguard_daemon_SOURCES=\ + src/Daemon/LinuxAuditBackend.hpp \ + src/Daemon/LinuxAuditBackend.cpp +
[arch-commits] Commit in usbguard/repos (4 files)
Date: Sunday, October 27, 2019 @ 18:52:05 Author: lfleischer Revision: 365948 db-move: moved usbguard from [testing] to [extra] (x86_64) Added: usbguard/repos/extra-x86_64/PKGBUILD (from rev 365947, usbguard/repos/testing-x86_64/PKGBUILD) usbguard/repos/extra-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (from rev 365947, usbguard/repos/testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch) Deleted: usbguard/repos/extra-x86_64/PKGBUILD usbguard/repos/testing-x86_64/ -+ /PKGBUILD | 67 + extra-x86_64/PKGBUILD | 81 - extra-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch | 598 ++ 3 files changed, 665 insertions(+), 81 deletions(-) Deleted: extra-x86_64/PKGBUILD === --- extra-x86_64/PKGBUILD 2019-10-27 18:51:58 UTC (rev 365947) +++ extra-x86_64/PKGBUILD 2019-10-27 18:52:05 UTC (rev 365948) @@ -1,81 +0,0 @@ -# Maintainer: Levente Polyak -# Contributor: Ian Beringer - -pkgbase=usbguard -pkgname=('usbguard' 'usbguard-qt') -pkgver=0.7.4 -pkgrel=5 -pkgdesc='Software framework for implementing USB device authorization policies' -url='https://github.com/dkopecek/usbguard' -arch=('x86_64') -license=('GPL2') -makedepends=('git' 'libxslt' 'asciidoc' 'catch2' 'pegtl' 'qt5-base' 'qt5-svg' 'qt5-tools' 'hicolor-icon-theme' - 'glibc' 'libqb' 'libqb.so' 'libsodium' 'libcap-ng' 'protobuf' 'polkit' 'dbus-glib') -source=(https://github.com/dkopecek/usbguard/releases/download/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.gz{,.sig}) -sha512sums=('9799d4e89282f4adb57310e3a8ae0c3f0921ebba57393256beb1b9b8e8a8f2290c30716f100cd41c6dd1b6d44714880043d6fbd89a12e654c2a183c628dbd366' -'SKIP') -validpgpkeys=('430C1928960157CC45FA1BEBAA06120530AE0466') # Daniel Kopeček - -prepare() { - cd ${pkgbase}-${pkgver} - sed 's|/usr/include/catch|/usr/include/catch2|g' -i configure.ac - autoreconf -fiv -} - -build() { - cd ${pkgbase}-${pkgver} - ./configure \ ---prefix=/usr \ ---sysconfdir=/etc \ ---localstatedir=/var \ ---sys=/etc \ ---sbindir=/usr/bin \ ---libdir=/usr/lib \ ---enable-systemd \ ---without-bundled-catch \ ---without-bundled-pegtl \ ---with-dbus \ ---with-polkit \ ---with-crypto-library=sodium \ ---with-gui-qt=qt5 - make - touch rules.conf -} - -check() { - cd ${pkgbase}-${pkgver} - make check -} - -package_usbguard() { - depends=('glibc' 'libqb' 'libqb.so' 'libsodium' 'libcap-ng' 'protobuf' 'polkit' 'dbus-glib') - provides=('libusbguard.so') - backup=(etc/usbguard/usbguard-daemon.conf - etc/usbguard/rules.conf) - cd ${pkgbase}-${pkgver} - make INSTALL='install -p' SYSTEMD_UNIT_DIR="/usr/lib/systemd/system" DESTDIR="${pkgdir}" install - chmod 750 "${pkgdir}/etc/usbguard" - install -Dpm 600 usbguard-daemon.conf rules.conf -t "${pkgdir}/etc/usbguard" - - # completion - install -Dpm 644 scripts/bash_completion/usbguard -t "${pkgdir}/usr/share/bash-completion/completions" - install -Dpm 644 scripts/usbguard-zsh-completion "${pkgdir}/usr/share/zsh/site-functions/_usbguard" - - # cleanup - cd "${pkgdir}" - rm -rf usr/{bin/usbguard-applet-qt,share/{applications,icons,man/man1/usbguard-applet-qt.1}} -} - -package_usbguard-qt() { - pkgdesc+=' - Qt frontend' - depends=('usbguard' 'libusbguard.so' 'qt5-base' 'qt5-svg' 'qt5-tools' 'hicolor-icon-theme') - cd ${pkgbase}-${pkgver} - make INSTALL='install -p' SYSTEMD_UNIT_DIR="/usr/lib/systemd/system" DESTDIR="${pkgdir}" install - - # cleanup - cd "${pkgdir}" - rm -rf {etc,var,usr/{include,lib,share/{dbus-1,polkit-1,man/{man1/usbguard.1,man5,man8 \ -usr/bin/usbguard{,-daemon,-dbus,-rule-parser} -} - -# vim: ts=2 sw=2 et: Copied: usbguard/repos/extra-x86_64/PKGBUILD (from rev 365947, usbguard/repos/testing-x86_64/PKGBUILD) === --- extra-x86_64/PKGBUILD (rev 0) +++ extra-x86_64/PKGBUILD 2019-10-27 18:52:05 UTC (rev 365948) @@ -0,0 +1,67 @@ +# Maintainer: Levente Polyak +# Contributor: Ian Beringer + +pkgname=usbguard +pkgver=0.7.5 +pkgrel=1 +pkgdesc='Software framework for implementing USB device authorization policies' +url='https://github.com/dkopecek/usbguard' +arch=('x86_64') +license=('GPL2') +depends=('glibc' 'libqb' 'libqb.so' 'libsodium' 'libcap-ng' 'protobuf' 'polkit' 'dbus-glib' + 'audit' 'libaudit.so' 'libseccomp' 'libseccomp.so') +makedepends=('catch2' 'pegtl' 'libxslt' 'asciidoc' 'systemd') +provides=('libusbguard.so') +backup=(etc/usbguard/usbguard-daemon.conf +etc/usbguard/rules.conf)
[arch-commits] Commit in usbguard/repos (4 files)
Date: Wednesday, October 23, 2019 @ 18:30:04 Author: jelle Revision: 365410 db-move: moved usbguard from [staging] to [testing] (x86_64) Added: usbguard/repos/testing-x86_64/ usbguard/repos/testing-x86_64/PKGBUILD (from rev 365409, usbguard/repos/staging-x86_64/PKGBUILD) usbguard/repos/testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (from rev 365409, usbguard/repos/staging-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch) Deleted: usbguard/repos/staging-x86_64/ + PKGBUILD | 67 + make-explicitly-treat-pthread-as-first-level-depende.patch | 598 +++ 2 files changed, 665 insertions(+) Copied: usbguard/repos/testing-x86_64/PKGBUILD (from rev 365409, usbguard/repos/staging-x86_64/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2019-10-23 18:30:04 UTC (rev 365410) @@ -0,0 +1,67 @@ +# Maintainer: Levente Polyak +# Contributor: Ian Beringer + +pkgname=usbguard +pkgver=0.7.5 +pkgrel=1 +pkgdesc='Software framework for implementing USB device authorization policies' +url='https://github.com/dkopecek/usbguard' +arch=('x86_64') +license=('GPL2') +depends=('glibc' 'libqb' 'libqb.so' 'libsodium' 'libcap-ng' 'protobuf' 'polkit' 'dbus-glib' + 'audit' 'libaudit.so' 'libseccomp' 'libseccomp.so') +makedepends=('catch2' 'pegtl' 'libxslt' 'asciidoc' 'systemd') +provides=('libusbguard.so') +backup=(etc/usbguard/usbguard-daemon.conf +etc/usbguard/rules.conf) +source=(https://github.com/dkopecek/usbguard/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz{,.sig} +make-explicitly-treat-pthread-as-first-level-depende.patch) +sha512sums=('b14f1cfaec676b5bc2f3aa2bda8be96ea8a6b3f02fc78f0fa7a58dd079c57886aae2c33a9e99cb9ccd53e5d6fa27712b978a2d19cd58b75dda34516d8caed0c4' +'SKIP' + '02232be248aa11e543b0cd2f26e3ff735267b58bb3a255fc32e390f0efff302e4b749fee3927942585a799f0e7571836bc085f89aef43df5517a678b04596e5a') +validpgpkeys=('FD9B3F9DCEBB5537A8FAF5213B0C109510712034') # Daniel Kopeček + +prepare() { + cd ${pkgname}-${pkgver} + sed 's|/usr/include/catch|/usr/include/catch2|g' -i configure.ac + patch -Np1 < ../make-explicitly-treat-pthread-as-first-level-depende.patch + autoreconf -fiv +} + +build() { + cd ${pkgname}-${pkgver} + ./configure \ +--prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--sys=/etc \ +--sbindir=/usr/bin \ +--libdir=/usr/lib \ +--enable-systemd \ +--without-bundled-catch \ +--without-bundled-pegtl \ +--with-dbus \ +--with-polkit \ +--with-crypto-library=sodium + make + touch rules.conf +} + +check() { + cd ${pkgname}-${pkgver} + make check +} + +package() { + cd ${pkgname}-${pkgver} + make INSTALL='install -p' DESTDIR="${pkgdir}" install + + chmod 750 "${pkgdir}/etc/usbguard" + install -Dpm 600 usbguard-daemon.conf rules.conf -t "${pkgdir}/etc/usbguard" + + # completion + install -Dpm 644 scripts/bash_completion/usbguard -t "${pkgdir}/usr/share/bash-completion/completions" + install -Dpm 644 scripts/usbguard-zsh-completion "${pkgdir}/usr/share/zsh/site-functions/_usbguard" +} + +# vim: ts=2 sw=2 et: Copied: usbguard/repos/testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (from rev 365409, usbguard/repos/staging-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch) === --- testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch (rev 0) +++ testing-x86_64/make-explicitly-treat-pthread-as-first-level-depende.patch 2019-10-23 18:30:04 UTC (rev 365410) @@ -0,0 +1,598 @@ +From 2887cb6a49a9b04e968af00dc7d38d051785b600 Mon Sep 17 00:00:00 2001 +From: Levente Polyak +Date: Fri, 11 Oct 2019 23:14:40 +0200 +Subject: [PATCH] make: explicitly treat pthread as first level dependency + +Certain environments need to handle pthread explicitly and pass +appropriate flags (like -pthread) to make the compiler/linker happy. +Invoke the AX_PTHREAD macro to populate the pthread related flags and +pass them accordingly. +This fixes certain linking issues for the first level dependency +usage pthread_sigmask. +--- + Makefile.am | 12 +- + configure.ac | 1 + + m4/ax_pthread.m4 | 485 ++ + src/Tests/Makefile.am | 12 +- + 4 files changed, 506 insertions(+), 4 deletions(-) + create mode 100644 m4/ax_pthread.m4 + +diff --git a/Makefile.am b/Makefile.am +index ceb9a33..b73f564 100644 +--- a/Makefile.am b/Makefile.am +@@ -348,6 +348,9 @@ usbguard_daemon_SOURCES=\ + src/Daemon/LinuxAuditBackend.hpp \ + src/Daemon/LinuxAuditBackend.cpp +