From c6e78e67b8a2e4b3cf8252b31a41aedc7b5b6e6a Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sun, 12 Mar 2006 18:19:22 +0000 Subject: [PATCH] Debianization! Organization: Straylight/Edgeware From: Mark Wooding --- .gitignore | 1 + debian/.gitignore | 5 +++++ debian/changelog | 5 +++++ debian/control | 12 ++++++++++++ debian/copyright | 16 ++++++++++++++++ debian/rules | 45 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 84 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/.gitignore b/.gitignore index 3201815..815696f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ configure depcomp install-sh missing +deb-build diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..ebd629c --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,5 @@ +files +tmp +substvars +*.substvars +*.debhelper diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..712b5b5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mm (1.0.0) experimental; urgency=low + + * New project. + + -- Mark Wooding Sun, 12 Mar 2006 18:16:30 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5c51603 --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: mm +Section: games +Priority: extra +Maintainer: Mark Wooding +Standards-Version: 3.1.1 + +Package: mm +Architecture: any +Depends: ${shlibs:Depends} +Description: Mastermind game + mm plays the computer game Mastermind; it's capable of both choosing codes + and checking guesses, and guessing a human player's code (very effectively). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..911f9ee --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +mm is copyright (c) 2006 Straylight/Edgeware. + +mm is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +mm is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have a copy of the GNU General Public License in +/usr/share/common-licenses/GPL; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +USA. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..52fafc0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,45 @@ +#! /usr/bin/make -f + +export DH_COMPAT = 4 + +build: + rm -rf build deb-build + mkdir deb-build + cd deb-build; ../configure --prefix=/usr + make -C deb-build + touch build + +clean: + dh_clean + rm -rf deb-build build + +install: build + dh_clean + make -C deb-build install DESTDIR=`pwd`/debian/mm + +binary-indep: + +binary-arch: install + dh_testdir -a + dh_testroot -a + dh_compress -a + dh_installdocs -a + dh_strip -a + dh_shlibdeps -a + dh_gencontrol -a + dh_fixperms -a + dh_installdeb -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +source: + rm -rf deb-build/*.tar.gz deb-build/=deb= + make -C deb-build dist + mkdir deb-build/=deb= + cd deb-build/=deb=; tar xvfz ../*.tar.gz + d=`pwd`; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/* + rm -rf deb-build/=deb= + +.PHONY: binary binary-arch binary-indep clean install source -- [mdw]