diff options
Diffstat (limited to 'sys-block/vblade')
-rw-r--r-- | sys-block/vblade/Manifest | 3 | ||||
-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, 74 insertions, 0 deletions
diff --git a/sys-block/vblade/Manifest b/sys-block/vblade/Manifest index 275187f7ed1a..8b6cf24cc33e 100644 --- a/sys-block/vblade/Manifest +++ b/sys-block/vblade/Manifest @@ -2,7 +2,10 @@ AUX conf.d-vblade 817 BLAKE2B befac1b206fa3442c5e820baff8efdf4cff443b449ae23679d AUX init.d-vblade.vblade0-r2 2909 BLAKE2B cf70ce62776c6e79c75110d4622c2913090221d336cea7674a9ba87bd4fb3ea3d7bf5e374d1b9b00693bf864573fef04de11a1b13acc8eb2087811d7fafe9a39 SHA512 1250bdefad4a6abe107d9ceb296b26204c0c9731a963a5a595e799cf2ac3eb10a2d2f48335baf55fa54d220da476e0013b4cd641d35686250794b48e81912403 AUX vblade-24-fno-common.patch 1105 BLAKE2B 1b6391626e8ca092705f3fdc35072b925d6ea0b10538fedee93e19d6f3ec6347c23b9e63a208c84fed0a09da5a3b3a36eec9ccf933772cd1fb29708c54273249 SHA512 867e31d46ce3f9633262436fca673be485045766f745ebd0607d5632213dafe17259d9f38a55a094c6dc5139d625be1855d01830c755a14c33abe34b57698db9 AUX vblade-24-makefile.patch 885 BLAKE2B 875811dfa1a75dc1f0fd809d3fc7a72ec1908b4e4d610f1e0a7d4e5813ac4c33d44a19277867c149b3103d267391a6451be98199170cd900e7fb91036d847d66 SHA512 0e7a37fe76be875dbb28337fae91aff31e6d652b112fc255cf6f8e2c22070ad6bb5dc486719af753224ea6c6a72a647e198ab8d2a0930c38ccba46a19ffa6155 +AUX vblade-25-makefile.patch 889 BLAKE2B a225637b1afdb920ebadcb9e3842b607dae9956d28c55edc58cb46263cb87e91e6ad0568e8276b66c8bb1a5d2d5bbca10bc35139b43d7bd84a3c2acb6f733856 SHA512 b76cbf984e6d91ce73a0ff1984442783dc47ea02508816cb0100f472df4527f2947999e623f9e1e3461c65df89ab29b3c4da0cb2f01eae770b01c13f604e4819 AUX vbladed 544 BLAKE2B 88badea5aad70934eb16731ea2ce93762d282193b43efd25f71b3fc2a69eb3825bcf3db9cc243fb58f38874d2c6c13ab8368817c489bd27581101ad6c1a7c908 SHA512 447dbec563f41848727fe72ff391c07136509acbb707cf427485ef9ad190ec4247d809a2d71136e8f5456cf4f1798b89c9ca4ddcc4407f71d63ad220dab37c30 DIST vblade-24.tar.gz 27638 BLAKE2B 8a99d571b3b97d47ce9c81ef8141e0d6477181e88aa56e3ea7d03c689c747a60922c21969ea009cf978a3cb15bcb969b12df50f2bd8e6bb498a8bc6d483be1d3 SHA512 d5db85581db119b83a129fc00635d37b6d8fccfaf685dc58c68773c7299f7fe4e01735ec7fea6a0494a0cf2bc1400d643a720b55e4d6de37a0b8ec15d00d1f2a +DIST vblade-25.tar.gz 32524 BLAKE2B 5bc396e5f47fa293968b58d589a9f8c5c837434abcc93be5f859047b25a5c6d3e3ecce8119f536fda222574b5b1d598a009f4ae393075c597c3f0f1f1f7ea79c SHA512 a70ee7e98a71bc2a649501c92e6c37fc0410837f5f68f9501e75b688743f0bbe2d1f93969b3a9fe068247cd49c209ba72f794dcbb68ee9d955c0f7fad774fd92 EBUILD vblade-24.ebuild 753 BLAKE2B c0fe8a2e3502fc9bbe6a02cca82628a9fe45f4117e0600e4c9bf32b3e1d32da5aeaeb188f8dc26976c617b11736b0be715c852898974c55c48755c82385ef789 SHA512 15723fc9dd17495dc7d1d7fc999f745d075e9aff25a15767f0a8219ca7d66b34ed574a25ac2b939e0221e1c6c5b05b17f584c5d260f0e1dc520601001957fcc2 +EBUILD vblade-25.ebuild 724 BLAKE2B ca43f9197fdb238f4c5904527c2412ab15fe36a091fb2e015ce7530877a6e954ac315c0407eb65534aaf9bfa69a58a073ae1a57e473441e857b62de0b5b18da5 SHA512 e72af6d4a2cd4a9349f6b17473f4828afbe3b06b2ab03ac334170ad17f5d54d157bc1f5dd05b3ecc13cb715da40a2c0acba26cd4b955242928987c1539c2d3f1 MISC metadata.xml 328 BLAKE2B b04b8d9c3016fc84883de505bb4b5fa0dd0f97d8a07c1e84995b7b2931f6b356cfb0f59b7665f7a9c63955a3ee7bae5d37379a326eafe20d58840bd236562718 SHA512 5f04425d524c4535b0b3b42a2c310afa42f09649929f08e12bb491ae808f2fb8dbd08e3c153426bdcef328291b9b19feea2c557ef0a2c6e3a98fc69824c11ca5 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 +} |