Debianization! debian debian/debian
authorMark Wooding <mdw@distorted.org.uk>
Sun, 12 Mar 2006 18:19:22 +0000 (18:19 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 12 Mar 2006 18:19:22 +0000 (18:19 +0000)
.gitignore
debian/.gitignore [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index 3201815..815696f 100644 (file)
@@ -6,3 +6,4 @@ configure
 depcomp
 install-sh
 missing
+deb-build
diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644 (file)
index 0000000..ebd629c
--- /dev/null
@@ -0,0 +1,5 @@
+files
+tmp
+substvars
+*.substvars
+*.debhelper
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..712b5b5
--- /dev/null
@@ -0,0 +1,5 @@
+mm (1.0.0) experimental; urgency=low
+
+  * New project.
+
+ -- Mark Wooding <mdw@distorted.org.uk>  Sun, 12 Mar 2006 18:16:30 +0000
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..5c51603
--- /dev/null
@@ -0,0 +1,12 @@
+Source: mm
+Section: games
+Priority: extra
+Maintainer: Mark Wooding <mdw@distorted.org.uk>
+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 (file)
index 0000000..911f9ee
--- /dev/null
@@ -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 (executable)
index 0000000..52fafc0
--- /dev/null
@@ -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