From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sys-fs/mhddfs/Manifest | 6 ++ .../files/mhddfs-respect-compiler-vars.patch | 66 ++++++++++++++++++++++ sys-fs/mhddfs/metadata.xml | 8 +++ sys-fs/mhddfs/mhddfs-0.1.39.ebuild | 46 +++++++++++++++ 4 files changed, 126 insertions(+) create mode 100644 sys-fs/mhddfs/Manifest create mode 100644 sys-fs/mhddfs/files/mhddfs-respect-compiler-vars.patch create mode 100644 sys-fs/mhddfs/metadata.xml create mode 100644 sys-fs/mhddfs/mhddfs-0.1.39.ebuild (limited to 'sys-fs/mhddfs') diff --git a/sys-fs/mhddfs/Manifest b/sys-fs/mhddfs/Manifest new file mode 100644 index 000000000000..981d77c97a33 --- /dev/null +++ b/sys-fs/mhddfs/Manifest @@ -0,0 +1,6 @@ +AUX mhddfs-respect-compiler-vars.patch 1557 SHA256 25f6711b312f931de1f72b81ffa579a0d0e6426eebd30296d9e8d7808471e39e SHA512 8a52b4e4cfd2e619285a99f548374b83b85408584a4be7e7691fbc423b1ea29d482e299d4ed72027b4f571d53457d0d2b1d409f1a515157c9923a7e06bbd90b6 WHIRLPOOL 9522fe3985cb988a472b07d3f6ed29317ec004306e8010591bd1289d309f6bc1be6b3abd2764f6deec873242b153f4a6ebd585bbd9f8587b8bacc4c8f5a5ccd4 +DIST mhddfs_0.1.39.tar.gz 40665 SHA256 702fc5486460c1828898426b1935179ce60bc1ed16fc8bc575c9ec1d12acef91 SHA512 cf1952e665e82a92ccfef9215d4faf78cd235566b67e6ebc3a60ab53089d9391bc41a08e6b203ad052e4a08bdd14428f2d9abe48f341aeb0c80ae1da80f83f89 WHIRLPOOL 8bad918dbfe9862620b1a26f106740b66af0ddd86b078d776e4f671f21399e225876f6b98edafe4165e97c85d9eda4b6f5abe27eb71740341b4606ac864ff5e4 +EBUILD mhddfs-0.1.39.ebuild 1034 SHA256 e82691170a806aedf11f3e12a7c7ae8cbdcfe0b4dca5dfbe44e248a3f99833d7 SHA512 a0aeadb72340b6929083539a603319cd90f40172a8cae3f79f0ade5c4d22c8fbe88837a135a2dbb7d76c5bc648fa9dcd9032af595294e5cf40343f4bf0b9e85d WHIRLPOOL c3a3e1485d9d298d5a3fe345923930b97e71455ef703e1062abe54aba8adb05860701f75a72ef1a1cb4139c38832dc5716bef463ae3b5322bb1c77bb90aef77e +MISC ChangeLog 2354 SHA256 4d08f2e08ef91e0a418a6329369751e3497590b3e48b9b494492941aae196fce SHA512 9b89b625454659309d5fb15af6558eb640c61ececdf8e3d6c39a534016c0bd03c0aad25aaed2bf94f251dfcc77cc62133fcb5f42b65a3fe9f3e1fb1c5da1ac58 WHIRLPOOL b3ad205a4f79ceccb17e91d35a46ee505bf296ba04eb6c0943bf91e64fffa5c0133aebffac58a1b05ac18ab341409bb3db0617766c7bb19587ee20ffef6d239a +MISC ChangeLog-2015 1545 SHA256 eca12e7cd572f91b7f1341b5cbb20528a2c546fc75a7f76dfcd06352ffa5c720 SHA512 7731c6f6cf1a015a8735678690354d2dbe6c8c5f63097b577a395affe509824a5421a0cb4a880a906cb8b4732a5d5faba439fa5b216591ea9540b15e48fc8047 WHIRLPOOL 1856b49f8ec94d54a12a2634f555b6825e3ef67698f23a0a5e26a8a74d19f8395eff2428d884d0aadc5e28178664ac1b1d99ad16190613b717c456bb6a0895ad +MISC metadata.xml 247 SHA256 fb925313d1ae70feaa6db91150f34a2157b48e884e8f47d773640af149e3744b SHA512 96c55c2979dd6a4c4761fce9b5a0be387b11fcf197ef903d8680ae82f01a2caea93b1238bed1ac96d3eb250744e2149a507e0424ac017b4324f0806a54e72c4a WHIRLPOOL 142b4295733faec48b0ca9eb6d3561799ff743481aabf2b74ecf6d717d972b4961979c7b6bf32b9840cb34e47d22fe2befb9b0ef8ec0d3f28f6416069128d3c7 diff --git a/sys-fs/mhddfs/files/mhddfs-respect-compiler-vars.patch b/sys-fs/mhddfs/files/mhddfs-respect-compiler-vars.patch new file mode 100644 index 000000000000..331bb7c23f60 --- /dev/null +++ b/sys-fs/mhddfs/files/mhddfs-respect-compiler-vars.patch @@ -0,0 +1,66 @@ +--- Makefile.orig 2012-11-19 15:25:21.665692111 +0400 ++++ Makefile 2012-11-19 15:27:08.406691288 +0400 +@@ -22,13 +22,13 @@ + + TARGET = mhddfs + +-CFLAGS = -Wall $(shell pkg-config fuse --cflags) \ ++CFLAGS += -Wall $(shell pkg-config fuse --cflags) \ + -DFUSE_USE_VERSION=26 -MMD + ifdef WITHOUT_XATTR + CFLAGS += -DWITHOUT_XATTR + endif + +-LDFLAGS = $(shell pkg-config fuse --libs) ++LIBS = $(shell pkg-config fuse --libs) + + FORTAR = src COPYING LICENSE README Makefile \ + README.ru.UTF-8 ChangeLog mhddfs.1 \ +@@ -64,14 +64,14 @@ + $(shell rpm --eval '%_rpmdir')/*/mhddfs-*$(VERSION)-$(RELEASE)* . + + $(TARGET): obj/obj-stamp $(OBJ) +- gcc $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) $(LIBS) -o $@ + + obj/obj-stamp: + mkdir -p obj + touch $@ + + obj/%.o: src/%.c +- gcc $(CFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) -c $< -o $@ + + clean: + rm -fr obj $(TARGET) pwrite_test statvfs rename +@@ -79,7 +79,7 @@ + rm -fr rename-test/mnt + + rename: tests/rename.c +- gcc -o $@ $< ++ $(CC) -o $@ $< + + release_svn_thread: + @echo current version $(VERSION) +@@ -94,10 +94,10 @@ + screen -t vim vim Makefile src/*.[ch] README* ChangeLog mhddfs.1 + + pwrite_test: src/test/pwrite.c +- gcc -o $@ $< ++ $(CC) -o $@ $< + + statvfs: src/test/statvfs.c +- gcc -o $@ $< ++ $(CC) -o $@ $< + + images-mount: test1.img test2.img + mount|grep -q `pwd`/test1 || sudo mount -o loop test1.img test1 +@@ -141,7 +141,7 @@ + while make test; do echo ok; echo; done + + ptest: +- gcc -o $@ tests/plocks.c -l pthread ++ $(CC) -o $@ tests/plocks.c -l pthread + -./$@ + rm -f $@ + diff --git a/sys-fs/mhddfs/metadata.xml b/sys-fs/mhddfs/metadata.xml new file mode 100644 index 000000000000..5b159fbcadd1 --- /dev/null +++ b/sys-fs/mhddfs/metadata.xml @@ -0,0 +1,8 @@ + + + + + pinkbyte@gentoo.org + Sergey Popov + + diff --git a/sys-fs/mhddfs/mhddfs-0.1.39.ebuild b/sys-fs/mhddfs/mhddfs-0.1.39.ebuild new file mode 100644 index 000000000000..79fe6fb79f89 --- /dev/null +++ b/sys-fs/mhddfs/mhddfs-0.1.39.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit base eutils toolchain-funcs + +MY_P="${PN}_${PV}" + +DESCRIPTION="Fuse multi harddrive filesystem" +HOMEPAGE="http://mhddfs.uvw.ru/ http://svn.uvw.ru/mhddfs/trunk/README" +SRC_URI="http://mhddfs.uvw.ru/downloads/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64" +IUSE="l10n_ru suid" + +RDEPEND=">=sys-fs/fuse-2.7.0" +DEPEND="${RDEPEND} + dev-libs/uthash" + +DOCS="ChangeLog README" +PATCHES=( "${FILESDIR}/${PN}-respect-compiler-vars.patch" ) + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin mhddfs + doman mhddfs.1 + dodoc ${DOCS} + use l10n_ru && dodoc README.ru.UTF-8 + use suid && fperms u+s /usr/bin/${PN} +} + +pkg_postinst() { + if use suid; then + ewarn + ewarn "You have chosen to install ${PN} with the binary setuid root. This" + ewarn "means that if there any undetected vulnerabilities in the binary," + ewarn "then local users may be able to gain root access on your machine." + ewarn + fi +} -- cgit v1.2.3