Name gpm
Description General Purpose Mouse interface
Version 1.20.7-11
Package Base gpm
Homepage https://nico.schottelius.org/software/gpm/
Maintainers ['Axel Beckert <abe@debian.org>']
Contributors ['Samuel Thibault <sthibault@debian.org>']
Distro-repo https://salsa.debian.org/debian/gpm
Sources ['https://sources.debian.org/data/main/g/gpm/1.20.7-11/debian/watch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/001_missing_V_option.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/002_force_repeat_000', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/005_types_000', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/007_doc_fix_000', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/007_doc_fix_001', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/007_doc_fix_FAQ', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/010_ps2_rework.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/013_xterm_mouse_support_000', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/014_has_mouse_control.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/031_max_consoles.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/050_dont_link_libcurses', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/060_no_blocking_on_mouse_device_under_x', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/070_struct_ucred', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/080_cross-compile.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/090_linux3_versions', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/091_glibc_2.17_types', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/092_fix-format-not-a-string-literal-and-no-format-arguments.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/093_fix-typos.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/094_gpm-1.20.7-glibc-2.26-1.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/095_fix-compilation-with-gcc-10.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/096_fix-compilation-against-musl-libc.patch', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/097-implicit', 'https://sources.debian.org/src/gpm/1.20.7-11/debian/patches/series']
Dependencies ['debconf', 'init-system-helpers', 'libc6', 'libgpm2', 'ucf']
Optional-Dependencies []
Build-Dependencies ['bison', 'debhelper-compat', 'dh-exec', 'mawk | awk', 'texinfo']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash e6c5fd0e376597d2153166bc1b5701270f69596382ce78e36e11ba031d65e003
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

lib := usr/lib/$(DEB_HOST_MULTIARCH)

%:
	dh $@

override_dh_update_autotools_config:
	./autogen.sh
	dh_update_autotools_config

override_dh_auto_configure:
	dh_auto_configure -- --without-curses

override_dh_auto_build:
	# for gpm_has_mouse_control
	dh_auto_build -Dcontrib/control
	dh_auto_build

override_dh_auto_clean:
	# for gpm_has_mouse_control
	if [ -d contrib/control ]; then dh_auto_clean -Dcontrib/control; fi

	# Needs to be removed before dh_auto_clean is called, so
	# adding to debian/clean does not suffice.
	rm -f Makefile

	dh_auto_clean

checkpo:
	debconf-updatepo
	@for i in debian/po/*.po; do \
	  echo -n "Checking: $$i "; \
	  msgfmt -o /dev/null -c --statistics $$i; \
	done

override_dh_auto_install:
	mkdir -p debian/libgpm2/$(lib)

	mkdir -p debian/libgpm-dev/$(lib)
	ln -s libgpm.so.2 debian/libgpm-dev/$(lib)/libgpm.so

override_dh_installsystemd:
	# Restart or not is handled via debconf in postinst
	dh_installsystemd --no-restart-on-upgrade

override_dh_installinit:
	# Restart or not is handled via debconf in postinst
	dh_installinit --no-stop-on-upgrade