Debianization\!
authormdw <mdw>
Mon, 10 Nov 2003 10:02:02 +0000 (10:02 +0000)
committermdw <mdw>
Mon, 10 Nov 2003 10:02:02 +0000 (10:02 +0000)
.cvsignore
Makefile.am
debian/.cvsignore [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 3b08a19..25ce188 100644 (file)
@@ -2,3 +2,4 @@ Makefile.in
 aclocal.m4
 build
 configure
+deb-build
index d8c0a2d..7b77176 100644 (file)
@@ -1,6 +1,6 @@
 ## -*-makefile-*-
 ##
-## $Id: Makefile.am,v 1.9 2002/01/13 14:42:30 mdw Exp $
+## $Id: Makefile.am,v 1.10 2003/11/10 10:01:52 mdw Exp $
 ##
 ## Makefile for X tools
 ##
@@ -28,6 +28,9 @@
 ##----- Revision history ----------------------------------------------------
 ##
 ## $Log: Makefile.am,v $
+## Revision 1.10  2003/11/10 10:01:52  mdw
+## Debianization\!
+##
 ## Revision 1.9  2002/01/13 14:42:30  mdw
 ## New program to display messages and get answers.
 ##
@@ -63,7 +66,9 @@ GTK_PROGS = xshutdown xgetline xcatch xmsg
 bin_PROGRAMS = xwait xtell xscsize @GTK_PROGS@
 EXTRA_PROGRAMS = $(GTK_PROGS)
 man_MANS = xwait.1 xtell.1 xshutdown.1 xscsize.1 xgetline.1 xcatch.1 xmsg.1
-EXTRA_DIST = $(man_MANS)
+EXTRA_DIST = \
+       $(man_MANS) \
+       debian/rules debian/copyright debian/control debian/changelog
 
 CLEANFILES = $(GTK_PROGS)
 
diff --git a/debian/.cvsignore b/debian/.cvsignore
new file mode 100644 (file)
index 0000000..4e3ca02
--- /dev/null
@@ -0,0 +1 @@
+files *.debhelper tmp xtoys-gtk substvars *.substvars
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..26ac313
--- /dev/null
@@ -0,0 +1,5 @@
+xtoys (1.3.0) experimental; urgency=low
+
+  * Debianization!
+
+ -- Mark Wooding <mdw@nsict.org>  Sun,  9 Nov 2003 16:37:03 +0000
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..e1fd9b8
--- /dev/null
@@ -0,0 +1,31 @@
+Source: xtoys
+Section: x11
+Priority: extra
+Maintainer: Mark Wooding <mdw@nsict.org>
+Standards-Version: 3.1.1
+
+Package: xtoys
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: A collection of small X11 tools
+ We have:
+ xscsize -- reports the display size as shell variables
+ xtell -- sets a root window property to a given string
+ xwait -- waits until a root window property gets one of a set of strings,
+   which is useful in .xinitrc files if you use a flaky window manager
+
+Package: xtoys-gtk
+Architecture: any
+Depends: ${shlibs:Depends}
+Recommends: xtoys
+Description: A collection of small X11 tools
+ We have:
+ xcatch -- run a program, displaying its output in a scrolling window if
+   there is any
+ xgetline -- pops up a dialogue, reads a line of text, and reports the 
+   entered line on stdout; can do passwords, history with optional size
+   limit, or simple selection from a list
+ xmsg -- pop up a dialogue showing a message and a bunch of buttons, and
+   gets a response
+ xshutdown -- pops up a dialogue, and if confirmed, sets a root window
+   property to a given string
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..e34ed24
--- /dev/null
@@ -0,0 +1,16 @@
+xtoys is copyright (c) 2003 Straylight/Edgeware.
+
+xtoys 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.
+
+xtoys 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..e0a0e84
--- /dev/null
@@ -0,0 +1,49 @@
+#! /usr/bin/make -f
+
+build:
+       rm -rf deb-build build; mkdir deb-build
+       cd deb-build; ../configure --prefix=/usr --mandir=/usr/share/man
+       make -C deb-build
+       touch build
+
+clean:
+       dh_clean
+       rm -rf deb-build build
+
+install: build
+       dh_clean
+       for i in xscsize xwait xtell; do \
+               dh_install -p xtoys deb-build/$$i usr/bin; \
+               dh_installman -p xtoys $$i.1; \
+       done
+       for i in xcatch xgetline xmsg xshutdown; do \
+               dh_install -p xtoys-gtk deb-build/$$i usr/bin; \
+               dh_installman -p xtoys-gtk $$i.1; \
+       done
+       dh_strip -a
+
+binary-indep:
+
+binary-arch: install
+       dh_testdir -a
+       dh_testroot -a
+       dh_compress -a
+       dh_installdocs -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