summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2020-02-26 22:22:00 -0500
committerJoshua Kinard <kumba@gentoo.org>2020-02-26 22:22:00 -0500
commit62c1c99f07ffef5001eb361c1614ca67b4f44b3f (patch)
tree3427a0d9c7e98595da5cd062932e6960e60a9ccd /sys-fs
parentdev-util/schroot: drop old (diff)
downloadgentoo-62c1c99f07ffef5001eb361c1614ca67b4f44b3f.tar.gz
gentoo-62c1c99f07ffef5001eb361c1614ca67b4f44b3f.tar.bz2
gentoo-62c1c99f07ffef5001eb361c1614ca67b4f44b3f.zip
sys-fs/zerofree: Version bump, replace sed delimiter
- Add ebuild for zerofree-1.1.1 - Replace colon sed delimiter w/ pipe to resolve #710818 - Bump to EAPI 7 - Remove useless src_compile and use the built-in default Signed-off-by: Joshua Kinard <kumba@gentoo.org> Package-Manager: Portage-2.3.89, Repoman-2.3.20
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/zerofree/Manifest1
-rw-r--r--sys-fs/zerofree/zerofree-1.0.4.ebuild18
-rw-r--r--sys-fs/zerofree/zerofree-1.1.1.ebuild35
3 files changed, 44 insertions, 10 deletions
diff --git a/sys-fs/zerofree/Manifest b/sys-fs/zerofree/Manifest
index df3f07d3c3de..7c5efcfddaa5 100644
--- a/sys-fs/zerofree/Manifest
+++ b/sys-fs/zerofree/Manifest
@@ -1 +1,2 @@
DIST zerofree-1.0.4.tgz 8509 BLAKE2B d2d5872ad22e7c5f08e00083b0dadb5411023df9d129ec3bd08637e8a74f77f13a535e6f2c1a7cd4d390ed7a0d0b6e2433dacfa89336bb16ffb64c0d1c409929 SHA512 8172c8c43794eab1f751a700f847098343659ceabaf6ab78c3c902b34cf9b0db0dda75308b6bc80d22afccd11be25f35070ca6d715c3282c5c7c7106f598b42b
+DIST zerofree-1.1.1.tgz 8710 BLAKE2B 76a84de7db60473c8824129a29515212acc74235e2139eb15fe7f41d1801c42c85378734fdf39a668f0a4eb285c55c49ce2281dda9444b2008557897428bc645 SHA512 2d7ee57a877bff2491c48054338a26d624ae75c238ac2b0568a75de88b6621c16cc1e7d65500879825d14d8ba44a5173587a061459072769c165bee47c3f9f1c
diff --git a/sys-fs/zerofree/zerofree-1.0.4.ebuild b/sys-fs/zerofree/zerofree-1.0.4.ebuild
index dfa878927840..6e360c833a18 100644
--- a/sys-fs/zerofree/zerofree-1.0.4.ebuild
+++ b/sys-fs/zerofree/zerofree-1.0.4.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="4"
+EAPI=7
inherit eutils toolchain-funcs
-DESCRIPTION="Zero's out all free space on a filesystem"
+DESCRIPTION="Zeroes out all free space on a filesystem"
HOMEPAGE="http://frippery.org/uml/index.html"
SRC_URI="http://frippery.org/uml/${P}.tgz"
@@ -18,16 +18,14 @@ RDEPEND="${DEPEND}"
src_prepare() {
# Honor system CFLAGS.
+ # Use pipes for the sed delimiter to resolve #710818.
sed -i \
- -e "s:CC=gcc:CC=$(tc-getCC)\nCFLAGS=${CFLAGS}\nLDFLAGS=${LDFLAGS}:g" \
- -e "s:-o zerofree:\$(CFLAGS) \$(LDFLAGS) -o zerofree:g" \
- -e "/-lext2fs/{ s:-lext2fs::g; s:$: -lext2fs:g; }" \
+ -e "s|CC=gcc|CC=$(tc-getCC)\nCFLAGS=${CFLAGS}\nLDFLAGS=${LDFLAGS}|g" \
+ -e "s|-o zerofree|\$(CFLAGS) \$(LDFLAGS) -o zerofree|g" \
+ -e "/-lext2fs/{ s|-lext2fs||g; s|$| -lext2fs|g; }" \
Makefile || die "Failed to sed the Makefile"
-}
-src_compile() {
- # Just a Makefile, nothing fancy.
- make || die "Failed to compile ${PN}."
+ eapply_user
}
src_install() {
diff --git a/sys-fs/zerofree/zerofree-1.1.1.ebuild b/sys-fs/zerofree/zerofree-1.1.1.ebuild
new file mode 100644
index 000000000000..6e360c833a18
--- /dev/null
+++ b/sys-fs/zerofree/zerofree-1.1.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Zeroes out all free space on a filesystem"
+HOMEPAGE="http://frippery.org/uml/index.html"
+SRC_URI="http://frippery.org/uml/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~x86"
+IUSE=""
+
+DEPEND="sys-libs/e2fsprogs-libs"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Honor system CFLAGS.
+ # Use pipes for the sed delimiter to resolve #710818.
+ sed -i \
+ -e "s|CC=gcc|CC=$(tc-getCC)\nCFLAGS=${CFLAGS}\nLDFLAGS=${LDFLAGS}|g" \
+ -e "s|-o zerofree|\$(CFLAGS) \$(LDFLAGS) -o zerofree|g" \
+ -e "/-lext2fs/{ s|-lext2fs||g; s|$| -lext2fs|g; }" \
+ Makefile || die "Failed to sed the Makefile"
+
+ eapply_user
+}
+
+src_install() {
+ # Install into /sbin
+ into /
+ dosbin zerofree
+}