commit 7abc0e9c8c3f363d16fdb8d9df6c31fb0a61cc00 Author: Jay Larson Date: Thu Jan 11 22:51:11 2018 -0600 First check in diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8046253 --- /dev/null +++ b/Makefile @@ -0,0 +1,70 @@ +# 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://lse.sourceforge.net/io/aio.html +REPO = main +BRIEF = Linux asynchornous I/O support +DESC = AIO enables even a single application thread to overlap I/O \ +operations with other processing +SNAPVER = 0 + +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) + +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)/binfile: $(SRCDIR)/Makefile + @cd $(SRCDIR) && \ + for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \ + patch --verbose -Np1 -i $$patch; \ + done + + @cd $(SRCDIR) && make + +$(ROOT): $(SRCDIR)/binfile + @if [ -d $(ROOT) ]; then \ + touch $(ROOT); \ + else \ + mkdir -v $(ROOT); \ + fi + + @cd $(SRCDIR) && make install DESTDIR=$(ROOT) + +test: $(ROOT) + @cd $(SRCDIR); \ + make check + +clean: + @rm -rvf $(ROOT) \ + $(SNAPINFO) \ + $(MANIFEST) \ + $(FILES) \ + $(SRCDIR) + diff --git a/SNAP/README b/SNAP/README new file mode 100644 index 0000000..cb756b1 --- /dev/null +++ b/SNAP/README @@ -0,0 +1,5 @@ +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. Any other files that need +to be included could also be placed here. diff --git a/SRC/libaio_0.3.110-3.dsc b/SRC/libaio_0.3.110-3.dsc new file mode 100644 index 0000000..bbc993a --- /dev/null +++ b/SRC/libaio_0.3.110-3.dsc @@ -0,0 +1,45 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +Format: 3.0 (quilt) +Source: libaio +Binary: libaio1, libaio1-udeb, libaio-dev +Architecture: linux-any +Version: 0.3.110-3 +Maintainer: Guillem Jover +Homepage: https://fedorahosted.org/releases/l/i/libaio/ +Standards-Version: 3.9.8 +Vcs-Browser: https://git.hadrons.org/cgit/debian/pkgs/libaio.git +Vcs-Git: https://git.hadrons.org/git/debian/pkgs/libaio.git +Build-Depends: debhelper (>= 9.20150811) +Package-List: + libaio-dev deb libdevel optional arch=linux-any + libaio1 deb libs optional arch=linux-any + libaio1-udeb udeb debian-installer optional arch=linux-any +Checksums-Sha1: + f8f6ed15f22e528f6f415939b07854539e3360e4 42270 libaio_0.3.110.orig.tar.gz + 4f55c59abab10af409d1774a01d2a09f562bd315 19480 libaio_0.3.110-3.debian.tar.xz +Checksums-Sha256: + e019028e631725729376250e32b473012f7cb68e1f7275bfc1bbcdd0f8745f7e 42270 libaio_0.3.110.orig.tar.gz + e0c1b4f82ef446f80c977c47b9d1f7321c9325cce5a70aea5352aac980918d3a 19480 libaio_0.3.110-3.debian.tar.xz +Files: + 2a35602e43778383e2f4907a4ca39ab8 42270 libaio_0.3.110.orig.tar.gz + eace37d575f15587d5a64cbb00d8c35f 19480 libaio_0.3.110-3.debian.tar.xz + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBCgAGBQJXTgkjAAoJELlyvz6krlejr5AP/R0AaRRwpQ7OooloOlR2nkdh +Xo9/BLStT4NQSRvBa2/cHeI6eAuiut4efpvug382ab97h/06Qfcc75CwOMFZfpQr +o6L35GDc6ixSE2T4eOBsAF/ZHh8ytX26kGqMIjsR3L8c4Nctktltpu5+F2MuLMdi +oUMd36wTS1Vk6hT/zUO2BF3aiu4KP0cCUnfPO1S5veHAemAI/2B2n/NBigvfpvKa +L7zJeC0osp2ipCnQX3iDNkGMU49CllmhsJIkJ+CnYsfujIa9VtGL9Ckmga/W21o1 +RTB+xlf9RJp7HaS8/tpLmNuH21iwKEObG9PDqwb+e6+erGqs37Zm+OOmpIGia0SB +cRmZmfSwFdNM0fPJztHMC3U8qg9KpEd0UL6J+eSM4ziWbGkLvkXBVuWgvrtBa5xA +CILSxLhOekpxdEkXpMPgLOzI/v3nFttAm4BVvsp7vARNkzEwsIZe4BtbCyf2zoFj +BV0dOehIjqq5cW1+u4+6JVyAouVS5F8WR5WTFjLm9F1SjyFRfMx1F5vDnnUgIoAy +0QJ8u7ZVDSJS1IC87K4gpBbWiVqaxG379o0cDrGNpQz4fsMxkuy3HpGahRHExwYW +rbfk+a4+LdY4VolXUM8eHRoZNRTW2M91gF4NCD4yiyG2tDRhCjZTohGvhVukQMNp +1GQk7vT67+xdss7etWad +=jOYb +-----END PGP SIGNATURE----- diff --git a/SRC/libaio_0.3.110.orig.tar.gz b/SRC/libaio_0.3.110.orig.tar.gz new file mode 100644 index 0000000..e0d2f49 Binary files /dev/null and b/SRC/libaio_0.3.110.orig.tar.gz differ diff --git a/SRC/patches/01_destdir.patch b/SRC/patches/01_destdir.patch new file mode 100644 index 0000000..5f8170d --- /dev/null +++ b/SRC/patches/01_destdir.patch @@ -0,0 +1,12 @@ +diff -Naur a/Makefile b/Makefile +--- a/Makefile 2014-01-24 10:01:02.000000000 -0600 ++++ b/Makefile 2018-01-11 21:17:38.739182303 -0600 +@@ -5,7 +5,7 @@ + CVSTAG = $(NAME)_$(subst .,-,$(VERSION))_$(subst .,-,$(RELEASE)) + RPMBUILD=$(shell `which rpmbuild >&/dev/null` && echo "rpmbuild" || echo "rpm") + +-prefix=/usr ++prefix=$(DESTDIR)/usr + includedir=$(prefix)/include + libdir=$(prefix)/lib + diff --git a/SRC/patches/README b/SRC/patches/README new file mode 100644 index 0000000..976577a --- /dev/null +++ b/SRC/patches/README @@ -0,0 +1,3 @@ +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.