diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-06-18 01:17:51 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-06-18 01:20:10 +0200 |
commit | a49812e7bf4df3e98a90f29c7a0423812a6e6003 (patch) | |
tree | ff615705f4f12301a7e2ada6a1f5910b5d0c9da2 /sys-block/vblade | |
parent | dev-libs/userspace-rcu: bump to v0.13.0 (diff) | |
download | gentoo-a49812e7bf4df3e98a90f29c7a0423812a6e6003.tar.gz gentoo-a49812e7bf4df3e98a90f29c7a0423812a6e6003.tar.bz2 gentoo-a49812e7bf4df3e98a90f29c7a0423812a6e6003.zip |
sys-block/vblade: bump to v25
Closes: https://bugs.gentoo.org/763015
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'sys-block/vblade')
-rw-r--r-- | sys-block/vblade/Manifest | 1 | ||||
-rw-r--r-- | sys-block/vblade/files/vblade-25-makefile.patch | 36 | ||||
-rw-r--r-- | sys-block/vblade/vblade-25.ebuild | 35 |
3 files changed, 72 insertions, 0 deletions
diff --git a/sys-block/vblade/Manifest b/sys-block/vblade/Manifest index 6fe4544157fd..68b547c16204 100644 --- a/sys-block/vblade/Manifest +++ b/sys-block/vblade/Manifest @@ -1 +1,2 @@ DIST vblade-24.tar.gz 27638 BLAKE2B 8a99d571b3b97d47ce9c81ef8141e0d6477181e88aa56e3ea7d03c689c747a60922c21969ea009cf978a3cb15bcb969b12df50f2bd8e6bb498a8bc6d483be1d3 SHA512 d5db85581db119b83a129fc00635d37b6d8fccfaf685dc58c68773c7299f7fe4e01735ec7fea6a0494a0cf2bc1400d643a720b55e4d6de37a0b8ec15d00d1f2a +DIST vblade-25.tar.gz 32524 BLAKE2B 5bc396e5f47fa293968b58d589a9f8c5c837434abcc93be5f859047b25a5c6d3e3ecce8119f536fda222574b5b1d598a009f4ae393075c597c3f0f1f1f7ea79c SHA512 a70ee7e98a71bc2a649501c92e6c37fc0410837f5f68f9501e75b688743f0bbe2d1f93969b3a9fe068247cd49c209ba72f794dcbb68ee9d955c0f7fad774fd92 diff --git a/sys-block/vblade/files/vblade-25-makefile.patch b/sys-block/vblade/files/vblade-25-makefile.patch new file mode 100644 index 000000000000..072c963b1c39 --- /dev/null +++ b/sys-block/vblade/files/vblade-25-makefile.patch @@ -0,0 +1,36 @@ +--- a/makefile ++++ b/makefile +@@ -9,29 +9,23 @@ sharedir = ${prefix}/share + mandir = ${sharedir}/man + + O=aoe.o bpf.o ${PLATFORM}.o ata.o dat.o +-CFLAGS += -Wall -g -O2 -fno-common +-CC = gcc ++CFLAGS += -Wall + + vblade: $O +- ${CC} -o vblade $O ++ ${CC} ${LDFLAGS} -o vblade $O ${LIBS} + + aoe.o : aoe.c config.h dat.h fns.h makefile +- ${CC} ${CFLAGS} -c $< + + ${PLATFORM}.o : ${PLATFORM}.c config.h dat.h fns.h makefile +- ${CC} ${CFLAGS} -c $< + + ata.o : ata.c config.h dat.h fns.h makefile +- ${CC} ${CFLAGS} -c $< + + bpf.o : bpf.c +- ${CC} ${CFLAGS} -c $< + + dat.o : dat.c +- ${CC} ${CFLAGS} -c $< + + config.h : config/config.h.in makefile +- @if ${CC} ${CFLAGS} config/u64.c > /dev/null 2>&1; then \ ++ @if ${CC} ${CFLAGS} ${CPPFLAGS} config/u64.c > /dev/null 2>&1; then \ + sh -xc "cp config/config.h.in config.h"; \ + else \ + sh -xc "sed 's!^//u64 !!' config/config.h.in > config.h"; \ + diff --git a/sys-block/vblade/vblade-25.ebuild b/sys-block/vblade/vblade-25.ebuild new file mode 100644 index 000000000000..040f3e71f420 --- /dev/null +++ b/sys-block/vblade/vblade-25.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="vblade exports a block device using AoE" +HOMEPAGE="https://github.com/OpenAoE/vblade" +SRC_URI="https://github.com/OpenAoE/${PN}/archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +RDEPEND="sys-apps/util-linux" + +S="${WORKDIR}/${PN}-${P}" + +PATCHES=( "${FILESDIR}"/vblade-25-makefile.patch ) + +src_configure() { + tc-export CC +} + +src_install() { + dosbin vblade + dosbin "${FILESDIR}"/vbladed + + doman vblade.8 + dodoc HACKING NEWS README + + newconfd "${FILESDIR}"/conf.d-vblade vblade + newinitd "${FILESDIR}"/init.d-vblade.vblade0-r2 vblade.vblade0 +} |