Name tar-scripts
Description optional scripts for GNU version of the tar archiving utility
Version 1.35+dfsg-3build1
Package Base tar
Homepage https://www.gnu.org/software/tar/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Carl Worth <cworth@cworth.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/tar/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/tar-scripts/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tar/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tar/plain/debian/patches/exclude17.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tar/plain/debian/patches/exclude18.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tar/plain/debian/patches/listed03-linux-only?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tar/plain/debian/patches/oldgnu-unknown-mode-bits.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tar/plain/debian/patches/pristine-tar.diff?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tar/plain/debian/patches/proper_it_translation.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tar/plain/debian/patches/series?h=ubuntu/noble']
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 noble
Licenses []
Hash a7c1f09588b73bf83d05019d488d605d4b99ef4de47057c41fb780fbba022805
#!/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