mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-18 23:27:01 +02:00
zfs: do not ship autotools cache, ship initramfs-tools
This commit is contained in:
parent
e409ea0c81
commit
1500836df5
1 changed files with 4 additions and 19 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'zfs'
|
||||
pkgname=zfs
|
||||
version=2.1.6
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-config=user --with-mounthelperdir=/usr/bin
|
||||
--with-udevdir=/usr/lib/udev --with-udevruledir=/usr/lib/udev/rules.d
|
||||
|
@ -26,19 +26,9 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|||
makedepends+=" libatomic-devel"
|
||||
fi
|
||||
|
||||
post_patch() {
|
||||
# When collecting a "clean" tree for DKMS, don't leave patches in place
|
||||
local _f
|
||||
for _f in "${XBPS_SRCPKGDIR}/${pkgname}"/patches/*.patch; do
|
||||
rm -f "${_f##*/}"
|
||||
done
|
||||
}
|
||||
|
||||
pre_configure() {
|
||||
export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/tirpc/"
|
||||
autoreconf -fi
|
||||
|
||||
tar czf ../clean.tar.gz .
|
||||
}
|
||||
|
||||
post_install() {
|
||||
|
@ -48,13 +38,13 @@ post_install() {
|
|||
|
||||
vsv zed
|
||||
|
||||
vmkdir usr/src/${pkgname}-${version}
|
||||
tar xf ../clean.tar.gz -C ${DESTDIR}/usr/src/${pkgname}-${version}
|
||||
make dist-gzip
|
||||
vmkdir usr/src/
|
||||
tar xf ${pkgname}-${version}.tar.gz -C ${DESTDIR}/usr/src/
|
||||
scripts/dkms.mkconf -v ${version} -f ${DESTDIR}/usr/src/${pkgname}-${version}/dkms.conf -n zfs
|
||||
|
||||
# Remove init and service control pieces not used in Void
|
||||
rm -rf ${DESTDIR}/usr/lib/systemd
|
||||
rm -rf ${DESTDIR}/usr/share/initramfs-tools
|
||||
rm -rf ${DESTDIR}/etc/init.d
|
||||
rm -rf ${DESTDIR}/etc/default
|
||||
rm -f ${DESTDIR}/etc/zfs/zfs-functions
|
||||
|
@ -89,11 +79,6 @@ zfs-pam_package() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
do_clean() {
|
||||
rm -f ../clean.tar.gz
|
||||
}
|
||||
|
||||
# REMARKS:
|
||||
# Did not split out pyzfs, because it's distributed with zfs, and no reason to
|
||||
# send separately.
|
||||
|
|
Loading…
Add table
Reference in a new issue