commit 083c6c149f6dc9aec8a88dd3ecbc35d88f58b226 Author: Jay Larson Date: Wed Sep 28 09:38:56 2016 -0500 First check in diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3dd466a --- /dev/null +++ b/Makefile @@ -0,0 +1,68 @@ +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation here: +# (http://www.gnu.org/licenses/gpl-2.0.html) +# +# 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. + +DEPENDS = +ARCH = x86_64 +URL = http://ftp.debian.org/debian/pool/main/w/whois/ +DESC = client for the whois directory service +SNAPVER = sr0 + +ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) +TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') +SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') +PATCHDIR := $(PWD)/SRC/patches +VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER) + +MAKE = make +MAKEINST = BASEDIR=$(ROOT) make install-whois && \ + BASEDIR=$(ROOT) make install-mkpasswd && \ + BASEDIR=$(ROOT) make install-pos +SNAPHACKS = + +include /usr/share/snap/Makefile.snaplinux + +$(SRCDIR)/Makefile: $(ARCHIVE) + @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ + tar -jxf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-gzip' ]; then \ + tar -zxf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-tar' ]; then \ + tar -xf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-xz' ]; then \ + tar -xf $(ARCHIVE); \ + else \ + echo 'Unable to determine archive type'; \ + exit 1; \ + fi + @touch $(SRCDIR)/Makefile + +$(SRCDIR)/mkpasswd: $(SRCDIR)/Makefile + @cd $(SRCDIR); \ + $(MAKE) + +$(ROOT): $(SRCDIR)/mkpasswd + @if [ -d $(ROOT) ]; then \ + touch $(ROOT); \ + else \ + mkdir -v $(ROOT); \ + fi + + @cd $(SRCDIR); \ + BASEDIR=$(ROOT) $(MAKEINST) + + @$(SNAPHACKS) + +clean: + @rm -rvf $(ROOT) \ + $(SNAPINFO) \ + $(MANIFEST) \ + $(FILES) \ + $(SRCDIR) + diff --git a/SNAP/README b/SNAP/README new file mode 100644 index 0000000..19a3ff1 --- /dev/null +++ b/SNAP/README @@ -0,0 +1,3 @@ +This is the directory where the manifest, snapinfo, and files.tar.gz +files will be created. It is also where the usher file should be +placed if it is required by the package. diff --git a/SRC/patches/README b/SRC/patches/README new file mode 100644 index 0000000..253cdcd --- /dev/null +++ b/SRC/patches/README @@ -0,0 +1,2 @@ +Place any patch files here and preface each with a number indicating +the order of execution. Patch files are expected to use a .patch extension. diff --git a/SRC/whois_5.2.12.dsc b/SRC/whois_5.2.12.dsc new file mode 100644 index 0000000..9a03403 --- /dev/null +++ b/SRC/whois_5.2.12.dsc @@ -0,0 +1,36 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +Format: 3.0 (native) +Source: whois +Binary: whois +Architecture: any +Version: 5.2.12 +Maintainer: Marco d'Itri +Standards-Version: 3.9.7 +Vcs-Browser: https://github.com/rfc1036/whois +Vcs-Git: git://github.com/rfc1036/whois.git +Build-Depends: debhelper (>= 5), gettext, libidn11-dev +Package-List: + whois deb net standard arch=any +Checksums-Sha1: + b74d5647f14e56bbe8ab945aee2be74781e2d683 80428 whois_5.2.12.tar.xz +Checksums-Sha256: + b26d4027b8987d9911466aa06ce2c167a50017cd59a622a429bd506222f6cdf1 80428 whois_5.2.12.tar.xz +Files: + b8f1482827137788016a418cc1ae364b 80428 whois_5.2.12.tar.xz + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQGcBAEBAgAGBQJW+ffoAAoJECv1pcEixPek9CkMAIH5kV9vS3PJoSIpatgaZnud +GiVqRLUS1uQ4GeGA1aAs1/vMTUAwdYR5Ftg/mxlEKNGDe1M64xBS3UOByFM1G+vc +xY71npmQwB3lGMp+m++su2RbiZiex26q7DzqtaPJ766gydqaIQTwaYVSJNmFSmRL ++UVsR7ywUPpHFYkhKB70QgWmB87lkkfPKo4GFkAxvAASsiR+Ppnydz+h5SS0mpBI +WI4z1JtkjHpKwjeI76wNUZIS01/7a+9xYp16HBOzdDi1VCncsGnz7i8cbWcwbpAc +06PjkhqI5cZb1btiHantFcotE9gzlWMZcvwGSmH06+I/zCzfuT4WT1F79DxBXl5c +eK+cXdL/WfF9TZA8kQu14OfZ9F0IjAppB7BkypFgrQC3WiuX16JselDGfIPa3tW8 +hgajr6XcVAn2NgclAgYciv+ygl7I2HWz25D8wOuKWVEW7+meAjKYBeXszRijMviM +Q3nMsJxruKb5ncqdNoL0eA57E0fn04sl+5rbnXe8Eg== +=c2i+ +-----END PGP SIGNATURE----- diff --git a/SRC/whois_5.2.12.tar.xz b/SRC/whois_5.2.12.tar.xz new file mode 100644 index 0000000..15537a0 Binary files /dev/null and b/SRC/whois_5.2.12.tar.xz differ