/[gentoo-x86]/sys-fs/zerofree/zerofree-1.0.1.ebuild
Gentoo

Contents of /sys-fs/zerofree/zerofree-1.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Aug 10 20:20:31 2014 UTC (4 years, 3 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/zerofree/zerofree-1.0.1.ebuild,v 1.3 2013/03/06 20:01:29 steev Exp $
4
5 EAPI="4"
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="Zero's out all free space on a filesystem"
9 HOMEPAGE="http://intgat.tigress.co.uk/rmy/uml/index.html"
10 SRC_URI="http://intgat.tigress.co.uk/rmy/uml/${P}.tgz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~arm ~x86 ~mips"
15 IUSE=""
16
17 DEPEND="sys-libs/e2fsprogs-libs"
18 RDEPEND="${DEPEND}"
19
20 src_prepare() {
21 # Honor system CFLAGS.
22 sed -i \
23 -e "s:CC=gcc:CC=$(tc-getCC)\nCFLAGS=${CFLAGS}\nLDFLAGS=${LDFLAGS}:g" \
24 -e "s:-o zerofree:\$(CFLAGS) \$(LDFLAGS) -o zerofree:g" \
25 -e "/-lext2fs/{ s:-lext2fs::g; s:$: -lext2fs:g; }" \
26 Makefile || die "Failed to sed the Makefile"
27 }
28
29 src_compile() {
30 # Just a Makefile, nothing fancy.
31 make || die "Failed to compile ${PN}."
32 }
33
34 src_install() {
35 # Install into /sbin
36 into /
37 dosbin zerofree
38 }

  ViewVC Help
Powered by ViewVC 1.1.20