wok-6.x rev 25561
created recipe for ext4magic
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 30 06:26:09 2023 +0100 (19 months ago) |
parents | 9600878fc758 |
children | 64e725df93c0 |
files | ext4magic/receipt ext4magic/stuff/patches/ext4magic-0.3.2-i_dir_acl.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ext4magic/receipt Sun Apr 30 06:26:09 2023 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ext4magic" 1.7 +VERSION="0.3.2" 1.8 +CATEGORY="system-tools" 1.9 +TAGS="recover" 1.10 +SHORT_DESC="Recover deleted or overwritten files on ext3 and ext4 filesystems." 1.11 +MAINTAINER="maintainer@slitaz.org" 1.12 +LICENSE="GPL2+" 1.13 +WEB_SITE="https://sourceforge.net/projects/ext4magic" 1.14 + 1.15 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.17 + 1.18 +DEPENDS="e2fsprogs file zlib" 1.19 +BUILD_DEPENDS="e2fsprogs e2fsprogs-dev file libmagic-dev 1.20 + util-linux-blkid-dev util-linux-uuid-dev zlib-dev" 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + patch --strip=1 \ 1.26 + --input=$stuff/patches/ext4magic-$VERSION-i_dir_acl.patch 1.27 + export LIBS="$LIBS /usr/lib/libext2fs.so.2" 1.28 + 1.29 + ./configure \ 1.30 + --prefix=/usr && 1.31 + make && 1.32 + make install 1.33 +} 1.34 + 1.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 +genpkg_rules() 1.37 +{ 1.38 + cook_copy_folders sbin 1.39 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/ext4magic/stuff/patches/ext4magic-0.3.2-i_dir_acl.patch Sun Apr 30 06:26:09 2023 +0100 2.3 @@ -0,0 +1,29 @@ 2.4 +From: Gokturk Yuksek <gokturk@gentoo.org> 2.5 +Subject: [PATCH] src/inode: supersede i_dir_acl with i_size_high 2.6 + 2.7 +The upstream has removed the macro that defined i_dir_acl as 2.8 +i_size_high which causes a build failure with the later versions of 2.9 +e2fsprogs. Replace every reference to inode->i_dir_acl with 2.10 +inode->i_size_high. 2.11 + 2.12 +[0] https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=578fcbfd2e61e0b13ce8c7b62804c941d6c1eb8e 2.13 + 2.14 +--- a/src/inode.c 2.15 ++++ b/src/inode.c 2.16 +@@ -404,14 +404,14 @@ 2.17 + fprintf(out, 2.18 + "%sFile ACL: %d Directory ACL: %d Translator: %d\n", 2.19 + prefix, 2.20 +- inode->i_file_acl, LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0, 2.21 ++ inode->i_file_acl, LINUX_S_ISDIR(inode->i_mode) ? inode->i_size_high : 0, 2.22 + inode->osd1.hurd1.h_i_translator); 2.23 + else 2.24 + fprintf(out, "%sFile ACL: %llu Directory ACL: %d\n", 2.25 + prefix, 2.26 + inode->i_file_acl | ((long long) 2.27 + (inode->osd2.linux2.l_i_file_acl_high) << 32), 2.28 +- LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0); 2.29 ++ LINUX_S_ISDIR(inode->i_mode) ? inode->i_size_high : 0); 2.30 + if (os == EXT2_OS_LINUX) 2.31 + fprintf(out, "%sLinks: %d Blockcount: %llu\n", 2.32 + prefix, inode->i_links_count,