diff --git a/debian/.gitignore b/debian/.gitignore index 7d33b0f40..3e8e3662f 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -17,6 +17,7 @@ quakeforge-oss quakeforge-sdl quakeforge-servers quakeforge-sgl +quakeforge-stub quakeforge-svga quakeforge-utils quakeforge-x11 diff --git a/debian/control b/debian/control index abe84d711..1cad4cc40 100644 --- a/debian/control +++ b/debian/control @@ -29,6 +29,17 @@ Description: QuakeForge 3D game engine - common files This package contains files and shared libraries common to all QuakeForge packages. +Package: quakeforge-stub +Provides: quake-game +Architecture: any +Description: QuakeForge 3D game engine - common files + QuakeForge is a source port of Quake and QuakeWorld, the successors to id + Software's very popular DOOM series. Its primary development goal is to + remain compatible with the original games released by id Software while + adding portability and optional extensions to enhance gameplay. + . + This sub-package provides the quake-game pseudo package. + Package: quakeforge-dev Architecture: any Depends: quakeforge-common diff --git a/debian/quakeforge-stub.postinst b/debian/quakeforge-stub.postinst new file mode 100644 index 000000000..7d15e011f --- /dev/null +++ b/debian/quakeforge-stub.postinst @@ -0,0 +1,11 @@ +#!/bin/sh -e + +if test ! -f /usr/share/games/quakeforge/id1/pak0.pak; then + echo Warning: /usr/share/games/quakeforge/id1/pak0.pak not found + echo Install either the shareware or registered quake data in + echo /usr/share/games/quakeforge +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules index 2f19a41b0..35b010741 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,7 @@ export DH_COMPAT=2 PACKAGE := quakeforge QFCC := qfcc common := $(PACKAGE)-common +stub := $(PACKAGE)-stub maptools := $(PACKAGE)-maptools dev := $(PACKAGE)-dev @@ -81,6 +82,7 @@ install: build # Add here commands to install the package into debian/tmp. $(MAKE) DESTDIR=$(build) install install -m644 -D debian/quakeforge.conf $(build)/etc/quakeforge.conf + mkdir $(build)/usr/share/games/quakeforge/id1 # quakeforge-common find $(tmp)/etc ! -type d | sed -e "s:^$(tmp)::" > debian/$(common).conffiles @@ -106,6 +108,9 @@ install: build dh_installdocs -p$(common) NEWS TODO dh_installchangelogs -p$(common) ChangeLog + # quakeforge-stub + install -d -m755 debian/$(stub)/usr/share/games/quakeforge/id1 + # quakeforge-dev dh_movefiles -p$(dev) --sourcedir=$(tmp) \ usr/lib/libQFcd.*a \