wok view dislocker/receipt @ rev 24334
polkit: CVE-2021-4034
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 11:07:11 2022 +0000 (2022-01-28) |
parents | 5ea0ce1cecc0 |
children | 0beaafd8d345 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dislocker"
4 VERSION="0.7.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Read/write BitLocker encrypted volumes under Linux"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/Aorimn/dislocker"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Aorimn/dislocker/archive/v$VERSION.tar.gz"
14 DEPENDS="fuse mbedtls"
15 BUILD_DEPENDS="cmake mbedtls-dev fuse-dev patch attr"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 compile_rules() {
24 # Fix v0.7 upstream path error
25 sed -i 's/DIS_MAN \${PROJECT_SOURCE_DIR}/DIS_MAN ../' src/CMakeLists.txt
27 cp $stuff/manpage/* man/linux/
29 patch -p1 -i $stuff/fix-spelling.patch
31 cmake \
32 -DCMAKE_INSTALL_PREFIX=/usr \
33 -Dlibdir=/usr/lib \
34 -D WARN_FLAGS:STRING="-Wall -Wextra" \
35 . &&
36 make &&
37 make DESTDIR=$install install || return 1
39 mkdir -p $install/usr/share/doc/$PACKAGE-$VERSION/
40 cp README.md CHANGELOG.md $install/usr/share/doc/$PACKAGE-$VERSION/
42 mkdir -p $install/usr/share/man/man1/
43 cp man/linux/dislocker-bek.1 man/linux/dislocker-metadata.1 \
44 $install/usr/share/man/man1/
45 }
47 genpkg_rules() {
48 mkdir -p $fs/usr/
49 cp -a $install/usr/bin/ $install/usr/lib/ $fs/usr/
50 }