debian/files
debian/gaise
debian/substvars.*
+gaise-*.tar.gz
$(INSTALL) -m 755 noipv6 $(bindir)/noipv6
$(INSTALL) -m 755 noipv4 $(bindir)/noipv4
$(INSTALL) -m 644 ${MODULE} $(libdir)/gaise/${MODULE}
- #$(INSTALL) -m 644 noipv6.1 $(man1dir)/noipv6
- #$(INSTALL) -m 644 noipv4.1 $(man1dir)/noipv4
+ $(INSTALL) -m 644 noipv6.1 $(man1dir)/noipv6.1
+ $(INSTALL) -m 644 noipv4.1 $(man1dir)/noipv4.1
install-strip: install
--- /dev/null
+Gaise
+=====
+
+ Gaise consists of a pair of programs, noipv4 and noipv6, which
+ suppress IPv4 and IPv6 addresses in getaddrinfo() responses. The
+ idea is to force the use IPv6 or IPv4 connectivity even when the
+ other is available.
+
+ To install:
+
+ make
+ sudo make install
+
+Licence
+=======
+
+ Copyright © 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA
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
+ gzip -9 debian/gaise/usr/share/man/man*/*
strip --strip-unneeded \
--remove-section=.comment \
debian/gaise/usr/lib/gaise/gaise.so
--- /dev/null
+.TH noipv4 1
+.SH NAME
+noipv4 \- run a program with IPv4 address suppressed
+.SH SYNOPSIS
+.B noipv4
+.RB [ -- ]
+.I COMMAND
+.IR ARGS ...
+.SH DESCRIPTION
+.B noipv4
+runs a program with any IPv4 responses to
+.BR getaddrinfo (3)
+calls suppressed.
+The effect is that (subject to the caveats below) it will always IPv6
+connectivity instead of IPv4 connectivity.
+.SH OPTIONS
+.TP
+.B -h
+.TP
+.B --help
+Display usage message.
+.TP
+.B -V
+.TP
+.B --version
+Display version string.
+.SH LIMITATIONS
+.B noipv4
+only intercepts calls to
+.B getaddrinfo (3).
+Any program that uses other means of mapping hostnames to addresses
+will not be affected.
+.PP
+.B noipv4
+does not work on setuid or setgid programs.
--- /dev/null
+.TH noipv6 1
+.SH NAME
+noipv6 \- run a program with IPv6 address suppressed
+.SH SYNOPSIS
+.B noipv6
+.RB [ -- ]
+.I COMMAND
+.IR ARGS ...
+.SH DESCRIPTION
+.B noipv6
+runs a program with any IPv6 responses to
+.BR getaddrinfo (3)
+calls suppressed.
+The effect is that (subject to the caveats below) it will always IPv4
+connectivity instead of IPv6 connectivity.
+.SH OPTIONS
+.TP
+.B -h
+.TP
+.B --help
+Display usage message.
+.TP
+.B -V
+.TP
+.B --version
+Display version string.
+.SH LIMITATIONS
+.B noipv6
+only intercepts calls to
+.B getaddrinfo (3).
+Any program that uses other means of mapping hostnames to addresses
+will not be affected.
+.PP
+.B noipv6
+does not work on setuid or setgid programs.