* [gentoo-commits] repo/gentoo:master commit in: app-arch/qpress/files/, app-arch/qpress/
@ 2017-03-22 11:23 Patrice Clement
0 siblings, 0 replies; 3+ messages in thread
From: Patrice Clement @ 2017-03-22 11:23 UTC (permalink / raw
To: gentoo-commits
commit: db85f6bd42f42c0a1aec62ae080faf3fafaf6598
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Tue Mar 21 11:28:25 2017 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Mar 22 11:22:09 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db85f6bd
app-arch/qpress: new package.
This package required as runtime dependency for dev-db/percona-xtrabackup.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/4270
app-arch/qpress/Manifest | 1 +
app-arch/qpress/files/makefile | 6 ++++++
app-arch/qpress/metadata.xml | 15 +++++++++++++++
app-arch/qpress/qpress-1.1.ebuild | 26 ++++++++++++++++++++++++++
4 files changed, 48 insertions(+)
diff --git a/app-arch/qpress/Manifest b/app-arch/qpress/Manifest
new file mode 100644
index 00000000000..1a77e8d1d80
--- /dev/null
+++ b/app-arch/qpress/Manifest
@@ -0,0 +1 @@
+DIST qpress-11-source.zip 26998 SHA256 4bb66b1383bbc4c5490eec6088d37109e11205fb9f94ccd04cb84ec069829633 SHA512 986754cca8bb2cdcfc7e197f7e123c6b2da90db840642a6385f14613f49f7ec6b2c18944838405fe35d5382d71fcd5d69050a036dda4c5de2e588d144e16ea6b WHIRLPOOL b8ee4274da850091dfc2be520870530f9d1208f1791d5649df6856dfa2e7e6a500e1cc9c08cbcb64160f4a40137676af6d1820b862112e878f191da21d7f60fd
diff --git a/app-arch/qpress/files/makefile b/app-arch/qpress/files/makefile
new file mode 100644
index 00000000000..63c1f91b394
--- /dev/null
+++ b/app-arch/qpress/files/makefile
@@ -0,0 +1,6 @@
+CXX ?= g++
+CXXFLAGS ?= -O3
+LIBS=-lpthread
+
+qpress:
+ $(CXX) $(CXXFLAGS) qpress.cpp aio.cpp quicklz.c utilities.cpp -o $@ $(LIBS)
diff --git a/app-arch/qpress/metadata.xml b/app-arch/qpress/metadata.xml
new file mode 100644
index 00000000000..f326e2195f0
--- /dev/null
+++ b/app-arch/qpress/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>azamat.hackimov@gmail.com</email>
+ <name>Azamat H. Hackimov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ A portable file archiver using QuickLZ algorithm.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-arch/qpress/qpress-1.1.ebuild b/app-arch/qpress/qpress-1.1.ebuild
new file mode 100644
index 00000000000..e7787c7973a
--- /dev/null
+++ b/app-arch/qpress/qpress-1.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A portable file archiver using QuickLZ algorithm"
+HOMEPAGE="http://www.quicklz.com/"
+SRC_URI="http://www.quicklz.com/${PN}-${PV/./}-source.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ default
+
+ # Fix compilation with newer gcc
+ sed -i '1i #include <unistd.h>' qpress.cpp || die
+ cp "${FILESDIR}/makefile" "${S}" || die
+}
+
+src_install() {
+ dobin ${PN}
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-arch/qpress/files/, app-arch/qpress/
@ 2019-08-28 9:11 David Seifert
0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2019-08-28 9:11 UTC (permalink / raw
To: gentoo-commits
commit: cf6fb2cbf01ace6e0fce246abbb284e65d6ec814
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 28 09:11:01 2019 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Aug 28 09:11:01 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf6fb2cb
app-arch/qpress: Port to EAPI 7
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: David Seifert <soap <AT> gentoo.org>
app-arch/qpress/files/makefile | 6 ------
.../qpress/files/qpress-1.1-fix-build-system.patch | 7 +++++++
app-arch/qpress/files/qpress-1.1-fix-includes.patch | 7 +++++++
app-arch/qpress/qpress-1.1.ebuild | 20 +++++++++++++-------
4 files changed, 27 insertions(+), 13 deletions(-)
diff --git a/app-arch/qpress/files/makefile b/app-arch/qpress/files/makefile
deleted file mode 100644
index 63c1f91b394..00000000000
--- a/app-arch/qpress/files/makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-CXX ?= g++
-CXXFLAGS ?= -O3
-LIBS=-lpthread
-
-qpress:
- $(CXX) $(CXXFLAGS) qpress.cpp aio.cpp quicklz.c utilities.cpp -o $@ $(LIBS)
diff --git a/app-arch/qpress/files/qpress-1.1-fix-build-system.patch b/app-arch/qpress/files/qpress-1.1-fix-build-system.patch
new file mode 100644
index 00000000000..b6f7c0f2841
--- /dev/null
+++ b/app-arch/qpress/files/qpress-1.1-fix-build-system.patch
@@ -0,0 +1,7 @@
+--- a/makefile
++++ b/makefile
+@@ -1,2 +1 @@
+-g++: qpress.cpp aio.cpp quicklz.c utilities.cpp
+- g++ -O3 -o qpress qpress.cpp aio.cpp quicklz.c utilities.cpp -lpthread
+\ No newline at end of file
++qpress: aio.o quicklz.o utilities.o
diff --git a/app-arch/qpress/files/qpress-1.1-fix-includes.patch b/app-arch/qpress/files/qpress-1.1-fix-includes.patch
new file mode 100644
index 00000000000..51bfee465aa
--- /dev/null
+++ b/app-arch/qpress/files/qpress-1.1-fix-includes.patch
@@ -0,0 +1,7 @@
+--- a/qpress.cpp
++++ b/qpress.cpp
+@@ -1,3 +1,4 @@
++#include <unistd.h>
+ /*
+ qpress - portable high-speed file archiver
+ Copyright Lasse Reinhold 2006-2010
diff --git a/app-arch/qpress/qpress-1.1.ebuild b/app-arch/qpress/qpress-1.1.ebuild
index e7787c7973a..21904daf9eb 100644
--- a/app-arch/qpress/qpress-1.1.ebuild
+++ b/app-arch/qpress/qpress-1.1.ebuild
@@ -1,7 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
+
+inherit toolchain-funcs
DESCRIPTION="A portable file archiver using QuickLZ algorithm"
HOMEPAGE="http://www.quicklz.com/"
@@ -11,14 +13,18 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+BDEPEND="app-arch/unzip"
+
S="${WORKDIR}"
-src_prepare() {
- default
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1-fix-includes.patch
+ "${FILESDIR}"/${PN}-1.1-fix-build-system.patch
+)
- # Fix compilation with newer gcc
- sed -i '1i #include <unistd.h>' qpress.cpp || die
- cp "${FILESDIR}/makefile" "${S}" || die
+src_configure() {
+ tc-export CC CXX
+ export LDLIBS="-lpthread"
}
src_install() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-arch/qpress/files/, app-arch/qpress/
@ 2022-12-09 6:54 Joonas Niilola
0 siblings, 0 replies; 3+ messages in thread
From: Joonas Niilola @ 2022-12-09 6:54 UTC (permalink / raw
To: gentoo-commits
commit: f046a0bd4a5220df8394193834dffe017c43df76
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Sat Nov 26 13:11:35 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Dec 9 06:53:59 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f046a0bd
app-arch/qpress: add 20220819 version
Switch to new upstream, fix security issue CVE-2022-45866.
Bug: https://bugs.gentoo.org/882781
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
app-arch/qpress/Manifest | 1 +
.../files/qpress-20220819-fix-build-system.patch | 40 ++++++++++++++++++++++
app-arch/qpress/metadata.xml | 3 ++
app-arch/qpress/qpress-20220819.ebuild | 21 ++++++++++++
4 files changed, 65 insertions(+)
diff --git a/app-arch/qpress/Manifest b/app-arch/qpress/Manifest
index 012e32d902a3..ef01d19079e1 100644
--- a/app-arch/qpress/Manifest
+++ b/app-arch/qpress/Manifest
@@ -1 +1,2 @@
DIST qpress-11-source.zip 26998 BLAKE2B 08dd943f248f7211e8588fbaf7a2c2eee988d33b17aebfb5f1178647d80314fde576caec9b4aab67d69689f5931d086f88fd51204c1df6d3abc2cca583830380 SHA512 986754cca8bb2cdcfc7e197f7e123c6b2da90db840642a6385f14613f49f7ec6b2c18944838405fe35d5382d71fcd5d69050a036dda4c5de2e588d144e16ea6b
+DIST qpress-20220819.tar.gz 25150 BLAKE2B e19a2bca747ec48507288b1b1ad8e053cfb35558f5936dff4ff83c548a3ab613a640813fc3b793e7acb1b65f371af414635d7e469e92c014b580efce4f84ee90 SHA512 f9cf4f87c25fdaa9b8ed12bbfb8d95c3036a7c5c1a0548042ba460b79787a83d5cd2ad93f2da84e5b6715ade5e137024541a3f29e076d4236d0507e2c604113c
diff --git a/app-arch/qpress/files/qpress-20220819-fix-build-system.patch b/app-arch/qpress/files/qpress-20220819-fix-build-system.patch
new file mode 100644
index 000000000000..79676f57664d
--- /dev/null
+++ b/app-arch/qpress/files/qpress-20220819-fix-build-system.patch
@@ -0,0 +1,40 @@
+From 1627b18fdf76e978bdd05b985eb6efb1286fa1da Mon Sep 17 00:00:00 2001
+From: Davide Cavalca <dcavalca@fedoraproject.org>
+Date: Thu, 24 Nov 2022 16:13:30 -0800
+Subject: [PATCH] Rework makefile to ease packaging
+
+---
+ makefile | 22 +++++++++++++++++-----
+ 1 file changed, 17 insertions(+), 5 deletions(-)
+
+diff --git a/makefile b/makefile
+index 4890f9d..349fbb2 100755
+--- a/makefile
++++ b/makefile
+@@ -1,9 +1,21 @@
+-PREFIX = /usr/local
++DESTDIR ?=
++PREFIX ?= /usr/local
++CXX ?= g++
++CXXFLAGS ?= -O3
++CXXFLAGS += -Wall -Wextra -Werror
++LDFLAGS ?=
+
+-g++: qpress.cpp aio.cpp quicklz.c utilities.cpp
+- g++ -O3 -o qpress -x c quicklz.c -x c++ qpress.cpp aio.cpp utilities.cpp -lpthread -Wall -Wextra -Werror
++qpress: qpress.cpp aio.cpp quicklz.c utilities.cpp
++ $(CXX) $(CXXFLAGS) -o qpress -x c quicklz.c -x c++ qpress.cpp aio.cpp utilities.cpp -lpthread $(LDFLAGS)
+
+ install: qpress
+- install -m 0755 qpress $(PREFIX)/bin
++ install -D -p -m 0755 -t $(DESTDIR)$(PREFIX)/bin qpress
+
+-.PHONY: install g++
++clean:
++ rm -f qpress
++
++all: qpress
++
++g++: qpress
++
++.PHONY: clean install
diff --git a/app-arch/qpress/metadata.xml b/app-arch/qpress/metadata.xml
index c10db277fd54..ff29f9711f94 100644
--- a/app-arch/qpress/metadata.xml
+++ b/app-arch/qpress/metadata.xml
@@ -9,4 +9,7 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
+ <upstream>
+ <remote-id type="github">PierreLvx/qpress</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/app-arch/qpress/qpress-20220819.ebuild b/app-arch/qpress/qpress-20220819.ebuild
new file mode 100644
index 000000000000..c7327d69a530
--- /dev/null
+++ b/app-arch/qpress/qpress-20220819.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A portable file archiver using QuickLZ algorithm"
+HOMEPAGE="https://github.com/PierreLvx/qpress"
+SRC_URI="https://github.com/PierreLvx/qpress/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-1 GPL-2 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-build-system.patch"
+)
+
+src_install() {
+ dobin qpress
+ dodoc readme.md
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-09 6:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-22 11:23 [gentoo-commits] repo/gentoo:master commit in: app-arch/qpress/files/, app-arch/qpress/ Patrice Clement
-- strict thread matches above, loose matches on Subject: below --
2019-08-28 9:11 David Seifert
2022-12-09 6:54 Joonas Niilola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox