From 83487cd5d951516ee5b0f596bf01092d0fcf127f Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Mon, 17 May 2021 13:51:08 +0200 Subject: [PATCH] Packaging --- Makefile | 5 +++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 13 +++++++++++++ debian/rules | 9 +++++++++ xerox-acct/Makefile | 4 ++++ xerox-xcpt/Makefile | 4 ++++ 7 files changed, 41 insertions(+) create mode 100644 Makefile create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100755 debian/rules diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e1491bb --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +SUBDIRS=xerox-acct xerox-xcpt +.DEFAULT_GOAL := all + +all clean install: + @for D in $(SUBDIRS) ; do make -C $$D $@ ; done diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7225711 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +kam-printing (0.1) unstable; urgency=medium + + * Initial release. + + -- Martin Mares <mj@ucw.cz> Mon, 17 May 2021 12:57:01 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..277c339 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: kam-printing +Section: unknown +Priority: optional +Maintainer: Martin Mares <mj@ucw.cz> +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.5 +Vcs-Git: https://gitlab.kam.mff.cuni.cz/wizards/kam-printing + +Package: kam-printing +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: KAM printer drivers + Printer drivers we use at KAM. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cf59ecc --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +#DH_VERBOSE = 1 + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +%: + dh $@ diff --git a/xerox-acct/Makefile b/xerox-acct/Makefile index c1d7bf3..1d99376 100644 --- a/xerox-acct/Makefile +++ b/xerox-acct/Makefile @@ -6,3 +6,7 @@ all: xerox-acct clean: rm -f `find . -name "*~" -or -name "*.[oa]" -or -name TAGS -or -name core -or -name .depend -or -name .#*` rm -f xerox-acct + +install: all + install -d $(DESTDIR)/usr/lib/cups/filter + install xerox-acct $(DESTDIR)/usr/lib/cups/filter/ diff --git a/xerox-xcpt/Makefile b/xerox-xcpt/Makefile index 49e30b6..7c08fe8 100644 --- a/xerox-xcpt/Makefile +++ b/xerox-xcpt/Makefile @@ -6,3 +6,7 @@ all: xerox-xcpt clean: rm -f `find . -name "*~" -or -name "*.[oa]" -or -name TAGS -or -name core -or -name .depend -or -name .#*` rm -f xerox-xcpt + +install: all + install -d $(DESTDIR)/usr/lib/cups/filter + install xerox-xcpt $(DESTDIR)/usr/lib/cups/filter/ -- GitLab