upg archlinux-keyring libarchive tpm2-tss
This commit is contained in:
parent
03ac356790
commit
dce1c9ca9e
11 changed files with 243 additions and 72 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
pkgname=archlinux-keyring
|
||||
pkgver=20240709
|
||||
pkgrel=01
|
||||
pkgrel=02
|
||||
pkgdesc='Arch Linux PGP keyring'
|
||||
url='https://gitlab.archlinux.org/archlinux/archlinux-keyring/'
|
||||
install=$pkgname.install
|
||||
|
@ -56,5 +56,5 @@ validpgpkeys=('02FD1C7A934E614545849F19A6234074498E9CEE' # Christian Hesse <ewo
|
|||
|
||||
sha256sums=(139bb9d1bf831b35e4819fdec6706dcfee046f6f7d704b0f742742673f4d5a20) # archlinux-keyring
|
||||
|
||||
## 7c4fd2338a8f4206fef0f20b38d3bb18e1405f14611996f88c6d9e738f3fac66 archlinux-keyring-20240709-01-x86_64.pkg.tar.lz
|
||||
## 1dd927925ab00fd777371bcd096d8b5dd94a3cb51dbd6e015bf8c4c1baf04903 archlinux-keyring-20240709-02-x86_64.pkg.tar.lz
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
pkgname=archlinux-keyring
|
||||
pkgver=20240709
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Arch Linux PGP keyring'
|
||||
arch=('any')
|
||||
url='https://gitlab.archlinux.org/archlinux/archlinux-keyring/'
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname=libarchive
|
||||
pkgver=3.7.4
|
||||
pkgver=3.7.5
|
||||
pkgrel=01
|
||||
pkgdesc='Multi-format archive and compression library'
|
||||
url='https://libarchive.org/'
|
||||
|
@ -57,8 +57,8 @@ license=('BSD')
|
|||
validpgpkeys=(A5A45B12AD92D964B89EEE2DEC560C81CEC2276E # Martin Matuska <mm@FreeBSD.org>
|
||||
DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B) # Martin Matuska <martin@matuska.org>
|
||||
|
||||
sha256sums=(f887755c434a736a609cbd28d87ddbfbe9d6a3bb5b703c22c02f6af80a802735
|
||||
'SKIP')
|
||||
sha256sums=(ca74ff8f99dd40ab8a8274424d10a12a7ec3f4428dd35aee9fdda8bdb861b570 # libarchive-3.7.5.tar.xz
|
||||
e6f66556bfe42dd1c494e204aeb71244fff3533135bb29662be3fc96579c0902) # libarchive-3.7.5.tar.xz.asc
|
||||
|
||||
## 0b7363e3ef39ed030fd86182b2bcf706c9631986f8b492f89241aee37739f960 libarchive-3.7.4-01-x86_64.pkg.tar.lz
|
||||
## 39d2a1007c68449fdac8b99d352d8cfdba88758904e7e04862107dd0dba4aeeb libarchive-3.7.5-01-x86_64.pkg.tar.lz
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Dan McGee <dan@archlinux.org>
|
||||
|
||||
pkgname=libarchive
|
||||
pkgver=3.7.4
|
||||
pkgver=3.7.5
|
||||
pkgrel=1
|
||||
pkgdesc='Multi-format archive and compression library'
|
||||
arch=('x86_64')
|
||||
|
@ -20,7 +20,7 @@ provides=('libarchive.so')
|
|||
validpgpkeys=('A5A45B12AD92D964B89EEE2DEC560C81CEC2276E' # Martin Matuska <mm@FreeBSD.org>
|
||||
'DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B') # Martin Matuska <martin@matuska.org>
|
||||
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
|
||||
sha256sums=('f887755c434a736a609cbd28d87ddbfbe9d6a3bb5b703c22c02f6af80a802735'
|
||||
sha256sums=('ca74ff8f99dd40ab8a8274424d10a12a7ec3f4428dd35aee9fdda8bdb861b570'
|
||||
'SKIP')
|
||||
|
||||
build() {
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
133
runit/PKGBUILD
Normal file
133
runit/PKGBUILD
Normal file
|
@ -0,0 +1,133 @@
|
|||
#!/usr/bin/bash
|
||||
# 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 |---------------------------------------
|
||||
#src-url="https://git.disroot/org/joborun/runit-joborun"
|
||||
|
||||
_url="https://git.disroot.org/joborun-pkg/repos/raw/branch/main"
|
||||
_pkgname="runit-joborun"
|
||||
_pkgver="20230911"
|
||||
|
||||
# set default service path to /run/runit/service
|
||||
_servicedir=/run/runit/service
|
||||
|
||||
pkgname=runit
|
||||
pkgver=2.1.2
|
||||
pkgrel=026
|
||||
pkgdesc='a cross-platform Unix init scheme with service supervision'
|
||||
url='http://smarden.org/runit/'
|
||||
depends=('runit-rc' 'joborun66')
|
||||
makedepends=('sh')
|
||||
backup=('etc/rc.local' 'etc/rc.shutdown')
|
||||
optdepends=('runit-bash-completions: Runit completions for Bash')
|
||||
install=runit.install
|
||||
source=("http://smarden.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
||||
"runit-joborun.tar.xz::$_url/$_pkgname-$_pkgver.tar.xz"
|
||||
# "runit-joborun.tar.xz::runit-joborun-$_pkgver.tar.xz"
|
||||
"halt.c"
|
||||
"shutdown"
|
||||
"clearmem.patch"
|
||||
'chpst.patch'
|
||||
"svlogd.patch"
|
||||
"utmpset-time_t.patch"
|
||||
"runit-hook"
|
||||
"runit-install.hook"
|
||||
"runit-remove.hook"
|
||||
"30-binfmt.hook"
|
||||
"30-sysctl.hook")
|
||||
|
||||
prepare() {
|
||||
# set default service path to /run/runit/service
|
||||
cd "${srcdir}/admin/${pkgname}-${pkgver}"
|
||||
sed -i "s|/service/|${_servicedir}/|" src/sv.c
|
||||
|
||||
# apply patches
|
||||
patch -p1 -i "${srcdir}/clearmem.patch"
|
||||
patch -p1 -i "${srcdir}/svlogd.patch"
|
||||
patch -p1 -i "${srcdir}/utmpset-time_t.patch"
|
||||
patch -p1 -i "${srcdir}/chpst.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"
|
||||
cc ${CFLAGS} halt.c -o halt ${LDFLAGS}
|
||||
make SERVICEDIR="${_servicedir}"
|
||||
|
||||
cd "${srcdir}/admin/${pkgname}-${pkgver}"
|
||||
|
||||
CFLAGS="${CFLAGS} -static"
|
||||
LDFLAGS="${LDFLAGS} -static"
|
||||
|
||||
package/compile
|
||||
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/admin/${pkgname}-${pkgver}"
|
||||
package/check
|
||||
}
|
||||
|
||||
package() {
|
||||
# commands
|
||||
install -dm755 "${pkgdir}/usr/bin/run"
|
||||
install -Dm755 ${srcdir}/admin/${pkgname}-${pkgver}/command/* "${pkgdir}/usr/bin"
|
||||
install -Dm755 ${srcdir}/halt ${pkgdir}/usr/bin/run/halt
|
||||
ln -s halt ${pkgdir}/usr/bin/run/poweroff
|
||||
ln -s halt ${pkgdir}/usr/bin/run/reboot
|
||||
install -Dm755 ${srcdir}/shutdown ${pkgdir}/usr/bin/run/shutdown
|
||||
|
||||
cd ${srcdir}/
|
||||
make DESTDIR="${pkgdir}" PREFIX="/usr" SERVICEDIR="${_servicedir}" install-runit
|
||||
|
||||
# man pages
|
||||
install -dm755 "${pkgdir}/usr/share/man/man8"
|
||||
install -Dm644 ${srcdir}/admin/${pkgname}-${pkgver}/man/* "${pkgdir}/usr/share/man/man8"
|
||||
|
||||
# alpm hooks
|
||||
install -Dm755 "${srcdir}/runit-hook" "${pkgdir}/usr/share/libalpm/scripts/runit-hook"
|
||||
install -Dm644 -t "${pkgdir}/usr/share/libalpm/hooks" "${srcdir}"/*.hook
|
||||
|
||||
# license
|
||||
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
|
||||
install -Dm644 "${srcdir}/admin/${pkgname}-${pkgver}/package/COPYING" ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
|
||||
sed -n '/To the extent/,/0/p' README.md > "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||
}
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
||||
license=('BSD')
|
||||
|
||||
b2sums=('101e514aeed282685ebe636f401ca6f94d157281d08a3ac487340aebe945b82d2ee01d41e9917446f4ebd7b27fe9fd18ba4ad55739ab1b62a0e59e1c438b55e9'
|
||||
SKIP
|
||||
'9412c1e8c4563398f33d94bc7fcfb5f09cd0a6415ae3f0888b1f5f1c12cb4c68abea614ea0f5798d12c32a55e83f6386972e6dce3394b991fcaeb32dd0a8e40e' # halt.c
|
||||
'e782155bd99bd4cd049a88fa9c0bfbd1d4ef4c61669e97a6b3d482c9ab52666ad736d38ccfc4486a152fd8446ab9703f99ff5ccef9ded3ba055aa412ec18de3a'
|
||||
'af632c732ec8e3942fc27e6450cb04fc539ca4a91bc1ea8e926784922acf8455b00725a082686475e13605a1d897ce17e7fd3bb975f48ffa9619daaaf2774911'
|
||||
'c6197f9a6b1ffcd2f210186cfec11ea7267f9671f0ad52f40c2b2d83ad1f62a2128883c589e0b25a1d36752b3491fd67e058aca6ab476098594498b88176b892'
|
||||
'd95fdfd7bdad77e540d0c168c0ddc4b17bda1831d4321b5c6f9793247fbe272623425b23faa82756175aef96ae9b4eed9191271ae773831cc62a153a65fd0c3f'
|
||||
'f9e06e60901fd4762468a778866a7d9bf860ef5ee07965b104566e09b5fd8775a9f597708632f429a41b19629543084fec10276b1f4d8c6ef09b06b90f2910c4'
|
||||
'28c687dca9442c73bbc944c92b5a7b8466ceaadb379a7478c13d11604e68ef206558b427bc1714b8410f934b457cab0d36d13fe78ff681095d1cafbe8c0ad236'
|
||||
'4335a92d20b0f1916137e87d47bcb0b3d9157480a2aafb847daefba912defc3e45cd86ffeaf092ca40478eb8ad08617bcb88d790a4bdd3ea574941968e379501'
|
||||
'8ebbaed9dd9f608025da75448688ebce137d25260b512682d658a8cb2512009467773014ca194c973115af98f0bbaae14d38528494b433e73b6e06516ba0cc9a'
|
||||
'3d8a7dfcf6a98bd4b6d379a3175d4f61422eaa91fe8b2a4fd6fbfc06d6c92c2e68f768ca438310530f9cb119a1de797d9f02da422d5d487272d7cf951c4fa9f8'
|
||||
'081dbd1873d8a41b65820949ae24715b209b1c38957b6f8934c0eb48019a586cd505e11e2cad0bb2657a0d1792a748bc5d9d71147a8b42a3274c8335ded3030a')
|
||||
|
||||
sha256sums=(6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18 # runit-2.1.2.tar.gz
|
||||
f524e90ae33fccf3fa89fb574064944ab1bc580df277ab9b93696c166b6a0b6d # runit-joborun.tar.xz
|
||||
26f2c30c3f65a1370f8a377600f8492fbcd93aeaec239ab460d6a01eb8eb7801 # halt.c
|
||||
7f11c5cab16f10178612b6a81d37184c25c4426b9c2d5d3f8ef7ed7ab2b52c56 # shutdown
|
||||
19b5e99135f153d07052f2dff707430af9faeabc717a5740ea58a8a783f609de # clearmem.patch
|
||||
68b364b6e65f39903f2c928387ed30008d91c1e36d6315456845bef6882f3c85 # chpst.patch
|
||||
9cf269264c0713975be1b3bc9dd3b5b3bb1e2078ac596527370a902d8d025a5a # svlogd.patch
|
||||
527f68f501cc9eb4bbab33f8ad374822624342c7d74b5c795efe4aac6b3f170a # utmpset-time_t.patch
|
||||
201cf7e03d400195c461face4ec29559bbfe3308e6d291a7633a9d1632e99410 # runit-hook
|
||||
a3e95c60b616ae0a85690d0251924b084f85166cfbd7c037377cfe67b3baaf1b # runit-install.hook
|
||||
b85ae57b50a323fd5b11c3584b1b34f723b38d769ea238ab3c27429f2f4fb7b9 # runit-remove.hook
|
||||
3248e86fe739aaff412f5b4f77b689f690fac1c0e9e634a0305cc3f517d41338 # 30-binfmt.hook
|
||||
af91ca198fc402f39faf9e62b8da56e47f5cda9ce3d61c43fcf5b24f59fbbf5a) # 30-sysctl.hook
|
||||
|
||||
## 0c044f1c294be32545fe4d3be710341efbf634336be06b1a3fd42f91eebd8f73 runit-2.1.2-026-x86_64.pkg.tar.lz
|
||||
|
|
@ -6,12 +6,12 @@
|
|||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname=tpm2-tss
|
||||
pkgver=4.0.1
|
||||
pkgver=4.1.3
|
||||
pkgrel=01
|
||||
pkgdesc='Implementation of the TCG Trusted Platform Module 2.0 Software Stack (TSS2)'
|
||||
url='https://github.com/tpm2-software/tpm2-tss'
|
||||
depends=('curl' 'json-c' 'openssl' 'libjson-c.so')
|
||||
makedepends=('cmocka' 'doxygen' 'libtpms')
|
||||
makedepends=('git' 'autoconf-archive' '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'
|
||||
|
@ -19,35 +19,36 @@ backup=('etc/tpm2-tss/fapi-config.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'
|
||||
'https://github.com/tpm2-software/tpm2-tss/commit/218c0da8.patch')
|
||||
# "$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
|
||||
# 'https://raw.githubusercontent.com/tpm2-software/tpm2-tss/e237e4d33cbf280292a480edd8ad061dcd3a37a2/lib/tss2-tcti-libtpms.map'
|
||||
# 'https://github.com/tpm2-software/tpm2-tss/commit/218c0da8.patch'
|
||||
source=( git+https://github.com/tpm2-software/tpm2-tss?signed#tag=${pkgver}
|
||||
)
|
||||
|
||||
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
|
||||
patch -p1 -i ../218c0da8.patch # Fix tests
|
||||
cd "$pkgname"
|
||||
./bootstrap
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
# disable options taken from gentoo ebuild!
|
||||
./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- \
|
||||
--disable-tcti-libtpms --disable-tcti-spi-ltt2go --disable-tcti-spi-ftdi \
|
||||
--disable-tcti-i2c-ftdi --disable-defaultflags --disable-weakcrypto \
|
||||
--enable-unit $( ((CHECKFUNC)) && echo --enable-integration)
|
||||
make
|
||||
}
|
||||
|
||||
# fails some tests and gets stuck in one for long
|
||||
#check() {
|
||||
# cd "$pkgname-$pkgver"
|
||||
# make check
|
||||
#}
|
||||
# 4.0.1 we have other things to do today than wait hours and hours for tests to finish
|
||||
|
||||
check() {
|
||||
cd "${pkgname}"
|
||||
# lto breaks tests!
|
||||
make check
|
||||
}
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
cd "$pkgname"
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
|
@ -56,14 +57,15 @@ package() {
|
|||
|
||||
arch=(x86_64)
|
||||
|
||||
license=('BSD')
|
||||
license=('BSD-2-Clause')
|
||||
|
||||
validpgpkeys=('D6B4D8BAC7E0CC97DCD4AC7272E88B53F7A95D84' # Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de>
|
||||
'5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts (Bill Roberts) <william.c.roberts@intel.com>
|
||||
validpgpkeys=('D533275B0123D0A679F51FF48F4F9A45D7FFEE74' # Andreas Fuchs <andreas.fuchs@infineon.com
|
||||
'D6B4D8BAC7E0CC97DCD4AC7272E88B53F7A95D84' # Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de>
|
||||
'5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts (Bill Roberts) <william.c.roberts@intel.com>
|
||||
|
||||
sha256sums=(532a70133910b6bd842289915b3f9423c0205c0ea009d65294ca18a74087c950 # tpm2-tss-4.0.1.tar.gz
|
||||
d610c1a376196457d0edba0e34746abc705058b018311fa231581e3e5e45732a # tpm2-tss-4.0.1.tar.gz.asc
|
||||
41c37dc4b10b1e86023619150e5047739aeee93fd8f77315157d3eeb5fe6a981 # tss2-tcti-libtpms.map
|
||||
76797d64092709d9af8b1d93750bc5d1f1e861e5a9fa37c24e0f1473b874be80) # 218c0da8.patch
|
||||
b2sums=('2337287c0c7825b27a4639ed055c9a44eb08432110e032e244cb21f77f087b8bea1740f9e313fc5f0b54f03b1cc3c26287f874fef15710d7dc44dbf1ac1b2cfb') # tpm2-tss
|
||||
|
||||
sha256sums=(50ce762162642210536661d286a18f7714a8e284da8b0fcafa0a530796d31c4a) # tpm2-tss
|
||||
|
||||
## a02e950ef19e247d6132390882d98861bb2be0ee730de47d5a38048193e42bfb tpm2-tss-4.1.3-01-x86_64.pkg.tar.lz
|
||||
|
||||
## 2bf4730a0d4a6ba8be6d2517172aa68776082ad15e887d4418bf68cd4ffd0983 tpm2-tss-4.0.1-01-x86_64.pkg.tar.lz
|
||||
|
|
|
@ -1,53 +1,84 @@
|
|||
# Maintainer: Jonas Witschel <diabonas@archlinux.org>
|
||||
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
||||
# Contributor: Jonas Witschel <diabonas@archlinux.org>
|
||||
# Contributor: Bruno Pagani <archange@archlinux.org>
|
||||
pkgname=tpm2-tss
|
||||
pkgver=4.0.1
|
||||
pkgver=4.1.3
|
||||
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=('!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'
|
||||
'https://github.com/tpm2-software/tpm2-tss/commit/218c0da8.patch')
|
||||
sha512sums=('ed6ddc52cb0e8c1082a4bb001e1225eb9905fd2380da88db5fd69ff5b5d9d43a93eb67b634e49d53eb5d586832da3aef2c4c7e5f18d51bb730481f8913319d7d'
|
||||
'SKIP'
|
||||
'55be966eb320c96ca49b3aaa0635815076fe1a21149d1a0f95654778c8359bd16f18a10c0cabe955a366d4a14e2645a8150878b601085d987727de40831e50ab'
|
||||
'5c6f57ddf43b0c767578ecbad1df960ef0d77417eb1db0c9c492636a4b07c0b5b29cc031d5352d83aec4a8e1d67276587db24e7e188dfeecff5d7ed7c55cc30c')
|
||||
validpgpkeys=('D6B4D8BAC7E0CC97DCD4AC7272E88B53F7A95D84' # Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de>
|
||||
'5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts (Bill Roberts) <william.c.roberts@intel.com>
|
||||
license=('BSD-2-Clause')
|
||||
depends=(
|
||||
curl
|
||||
json-c
|
||||
openssl
|
||||
libjson-c.so
|
||||
)
|
||||
makedepends=(
|
||||
git
|
||||
autoconf-archive
|
||||
cmocka
|
||||
doxygen
|
||||
libtpms
|
||||
systemd
|
||||
)
|
||||
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=(
|
||||
!emptydirs
|
||||
!lto
|
||||
)
|
||||
source=(
|
||||
git+https://github.com/tpm2-software/tpm2-tss?signed#tag=${pkgver}
|
||||
)
|
||||
b2sums=('2337287c0c7825b27a4639ed055c9a44eb08432110e032e244cb21f77f087b8bea1740f9e313fc5f0b54f03b1cc3c26287f874fef15710d7dc44dbf1ac1b2cfb')
|
||||
validpgpkeys=(
|
||||
'D533275B0123D0A679F51FF48F4F9A45D7FFEE74' # Andreas Fuchs <andreas.fuchs@infineon.com
|
||||
'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
|
||||
patch -p1 -i ../218c0da8.patch # Fix tests
|
||||
cd "${pkgname}"
|
||||
./bootstrap
|
||||
}
|
||||
|
||||
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
|
||||
cd "${pkgname}"
|
||||
# disable options taken from gentoo ebuild!
|
||||
./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- \
|
||||
--disable-tcti-libtpms --disable-tcti-spi-ltt2go --disable-tcti-spi-ftdi \
|
||||
--disable-tcti-i2c-ftdi --disable-defaultflags --disable-weakcrypto \
|
||||
--enable-unit $( ((CHECKFUNC)) && echo --enable-integration)
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make check
|
||||
cd "${pkgname}"
|
||||
# lto breaks tests!
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
cd "${pkgname}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
rm -rf {src,pkg,tpm2*tar.gz*}
|
||||
rm -rf {src,pkg,tpm2*tar.gz*,tpm2-tss}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
|
||||
cmocka
|
||||
doxygen
|
||||
libtpms
|
||||
swtpm
|
||||
uthash
|
||||
git
|
||||
autoconf-archive
|
||||
|
||||
|
||||
automake
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
gpg -v --recv-key 6DE2E9078E1F50C1
|
||||
gpg --recv-key 8F4F9A45D7FFEE74
|
||||
|
|
Loading…
Reference in a new issue