2019-06-11 23:45:48 +02:00
|
|
|
# Description: Operating system and container binary deployment and upgrades
|
|
|
|
# URL: https://ostree.readthedocs.org/en/latest/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-10-22 10:33:02 +02:00
|
|
|
# Depends on: fuse3 gpgme grub2 keyutils libsoup
|
|
|
|
# Optional: avahi brotli docbook-xsl dracut libsodium
|
2019-06-11 23:45:48 +02:00
|
|
|
|
|
|
|
name=ostree
|
2023-12-06 18:34:04 +01:00
|
|
|
version=2023.8
|
|
|
|
release=1
|
2019-06-11 23:45:48 +02:00
|
|
|
source=(https://github.com/ostreedev/ostree/releases/download/v$version/libostree-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
2023-10-22 10:33:02 +02:00
|
|
|
prt-get isinst avahi || PKGMK_OSTREE+=' --without-avahi'
|
2021-03-12 11:34:37 +00:00
|
|
|
prt-get isinst docbook-xsl && PKGMK_OSTREE+=' --enable-man=yes' || PKGMK_OSTREE+=' --enable-man=no'
|
2023-10-22 10:33:02 +02:00
|
|
|
prt-get isinst dracut && PKGMK_OSTREE+=' --with-dracut=yesbutnoconf'
|
|
|
|
prt-get isinst libsodium && PKGMK_OSTREE+=' --with-ed25519-libsodium'
|
2022-03-05 13:40:15 +01:00
|
|
|
|
2019-06-11 23:45:48 +02:00
|
|
|
cd lib$name-$version
|
2023-10-22 10:33:02 +02:00
|
|
|
|
2021-03-12 11:34:37 +00:00
|
|
|
./configure $PKGMK_OSTREE \
|
|
|
|
--prefix=/usr \
|
2019-06-11 23:45:48 +02:00
|
|
|
--libexecdir=/usr/lib/$name \
|
|
|
|
--with-openssl \
|
2023-10-22 10:33:02 +02:00
|
|
|
--with-modern-grub \
|
|
|
|
--with-grub2-mkconfig-path=/usr/bin/grub-mkconfig \
|
2019-06-11 23:45:48 +02:00
|
|
|
--enable-experimental-api \
|
|
|
|
--disable-static
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2022-03-05 13:40:15 +01:00
|
|
|
|
2023-10-22 10:33:02 +02:00
|
|
|
install -d -m0755 $PKG/etc
|
|
|
|
mv $PKG/usr/etc/grub.d $PKG/etc
|
|
|
|
|
2022-03-05 13:40:15 +01:00
|
|
|
rm -fr $PKG/usr/share/ostree/trusted.gpg.d/README-gpg
|
2019-06-11 23:45:48 +02:00
|
|
|
}
|