parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 945979a011e8035ffdff04dde6c4e08983df9ecd
parent 3a5a263756df7257e68b727423cd2dbefe0f60c6
Author: parazyd <parazyd@dyne.org>
Date:   Thu,  6 Oct 2016 16:15:15 +0200

app-misc/wipe: Add 2.3.1-r99 with musl-libc support.

Diffstat:
Aapp-misc/wipe/Manifest | 1+
Aapp-misc/wipe/files/fix-musl-build.patch | 14++++++++++++++
Aapp-misc/wipe/files/wipe-2.3.1-LDFLAGS.patch | 19+++++++++++++++++++
Aapp-misc/wipe/wipe-2.3.1-r99.ebuild | 41+++++++++++++++++++++++++++++++++++++++++
4 files changed, 75 insertions(+), 0 deletions(-)

diff --git a/app-misc/wipe/Manifest b/app-misc/wipe/Manifest @@ -0,0 +1 @@ +DIST wipe-2.3.1.tar.bz2 72297 SHA256 463916370f9b35bb34419c2c0ae3dc4c0a471db32e8595afa1d14c0337b61aa0 SHA512 63870e68fa5dbf90abb686052f8dcc216ccb93b0c4f5cc10d60ccf43f3606ba91b46dc1e3d8b34d201f7ea657f70b45a61d5d04facf5b2a3e47d2286c46e7110 WHIRLPOOL ed86197371451d0b7f9a0b635ac085c2376217f06fee09ce1aa0443e8515fcb9a4fe3098a19eb0f2e55cd1b79589af49798d6f44ab1ea99f2cdc8104ee4142f8 diff --git a/app-misc/wipe/files/fix-musl-build.patch b/app-misc/wipe/files/fix-musl-build.patch @@ -0,0 +1,14 @@ +diff -uNr wipe-2.3.1.org/rand.h wipe-2.3.1/rand.h +--- wipe-2.3.1.org/rand.h 2003-12-03 04:01:02.000000000 +0100 ++++ wipe-2.3.1/rand.h 2016-01-31 21:39:54.000000000 +0100 +@@ -22,10 +22,9 @@ + + #ifdef HAVE_STDINT_H + # include "stdint.h" +-#else +-# ifndef LINUX ++#endif ++#if !defined(u_int32_t) + # define u_int32_t uint32_t +-# endif + #endif diff --git a/app-misc/wipe/files/wipe-2.3.1-LDFLAGS.patch b/app-misc/wipe/files/wipe-2.3.1-LDFLAGS.patch @@ -0,0 +1,19 @@ +--- wipe-2.3.1/Makefile.in ++++ wipe-2.3.1/Makefile.in +@@ -5,6 +5,7 @@ + + CC=@CC@ + CFLAGS=@CFLAGS@ -I@srcdir@ -D@OSTYPE@ $(DEFINES) ++LDFLAGS=@LDFLAGS@ + DEBUG=@DEBUG@ -I@srcdir@ -D@OSTYPE@ $(DEFINES) + + LIBS=@LIBS@ +@@ -31,7 +32,7 @@ + all: $(REQ) $(BIN) + + $(BIN): main.o wipe.o rand.o dir.o file.o blkdev.o lock.o text.o str.o percent.o prompt.o io.o mt.o +- $(CC) $(LIBS) *.o -o $@ ++ $(CC) $(LIBS) *.o -o $@ $(LDFLAGS) + + + # restores everything to a pre-configured state diff --git a/app-misc/wipe/wipe-2.3.1-r99.ebuild b/app-misc/wipe/wipe-2.3.1-r99.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +inherit autotools eutils + +DESCRIPTION="Secure file wiping utility based on Peter Gutman's patterns" +HOMEPAGE="http://wipe.sourceforge.net/" +SRC_URI="mirror://sourceforge/wipe/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/fix-musl-build.patch + epatch "${FILESDIR}"/${P}-LDFLAGS.patch + eautoreconf +} + +src_compile() { + emake CFLAGS="${CFLAGS}" || die +} + +src_install() { + dobin wipe || die + doman wipe.1 || die + dodoc CHANGES README TODO TESTING || die +} + +pkg_postinst() { + elog "Note that wipe is useless on journaling filesystems," + elog "such as reiserfs, XFS, or ext3." + elog "See documentation for more info." +}