Name gpm
Description General Purpose Mouse interface
Version 1.20.7-11
Package Base
Homepage https://nico.schottelius.org/software/gpm/
Maintainers ['Axel Beckert <abe@debian.org>', 'Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Samuel Thibault <sthibault@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/gpm/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/001_missing_V_option.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/002_force_repeat_000?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/005_types_000?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/007_doc_fix_000?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/007_doc_fix_001?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/007_doc_fix_FAQ?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/010_ps2_rework.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/013_xterm_mouse_support_000?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/014_has_mouse_control.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/031_max_consoles.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/050_dont_link_libcurses?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/060_no_blocking_on_mouse_device_under_x?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/070_struct_ucred?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/080_cross-compile.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/090_linux3_versions?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/091_glibc_2.17_types?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/092_fix-format-not-a-string-literal-and-no-format-arguments.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/093_fix-typos.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/094_gpm-1.20.7-glibc-2.26-1.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/095_fix-compilation-with-gcc-10.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/096_fix-compilation-against-musl-libc.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/097-implicit?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpm/plain/debian/watch?h=ubuntu/noble']
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 noble
Licenses []
Hash 2c521e416dd6fc39115648dec7b7d3a6395c09aca4687025ac3c39b6f585c383
#!/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