2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
|
|
|
# Contributor: judd <jvinet@zeroflux.org>
|
|
|
|
|
|
|
|
pkgbase=e2fsprogs
|
|
|
|
pkgname=('e2fsprogs' 'fuse2fs')
|
2024-05-21 19:43:11 +02:00
|
|
|
pkgver=1.47.1
|
2024-05-25 09:46:16 +02:00
|
|
|
pkgrel=4
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='Ext2/3/4 filesystem utilities'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('GPL' 'LGPL' 'MIT')
|
|
|
|
url='http://e2fsprogs.sourceforge.net'
|
2024-05-21 19:43:11 +02:00
|
|
|
makedepends=('systemd' 'util-linux' 'fuse3')
|
2022-03-20 13:19:37 +01:00
|
|
|
validpgpkeys=('3AB057B7E78D945C8C5591FBD36F769BC11804F0') # Theodore Ts'o <tytso@mit.edu>
|
|
|
|
source=("https://www.kernel.org/pub/linux/kernel/people/tytso/${pkgbase}/v${pkgver}/${pkgbase}-${pkgver}.tar."{xz,sign}
|
|
|
|
'MIT-LICENSE')
|
2024-05-21 19:43:11 +02:00
|
|
|
sha256sums=('5a33dc047fd47284bca4bb10c13cfe7896377ae3d01cb81a05d406025d99e0d1'
|
2022-03-20 13:19:37 +01:00
|
|
|
'SKIP'
|
|
|
|
'cc45386c1d71f438ad648fd7971e49e3074ad9dbacf9dd3a5b4cb61fd294ecbb')
|
|
|
|
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
# Remove unnecessary init.d directory
|
|
|
|
sed -i '/init\.d/s|^|#|' misc/Makefile.in
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
./configure \
|
2024-05-25 09:46:16 +02:00
|
|
|
--prefix='/usr' \
|
2022-03-20 13:19:37 +01:00
|
|
|
--with-root-prefix='' \
|
2024-05-25 09:46:16 +02:00
|
|
|
--libdir='/usr/lib' \
|
|
|
|
--libexecdir='/usr/lib' \
|
|
|
|
--sbindir='/usr/bin' \
|
2022-03-20 13:19:37 +01:00
|
|
|
--enable-elf-shlibs \
|
|
|
|
--disable-fsck \
|
|
|
|
--disable-uuidd \
|
|
|
|
--disable-libuuid \
|
|
|
|
--disable-libblkid
|
|
|
|
make
|
|
|
|
|
|
|
|
# regenerate locale files
|
|
|
|
find po/ -name '*.gmo' -delete
|
|
|
|
make -C po update-gmo
|
|
|
|
}
|
|
|
|
|
|
|
|
package_e2fsprogs() {
|
|
|
|
depends=('sh' 'util-linux-libs')
|
2022-06-13 19:49:19 +02:00
|
|
|
optdepends=('lvm2: for e2scrub'
|
|
|
|
'util-linux: for e2scrub'
|
|
|
|
'smtp-forwarder: for e2scrub_fail script')
|
2022-03-20 13:19:37 +01:00
|
|
|
provides=('libcom_err.so'
|
|
|
|
'libe2p.so'
|
|
|
|
'libext2fs.so'
|
|
|
|
'libss.so')
|
|
|
|
backup=('etc/mke2fs.conf'
|
|
|
|
'etc/e2scrub.conf')
|
|
|
|
|
|
|
|
unset MAKEFLAGS
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install install-libs
|
|
|
|
|
|
|
|
sed -i -e 's/^AWK=.*/AWK=awk/' "${pkgdir}/usr/bin/compile_et"
|
|
|
|
|
|
|
|
# remove references to build directory
|
2022-06-13 19:49:19 +02:00
|
|
|
sed -i -e 's#^DIR=.*#DIR="/usr/share/ss"#' "${pkgdir}/usr/bin/mk_cmds"
|
|
|
|
sed -i -e 's#^DIR=.*#DIR="/usr/share/et"#' "${pkgdir}/usr/bin/compile_et"
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
# remove static libraries with a shared counterpart
|
|
|
|
rm "${pkgdir}"/usr/lib/lib{com_err,e2p,ext2fs,ss}.a
|
|
|
|
|
|
|
|
# remove fuse2fs which will be packaged separately
|
|
|
|
rm "${pkgdir}"/usr/{bin/fuse2fs,share/man/man1/fuse2fs.1}
|
|
|
|
|
|
|
|
# install MIT license
|
|
|
|
install -D -m0644 "${srcdir}/MIT-LICENSE" \
|
|
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/MIT-LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_fuse2fs() {
|
|
|
|
pkgdesc='Ext2/3/4 filesystem driver for FUSE'
|
2024-05-21 19:43:11 +02:00
|
|
|
depends=('fuse3' 'e2fsprogs')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
install -D -m0755 'misc/fuse2fs' "${pkgdir}/usr/bin/fuse2fs"
|
|
|
|
install -D -m0644 'misc/fuse2fs.1' "${pkgdir}/usr/share/man/man1/fuse2fs.1"
|
|
|
|
mkdir -p "${pkgdir}"/usr/share/licenses
|
|
|
|
ln -s "${pkgbase}" "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
}
|