chiark / gitweb /
Debianize
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 6 Feb 2011 13:37:53 +0000 (13:37 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 6 Feb 2011 13:37:53 +0000 (13:37 +0000)
.gitignore
Makefile
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 61b78d7..2249ffa 100644 (file)
@@ -3,3 +3,6 @@
 *.so
 noipv6
 noipv4
+debian/files
+debian/gaise
+debian/substvars.*
index 41451ba..7300e02 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -63,6 +63,8 @@ clean:
        rm -f noipv6
        rm -f noipv4
 
+distclean: clean
+
 dist:
        rm -rf gaise-${VERSION}
        mkdir gaise-${VERSION}
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..ec9b9fe
--- /dev/null
@@ -0,0 +1,6 @@
+gaise (0.1) unstable; urgency=low
+
+  * Initial Debianization
+
+ -- Richard Kettlewell <rjk@greenend.org.uk>  Sun, 06 Feb 2011 13:34:55 +0000
+
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..a1ca74e
--- /dev/null
@@ -0,0 +1,14 @@
+Source: gaise
+Maintainer: Richard Kettlewell <richard+autoztool@sfere.greenend.org.uk>
+Priority: optional
+Standards-Version: 3.0.1.0
+Vcs-Git: http://www.greenend.org.uk/rjk/git/gaise
+
+Package: gaise
+Architecture: any
+Section: utils
+Depends: ${shlibs:Depends}
+Description: Suppress IPv6 addresses
+ Provides the noipv6 and noipv4 commands, which suppress IPv6 and IPv4
+ results (respectively) from getaddrinfo() calls.  This allows you
+ force program to use IPv4 even in full IPv6 environment.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..5b196f7
--- /dev/null
@@ -0,0 +1,19 @@
+
+Copyright (C) 2011 Richard Kettlewell
+
+This program 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.
+
+This program 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 received a copy of the GNU General Public License along
+with this program; if not, write to the Free Software Foundation, Inc.,
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+On Debian systems, look in /usr/share/common-licenses/GPL-2 for a copy
+of the GPL.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..c41fd3c
--- /dev/null
@@ -0,0 +1,49 @@
+#! /usr/bin/make -f
+#
+
+INSTALL=install
+CHANGELOG=changelog
+
+build:
+       $(MAKE) prefix=/usr
+
+cleanpkg-gaise:
+       rm -rf debian/gaise
+
+pkg-gaise:
+       rm -rf debian/gaise
+       mkdir -p debian/gaise
+       mkdir -p debian/gaise/DEBIAN
+       mkdir -p debian/gaise/usr/share/doc/gaise
+       cp debian/copyright \
+               debian/gaise/usr/share/doc/gaise/copyright
+       cp debian/changelog \
+               debian/gaise/usr/share/doc/gaise/${CHANGELOG}
+       gzip -9 debian/gaise/usr/share/doc/gaise/${CHANGELOG}
+       mkdir -p debian/gaise/usr/bin
+       mkdir -p debian/gaise/usr/lib/gaise
+       mkdir -p debian/gaise/usr/share/man/man1
+       $(MAKE) install prefix=debian/gaise/usr mandir=debian/gaise/usr/share/man
+       strip --strip-unneeded \
+               --remove-section=.comment \
+               debian/gaise/usr/lib/gaise/gaise.so
+       dpkg-shlibdeps -Tdebian/substvars.gaise \
+               debian/gaise/usr/lib/gaise/*
+       dpkg-gencontrol -isp -pgaise -Pdebian/gaise -Tdebian/substvars.gaise
+       cd debian/gaise && \
+               find -name DEBIAN -prune -o -type f -print \
+                       | sed 's/^\.\///' \
+                       | xargs md5sum > DEBIAN/md5sums
+       chown -R root:root debian/gaise
+       chmod -R g-ws debian/gaise
+       dpkg --build debian/gaise ..
+
+
+binary: binary-arch binary-indep
+binary-arch:  pkg-gaise
+binary-indep: 
+
+clean:  cleanpkg-gaise
+       $(MAKE) distclean
+       rm -f debian/files
+       rm -f debian/substvars