# Template file for 'xfsdump' pkgname=xfsdump version=3.1.6 revision=1 build_style=gnu-configure configure_args="--sbindir=/usr/bin" makedepends="libuuid-devel ncurses-devel xfsprogs-devel attr-devel" short_desc="XFS filesystem incremental dump/restore utility" maintainer="Christian Neukirchen " license="LGPL-2.1" homepage="http://oss.sgi.com/projects/xfs/" distfiles="ftp://oss.sgi.com/projects/xfs/cmd_tars/${pkgname}-${version}.tar.gz" checksum=7f78c11ca527477d90e5e62b0778f3ad96f2b71c19173044e9aca9515fff42d0 post_extract() { case "$XBPS_TARGET_MACHINE" in *-musl) sed -i -e 's/SIGCLD/SIGCHLD/g' \ -e 's/RLIM64_INFINITY/RLIM_INFINITY/g' \ common/main.c sed -i -e 's/constpp/& const/' common/types.h sed -i -e '1i#include ' invutil/invutil.c librmt/rmtioctl.c */inv_fstab.c */content.c */inv_idx.c */inv_mgr.c */inv_stobj.c sed -i -e '1i#include ' invutil/invidx.c sed -i -e '1i#include ' common/drive.c sed -i -e '1i#include ' */var.c sed -i -e '1i#include ' common/drive_*.c common/global.c sed -i -e '1i#include ' */content.c sed -i -e 's,sys/signal,signal,' librmt/rmtopen.c sed -i -e 's/__uint32_t/uint32_t/g' */*.h esac } post_install() { mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin rm -rf ${DESTDIR}/usr/share/doc/ }