upg and addition

This commit is contained in:
joborun linux 2022-04-01 02:05:56 +03:00
parent 9b7cb1fa1e
commit 2c2c18d210
15 changed files with 191 additions and 56 deletions

View file

@ -7,8 +7,8 @@
pkgbase=libcap-ng
pkgname=(libcap-ng python-capng)
pkgver=0.8.2
pkgrel=07
pkgver=0.8.3
pkgrel=01
pkgdesc='A library for Linux that makes using posix capabilities easy'
arch=(x86_64)
url='https://people.redhat.com/sgrubb/libcap-ng/'
@ -69,8 +69,4 @@ package_python-capng() {
license=(LGPL2.1)
sha512sums=('33832ee16972050a7c5cb20de21d766d5e88f5357db28166b83b05369f7ceea0b1aded39bae2d746d582ad4ee7703c131876fc4bcbc5d4b4eadd7dd429e8cf10')
b2sums=('6bb07503421f88803ce2597289c18762f6ad06a3535ad7c6ffc28d2519adf2a130189332e56df174aa9be768340983ea6f7a6046b2209916815a19a0c6fa3693')
sha256sums=(65b86885b8d873e55c05bd49427fd370d559b26f0c2089ac9194828e6a2fe233) # libcap-ng-0.8.2.tar.gz
sha256sums=(e542e9139961f0915ab5878427890cdc7762949fbe216bd0cb4ceedb309bb854) # libcap-ng-0.8.3.tar.gz

View file

@ -5,8 +5,8 @@
pkgbase=libcap-ng
pkgname=(libcap-ng python-capng)
pkgver=0.8.2
pkgrel=7
pkgver=0.8.3
pkgrel=1
pkgdesc='A library for Linux that makes using posix capabilities easy'
arch=(x86_64)
url='https://people.redhat.com/sgrubb/libcap-ng/'
@ -15,8 +15,8 @@ depends=(glibc)
makedepends=(python swig)
options=(debug)
source=(https://github.com/stevegrubb/libcap-ng/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('33832ee16972050a7c5cb20de21d766d5e88f5357db28166b83b05369f7ceea0b1aded39bae2d746d582ad4ee7703c131876fc4bcbc5d4b4eadd7dd429e8cf10')
b2sums=('6bb07503421f88803ce2597289c18762f6ad06a3535ad7c6ffc28d2519adf2a130189332e56df174aa9be768340983ea6f7a6046b2209916815a19a0c6fa3693')
sha512sums=('5b078164a9e7475349f3143e1f3ee219df09252185726aec92f1e20386e14d1c708f54aea986600078bd5851f6103e43624f8a3527140ebb955601820e2e4c89')
b2sums=('166d4addeea96db2ed9e0f1cb1284af5a2dd690a46ae5fd598e16ea2058adbf94ba523ba594e006eea2a0a6a2f3232f8fb2d4716e749ac3383012af7b0034522')
_pick() {
local p="$1" f d; shift

61
tpm2-tss/PKGBUILD Normal file
View file

@ -0,0 +1,61 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=tpm2-tss
pkgver=3.2.0
pkgrel=01
pkgdesc='Implementation of the TCG Trusted Platform Module 2.0 Software Stack (TSS2)'
arch=('x86_64')
url='https://github.com/tpm2-software/tpm2-tss'
depends=('curl' 'json-c' 'openssl' 'libjson-c.so')
makedepends=('cmocka' 'doxygen' 'libtpms')
checkdepends=('iproute2' 'swtpm' 'uthash')
provides=('libtss2-esys.so' 'libtss2-fapi.so' 'libtss2-mu.so' 'libtss2-rc.so' 'libtss2-sys.so' 'libtss2-tctildr.so')
backup=('etc/tpm2-tss/fapi-config.json'
'etc/tpm2-tss/fapi-profiles/P_ECCP256SHA256.json'
'etc/tpm2-tss/fapi-profiles/P_RSA2048SHA256.json')
#options=('debug' '!emptydirs' '!lto') # uncomment this to produce debug package and comment the next line
options=('!emptydirs' '!lto')
source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
'https://raw.githubusercontent.com/tpm2-software/tpm2-tss/e237e4d33cbf280292a480edd8ad061dcd3a37a2/lib/tss2-tcti-libtpms.map')
prepare() {
cd "$pkgname-$pkgver"
# Add file missing from release tarball (https://github.com/tpm2-software/tpm2-tss/issues/2313)
cp "$srcdir/tss2-tcti-libtpms.map" lib
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--with-runstatedir=/run --with-sysusersdir=/usr/lib/sysusers.d \
--with-tmpfilesdir=/usr/lib/tmpfiles.d --with-udevrulesprefix=60- \
--enable-unit $( ((CHECKFUNC)) && echo --enable-integration)
make
}
# fails some tests and gets stuck in one for long
#check() {
# cd "$pkgname-$pkgver"
# make check
#}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
#---- license gpg-key sha256sums ----
license=('BSD')
validpgpkeys=('D6B4D8BAC7E0CC97DCD4AC7272E88B53F7A95D84' # Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de>
'5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts (Bill Roberts) <william.c.roberts@intel.com>
sha256sums=(48305e4144dcf6d10f3b25b7bccf0189fd2d1186feafd8cd68c6b17ecf0d7912 # tpm2-tss-3.2.0.tar.gz
9579c6ad302ae7073c74f5249a60c797ebed4fcf4459a0016e6f1cc0b63058cb # tpm2-tss-3.2.0.tar.gz.asc
41c37dc4b10b1e86023619150e5047739aeee93fd8f77315157d3eeb5fe6a981) # tss2-tcti-libtpms.map

50
tpm2-tss/PKGBUILD-arch Normal file
View file

@ -0,0 +1,50 @@
# Maintainer: Jonas Witschel <diabonas@archlinux.org>
# Contributor: Bruno Pagani <archange@archlinux.org>
pkgname=tpm2-tss
pkgver=3.2.0
pkgrel=1
pkgdesc='Implementation of the TCG Trusted Platform Module 2.0 Software Stack (TSS2)'
arch=('x86_64')
url='https://github.com/tpm2-software/tpm2-tss'
license=('BSD')
depends=('curl' 'json-c' 'openssl' 'libjson-c.so')
makedepends=('cmocka' 'doxygen' 'libtpms')
checkdepends=('iproute2' 'swtpm' 'uthash')
provides=('libtss2-esys.so' 'libtss2-fapi.so' 'libtss2-mu.so' 'libtss2-rc.so' 'libtss2-sys.so' 'libtss2-tctildr.so')
backup=('etc/tpm2-tss/fapi-config.json'
'etc/tpm2-tss/fapi-profiles/P_ECCP256SHA256.json'
'etc/tpm2-tss/fapi-profiles/P_RSA2048SHA256.json')
options=('debug' '!emptydirs' '!lto')
source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
'https://raw.githubusercontent.com/tpm2-software/tpm2-tss/e237e4d33cbf280292a480edd8ad061dcd3a37a2/lib/tss2-tcti-libtpms.map')
sha512sums=('cabb411f074dfa94919ba914849aac77a0ac2f50622e28a1406cf575369148774748e0e2b7a7c566ec83561a96d4b883bac5a3b1763f4cf48668a0c5d68c0a23'
'SKIP'
'55be966eb320c96ca49b3aaa0635815076fe1a21149d1a0f95654778c8359bd16f18a10c0cabe955a366d4a14e2645a8150878b601085d987727de40831e50ab')
validpgpkeys=('D6B4D8BAC7E0CC97DCD4AC7272E88B53F7A95D84' # Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de>
'5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts (Bill Roberts) <william.c.roberts@intel.com>
prepare() {
cd "$pkgname-$pkgver"
# Add file missing from release tarball (https://github.com/tpm2-software/tpm2-tss/issues/2313)
cp "$srcdir/tss2-tcti-libtpms.map" lib
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--with-runstatedir=/run --with-sysusersdir=/usr/lib/sysusers.d \
--with-tmpfilesdir=/usr/lib/tmpfiles.d --with-udevrulesprefix=60- \
--enable-unit $( ((CHECKFUNC)) && echo --enable-integration)
make
}
check() {
cd "$pkgname-$pkgver"
make check
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

1
tpm2-tss/clean Normal file
View file

@ -0,0 +1 @@
rm -rf {src,pkg,tpm2*tar.gz*}

6
tpm2-tss/deps Normal file
View file

@ -0,0 +1,6 @@
json-c
cmocka
doxygen
libtpms
swtpm
uthash

1
tpm2-tss/key Normal file
View file

@ -0,0 +1 @@
gpg --recv-keys 72E88B53F7A95D84

6
tpm2-tss/time Normal file
View file

@ -0,0 +1,6 @@
real 0m12.095s
user 0m11.773s
sys 0m1.539s
very long if you uncomment the check section some tests take for ever

View file

@ -0,0 +1,7 @@
{
global:
Tss2_Tcti_Info;
Tss2_Tcti_Libtpms_Init;
local:
*;
};

View file

@ -0,0 +1,3 @@
# Set wireless regulatory domain at device creation
ACTION=="add", SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"

View file

@ -2,37 +2,33 @@
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=wireless-regdb
pkgver=2022.02.18
pkgrel=01
pkgrel=02
pkgdesc="Central Regulatory Domain Database"
arch=('any')
url="https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb"
replaces=('crda')
provides=('crda')
backup=(etc/conf.d/wireless-regdom)
depends=('sh')
makedepends=('crda')
depends=(bash iw)
source=(https://www.kernel.org/pub/software/network/wireless-regdb/${pkgname}-${pkgver}.tar.{xz,sign}
crda.conf.d)
wireless-regdom
set-wireless-regdom
85-regulatory.rules)
package() {
# Install and verify regulatory.bin file
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.bin "${pkgdir}"/usr/lib/crda/regulatory.bin
# This creates a depend/makedepend loop:
# crda depends on wireless-regdb (but strictly doesn't makedepend on it)
# wireless-regdb makedepends on crda
if ! /usr/bin/regdbdump "${pkgdir}"/usr/lib/crda/regulatory.bin > /dev/null; then
return 1
fi
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/sforshee.key.pub.pem "${pkgdir}"/usr/lib/crda/pubkeys/sforshee.key.pub.pem
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/wireless-regdb/LICENSE
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.bin.5 "${pkgdir}"/usr/share/man/man5/regulatory.bin.5
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db "${pkgdir}"/usr/lib/firmware/regulatory.db
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db.p7s "${pkgdir}"/usr/lib/firmware/regulatory.db.p7s
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db.5 "${pkgdir}"/usr/share/man/man5/regulatory.db.5
install -D -m644 "${srcdir}"/crda.conf.d "${pkgdir}"/etc/conf.d/wireless-regdom
for dom in $(grep ^country "${srcdir}"/${pkgname}-${pkgver}/db.txt | cut -d' ' -f2 | sed 's|:||g'); do
install -Dm644 wireless-regdom -t "${pkgdir}"/etc/conf.d
install -Dm644 85-regulatory.rules -t "${pkgdir}"/usr/lib/udev/rules.d
install -Dm755 set-wireless-regdom -t "${pkgdir}"/usr/bin
cd ${pkgname}-${pkgver}
make install DESTDIR="${pkgdir}" MANDIR=usr/share/man FIRMWARE_PATH=usr/lib/firmware
for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
echo "#WIRELESS_REGDOM=\"${dom}\"" >> "${pkgdir}"/etc/conf.d/wireless-regdom.tmp
done
sort -u "${pkgdir}"/etc/conf.d/wireless-regdom.tmp >> "${pkgdir}"/etc/conf.d/wireless-regdom
@ -49,4 +45,6 @@ validpgpkeys=('2ABCA7498D83E1D32D51D3B5AB4800A62DB9F73A') #Seth Forshee <seth.fo
sha256sums=(8828c25a4ee25020044004f57374bb9deac852809fad70f8d3d01770bf9ac97f # wireless-regdb-2022.02.18.tar.xz
01c5a9cb153837ed1c570c7c3b0fed4d8cd7474bd8b594aa680fb5c0e50a07c0 # wireless-regdb-2022.02.18.tar.sign
192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b) # crda.conf.d
192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b # wireless-regdom
603ce97da5cce3f5337e99007ce04e2f295bb33a36b308794884011f7bcabaf3 # set-wireless-regdom
f5055dfe7584757a11b419836320bcdcd1d3d1e5caf26e20c63a0c64779f3376) # 85-regulatory.rules

View file

@ -2,38 +2,35 @@
pkgname=wireless-regdb
pkgver=2022.02.18
pkgrel=1
pkgrel=2
pkgdesc="Central Regulatory Domain Database"
arch=('any')
url="https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb"
backup=(etc/conf.d/wireless-regdom)
license=('custom')
depends=('sh')
makedepends=('crda')
depends=('bash' 'iw')
replaces=('crda')
provides=('crda')
backup=(etc/conf.d/wireless-regdom)
source=(https://www.kernel.org/pub/software/network/wireless-regdb/${pkgname}-${pkgver}.tar.{xz,sign}
crda.conf.d)
wireless-regdom
set-wireless-regdom
85-regulatory.rules)
sha256sums=('8828c25a4ee25020044004f57374bb9deac852809fad70f8d3d01770bf9ac97f'
'SKIP'
'192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b')
'192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b'
'603ce97da5cce3f5337e99007ce04e2f295bb33a36b308794884011f7bcabaf3'
'f5055dfe7584757a11b419836320bcdcd1d3d1e5caf26e20c63a0c64779f3376')
validpgpkeys=('2ABCA7498D83E1D32D51D3B5AB4800A62DB9F73A') #Seth Forshee <seth.forshee@canonical.com>
package() {
# Install and verify regulatory.bin file
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.bin "${pkgdir}"/usr/lib/crda/regulatory.bin
# This creates a depend/makedepend loop:
# crda depends on wireless-regdb (but strictly doesn't makedepend on it)
# wireless-regdb makedepends on crda
if ! /usr/bin/regdbdump "${pkgdir}"/usr/lib/crda/regulatory.bin > /dev/null; then
return 1
fi
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/sforshee.key.pub.pem "${pkgdir}"/usr/lib/crda/pubkeys/sforshee.key.pub.pem
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/wireless-regdb/LICENSE
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.bin.5 "${pkgdir}"/usr/share/man/man5/regulatory.bin.5
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db "${pkgdir}"/usr/lib/firmware/regulatory.db
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db.p7s "${pkgdir}"/usr/lib/firmware/regulatory.db.p7s
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db.5 "${pkgdir}"/usr/share/man/man5/regulatory.db.5
install -D -m644 "${srcdir}"/crda.conf.d "${pkgdir}"/etc/conf.d/wireless-regdom
for dom in $(grep ^country "${srcdir}"/${pkgname}-${pkgver}/db.txt | cut -d' ' -f2 | sed 's|:||g'); do
install -Dm644 wireless-regdom -t "${pkgdir}"/etc/conf.d
install -Dm644 85-regulatory.rules -t "${pkgdir}"/usr/lib/udev/rules.d
install -Dm755 set-wireless-regdom -t "${pkgdir}"/usr/bin
cd ${pkgname}-${pkgver}
make install DESTDIR="${pkgdir}" MANDIR=usr/share/man FIRMWARE_PATH=usr/lib/firmware
for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
echo "#WIRELESS_REGDOM=\"${dom}\"" >> "${pkgdir}"/etc/conf.d/wireless-regdom.tmp
done
sort -u "${pkgdir}"/etc/conf.d/wireless-regdom.tmp >> "${pkgdir}"/etc/conf.d/wireless-regdom

View file

@ -1 +1 @@
crda
iw

View file

@ -0,0 +1,5 @@
#!/bin/bash
unset WIRELESS_REGDOM
. /etc/conf.d/wireless-regdom
[ -n "${WIRELESS_REGDOM}" ] && iw reg set ${WIRELESS_REGDOM}

View file

@ -0,0 +1,4 @@
#
# Wireless regulatory domain configuration
#