summaryrefslogtreecommitdiff
path: root/sys-fs/zerofree
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/zerofree')
-rw-r--r--sys-fs/zerofree/Manifest4
-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, 46 insertions, 11 deletions
diff --git a/sys-fs/zerofree/Manifest b/sys-fs/zerofree/Manifest
index 3888a6708490..db4708c50241 100644
--- a/sys-fs/zerofree/Manifest
+++ b/sys-fs/zerofree/Manifest
@@ -1,3 +1,5 @@
DIST zerofree-1.0.4.tgz 8509 BLAKE2B d2d5872ad22e7c5f08e00083b0dadb5411023df9d129ec3bd08637e8a74f77f13a535e6f2c1a7cd4d390ed7a0d0b6e2433dacfa89336bb16ffb64c0d1c409929 SHA512 8172c8c43794eab1f751a700f847098343659ceabaf6ab78c3c902b34cf9b0db0dda75308b6bc80d22afccd11be25f35070ca6d715c3282c5c7c7106f598b42b
-EBUILD zerofree-1.0.4.ebuild 861 BLAKE2B bc5383fc06935a407d40ea50f3f4d9fcdc9a2c16def3e1ac7ad44340da48816a8b1da70893957c64aec41091a43f8d273bbdd3c9dc4854c5063d26f5d3e711b5 SHA512 a361784571dc37461898e5df9c94c69f63e65938f240ce4bee0c1c552c5c4a808b1f6089e457404134dcf778754bc0754fe23cfa41482329fbf8dbb7ed7770ad
+DIST zerofree-1.1.1.tgz 8710 BLAKE2B 76a84de7db60473c8824129a29515212acc74235e2139eb15fe7f41d1801c42c85378734fdf39a668f0a4eb285c55c49ce2281dda9444b2008557897428bc645 SHA512 2d7ee57a877bff2491c48054338a26d624ae75c238ac2b0568a75de88b6621c16cc1e7d65500879825d14d8ba44a5173587a061459072769c165bee47c3f9f1c
+EBUILD zerofree-1.0.4.ebuild 834 BLAKE2B 798366afa40e3a98e4ebc5b49e1158a459c2dc8c6542e8db42d2c028850fd548609b4c44c1641793997290b4c9a9cd60cfba3722834dee7b590aa31e0532ab87 SHA512 ebe03d80d9fd66c3c1003292ad24fc43c28bb4f4286382a3f986d06fe813173f0c811ce23015ba114c337e0f040092039c938d49893e4d19b479851b03a79d9d
+EBUILD zerofree-1.1.1.ebuild 834 BLAKE2B 798366afa40e3a98e4ebc5b49e1158a459c2dc8c6542e8db42d2c028850fd548609b4c44c1641793997290b4c9a9cd60cfba3722834dee7b590aa31e0532ab87 SHA512 ebe03d80d9fd66c3c1003292ad24fc43c28bb4f4286382a3f986d06fe813173f0c811ce23015ba114c337e0f040092039c938d49893e4d19b479851b03a79d9d
MISC metadata.xml 433 BLAKE2B aa623f9df641917cb34f2a028d4db98e33b241e89b94ac424045fb053bbe16b124f62329394d30cb6163689f8716a1eef4697115648f06f9834ee41c2914ae26 SHA512 c454915a2972c289341df97d9d8cb9bf26ea2f4c00ba4555a2d14e69e8f48f7bc8fc33c404ad19c175ff7e96900f3cead4dbaf32b0c36981c8a4926212a017e8
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
+}