Name tar-scripts
Description optional scripts for GNU version of the tar archiving utility
Version 1.35+dfsg-3.1
Package Base tar
Homepage https://www.gnu.org/software/tar/
Maintainers ['Janos Lenart <ocsi@debian.org>']
Contributors ['Carl Worth <cworth@cworth.org>']
Distro-repo https://salsa.debian.org/debian/tar
Sources ['https://sources.debian.org/data/main/t/tar/1.35+dfsg-3.1/debian/watch', 'https://sources.debian.org/src/tar/1.35+dfsg-3.1/debian/patches/exclude17.patch', 'https://sources.debian.org/src/tar/1.35+dfsg-3.1/debian/patches/exclude18.patch', 'https://sources.debian.org/src/tar/1.35+dfsg-3.1/debian/patches/listed03-linux-only', 'https://sources.debian.org/src/tar/1.35+dfsg-3.1/debian/patches/oldgnu-unknown-mode-bits.patch', 'https://sources.debian.org/src/tar/1.35+dfsg-3.1/debian/patches/pristine-tar.diff', 'https://sources.debian.org/src/tar/1.35+dfsg-3.1/debian/patches/proper_it_translation.patch', 'https://sources.debian.org/src/tar/1.35+dfsg-3.1/debian/patches/series', 'https://sources.debian.org/src/tar/1.35+dfsg-3.1/debian/patches/tar-1.35-revert-fix-savannah-bug-633567.patch']
Dependencies ['tar']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'dh-exec', 'gettext', 'autoconf', 'automake', 'autopoint', 'bison', 'libacl1-dev', 'libselinux1-dev [linux-any]']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 8c2a46ee7829071a2693c554abdd3af2d109cd5f80b745f765c2d70b132e8a5e
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = future=+lfs
export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-analyzer-null-argument

%:
	dh $@

override_dh_clean:
	-mv debian/testsuite.orig tests/testsuite
	dh_clean

override_dh_auto_configure:
	dh_auto_configure -- \
		RSH="/usr/bin/rsh" \
		--libexecdir=/usr/sbin \
		--enable-backup-scripts \
		--with-lzma=xz \
		--disable-silent-rules

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
	@runas=`whoami` ; \
	if test $$runas = "root" ; \
	then \
	  echo "Sorry, but the test suite is not designed to be run as root."; \
	  exit 1 ;\
	fi
	cp tests/testsuite debian/testsuite.orig
	dh_auto_test
endif
endif

override_dh_install:
	dh_install
	cp doc/rmt.8 debian/rmt-tar.8

override_dh_installdocs:
	cp -a ChangeLog.1 debian/changelog.1
	dh_installdocs