diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-fs/cachefilesd |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-fs/cachefilesd')
-rw-r--r-- | sys-fs/cachefilesd/Manifest | 12 | ||||
-rw-r--r-- | sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild | 56 | ||||
-rw-r--r-- | sys-fs/cachefilesd/cachefilesd-0.10.9.ebuild | 57 | ||||
-rw-r--r-- | sys-fs/cachefilesd/files/cachefilesd-0.10.4-makefile.patch | 24 | ||||
-rw-r--r-- | sys-fs/cachefilesd/files/cachefilesd-0.10.9-makefile.patch | 19 | ||||
-rw-r--r-- | sys-fs/cachefilesd/files/cachefilesd-3.init | 55 | ||||
-rw-r--r-- | sys-fs/cachefilesd/files/cachefilesd-tmpfiles.d | 1 | ||||
-rw-r--r-- | sys-fs/cachefilesd/files/cachefilesd.conf | 7 | ||||
-rw-r--r-- | sys-fs/cachefilesd/metadata.xml | 8 |
9 files changed, 239 insertions, 0 deletions
diff --git a/sys-fs/cachefilesd/Manifest b/sys-fs/cachefilesd/Manifest new file mode 100644 index 000000000000..0c59590f82d7 --- /dev/null +++ b/sys-fs/cachefilesd/Manifest @@ -0,0 +1,12 @@ +AUX cachefilesd-0.10.4-makefile.patch 628 SHA256 615df8e77a409f852749cd607c6a4efc03780c2105bd0ce8fbcb1b02df87fdc9 SHA512 b6092b5c98c63b8479af22c6bf1812da9124a54c8e51e9e7531bf7984d3816090cc0a0126d6d506f8d42bc19863b2ba486b373d5c5577d47369cf3a1b2c78e72 WHIRLPOOL ac74923fd47026cf643fa1036cd79a80f08fafae6f0a606075c296f922218d16c2bd1f1e7267bd84566d023491fe092b3db69a559c93545f9d2c4c683c7df6cf +AUX cachefilesd-0.10.9-makefile.patch 609 SHA256 dc9f156be5c41fe697b8fe231a9504ee3f497fc522cc40f52b493e49b11d0d9d SHA512 cda279d9403dcae3cc1ba15bda7093536bc4bdf20c1dd9cc8e26f8bec504c4524e829e1ee8a936acecab71ff1d855520274383f916d9d15076dc9e876d88dee7 WHIRLPOOL 561649ac2ffbb6b363076ce3d5768a5755f3dcdc6054b48af45bf55732bb99f0399dad4680e927c9920d950b31705d4e2a6591b5f16a030ee8e3ff8362e43a95 +AUX cachefilesd-3.init 1677 SHA256 03273e15479d0214ab46f39629b9473dae87e7255894c60a16d9413853ff18bf SHA512 ca227db027c1673f9e1339f6a3952c93a2cbdf454adb690e43c8eb49860cf998b5e12f0191ec58c78055212f7a65269b77a413e7ee89c3293ac9a3af5a0ec8f8 WHIRLPOOL 3badffde9486e0627e5b1ed5eae14e522328751a4bcf9a7a7cd9743c2d2eb4c297fed6b6bfa2d2c486e26c17d48bfe9d788e406259f506fed72adecef8a3f39c +AUX cachefilesd-tmpfiles.d 32 SHA256 8908a4bb666be2b28ff867e7df23c9361357f0b4cde59f59abbe0390653b6188 SHA512 37ddd3a452cc1d639b3ea3e98fc528c4552dd7f768a05fd1e4ad1821bbd6a0092f1cc5cfa4e7e41664952e4fd06001724fe64f6a16115fff15c542732d2ffec3 WHIRLPOOL 04cfa3991da0a8d46bc2e034d29526c31cfc3bb28ccce5115be1591e8bae3e043e904b93362ef7ac43dbe2ec38325068057aa116c8db3eaa248c1bbcea1d22fd +AUX cachefilesd.conf 296 SHA256 160ed6e0633adb05942cdf78cc8a559015c915b84c21540e842beb965b17987a SHA512 6b82563b27b3a202afa6922bf4059836c7d363c5350d2b348ecca6ae12de2ae31d903e65b00f427712e7df22c0401b181177e168715e5e375b290f6d247fd846 WHIRLPOOL 2eecccf1ccfda7f848f985479d1d84f890955e8e2d7011e793a9d83042dfc08d9b2c1158c7eadbbfcc8a2c4740fb96a8d7164a2217f36dac2cd1766bc682168c +DIST cachefilesd-0.10.5.tar 112640 SHA256 125ea4f6aef4bf8e936a7cc747b59e074537a8aed74cd1bab3f05d7fbc47287f SHA512 996e47de40cff4d2c0d265689ef3a33aee6ef0d0432a03d7428133c091e77b0e099bd1346b5638bf2d9df6bb47bce519491b420d5916a3211c4e04e158ad92e8 WHIRLPOOL fad173739c307629ffef091a0cad890ee9bb3b133471de1fe9bb43cc06ee46a051fdb97262f9380a8133fb49cd87b9cbd3ee71205867046bd361f890c2645f1e +DIST cachefilesd-0.10.9.tar.bz2 26555 SHA256 c897ec6704615f26de3ddc20ff30a191ce995cb8973d2cde88b4b28c1a1e6bca SHA512 06ab444a7df8ec37c15bc03554510f4acbb453e0730277f036abc5d61f9e377d90d9387dd5237ea481b95b1bf097b5992adce90ce971fe29760cc4c0d3c9cf34 WHIRLPOOL 97a398ebaecfdc5f16317607ef4a17a4518969930f2ca436eebeaca445a763eaef03cd648e8a21b0c9bebe8a25c072108c227162185b90e666bb41580cd5883a +EBUILD cachefilesd-0.10.5-r4.ebuild 1480 SHA256 4586e2e3ccd00e3b55b9b5928cc8a6b492175ac856177ce145d1138006c61868 SHA512 65cea8918efadaadca5a2eb422b1fa1082d741977ac8420eb2b7f2e7fc6c03e758cfd046c1cf1f609a1f50d046132bf029b9f490fc1e3eb458c25315f582fb92 WHIRLPOOL ab6be9ed3e2cfd658c91fc449c477c2ffcafdcbebead3ac29ea64292f3c418d799940cc15d2cbaa1fefe0f583f5107788f8d20e01a4c97249d5d9c333987442f +EBUILD cachefilesd-0.10.9.ebuild 1475 SHA256 f35f0cd93f87c88ec05f4c3fa0cb04af291f9ece9f2e0c1a209916fc6d5c10ec SHA512 7c554794416a185738ba1fabda6395fe6443b6eb519bf2c750a414980cd66af5b218c9375a9747d0234b7566f1b583f2c4d267f66fc780dc1db0c4bb27de6c4d WHIRLPOOL 61e4903e758ddee83c589e5d9170b475b86f12205cfcd67bf03eccbd48d8aaa1ad73c09f186247f54b3b3e1e0fdba87284be79d3c9614f156eea969010196c2c +MISC ChangeLog 3702 SHA256 9d5c7b1da2353a15c4acefe839446fffb7d3a40da44672603de6a108efa15116 SHA512 60a5e391be2b7ccefc097545d0bfce0888b19a1b386d5bcda3d950e3b849c1953fbc6c00c69ee57d325eb0a4341d3a3296d863e09fc42c58fd963d6fe553104e WHIRLPOOL 078e9f50b5f3f4e6031a3c9a95221c805c96f0b61c542da43c92794b83103e175b67d3e8e10d00baac45f485e68a5a8b31e6328606fe90c5f10348e49d4213aa +MISC ChangeLog-2015 3015 SHA256 9a32992afe8e605fe5d64b61d8a1510c0a6643eef1a5245ff434838d33caf506 SHA512 73b927670846169307f3266e5cc0ecc5a2eb4a51416056d746633b6ccf643085e784b9f42dafc61c2869c416f1cd44c46a79b1a12cc075c34c9db30b899689a7 WHIRLPOOL 8e175749e746935d4f8cc9c850031993b3f5f5ba01c9ca3c21823090ee0adbb1464028159849e39effe6f85d25431052570681bce3f78a6cfc635d2ad0af8e68 +MISC metadata.xml 247 SHA256 476881b53a1d153f1c3c21b5e7b81ca4d704b7b868aa58eef6a2faa531aabb5d SHA512 189f876175728dfb474cf2ccb122ebfe48b068cc5fd65a3cfed7dad947dd9ce0fc7c89ce5c0982fdee5262025236b7d5cccf48b55c67c5cd33e84910c28e0b46 WHIRLPOOL 2225cc6e12a88d99aca5e7b1a986bc808e64840a95fa9cfba2b21f841eb1619c8c86170d0701c3088bc9acac4cdb86467dd85f36e5315b635dcfed348b289bc8 diff --git a/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild b/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild new file mode 100644 index 000000000000..c1084bae7fcb --- /dev/null +++ b/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils flag-o-matic systemd toolchain-funcs + +DESCRIPTION="Provides a caching directory on an already mounted filesystem" +HOMEPAGE="https://people.redhat.com/~dhowells/fscache/" +SRC_URI="https://people.redhat.com/~dhowells/fscache/${P}.tar.bz2 -> ${P}.tar" + +SLOT="0" +LICENSE="GPL-2+" +KEYWORDS="amd64 x86" +IUSE="doc selinux" + +RDEPEND="selinux? ( sec-policy/selinux-cachefilesd )" +DEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.10.4-makefile.patch + tc-export CC + if ! use selinux; then + sed -e '/^secctx/s:^:#:g' -i cachefilesd.conf || die + fi + + append-flags -fpie +} + +src_install() { + default + + if use selinux; then + insinto /usr/share/doc/${P} + doins -r selinux + fi + + dodoc howto.txt + + newconfd "${FILESDIR}"/${PN}.conf ${PN} + newinitd "${FILESDIR}"/${PN}-3.init ${PN} + + systemd_dounit ${PN}.service + systemd_newtmpfilesd "${FILESDIR}"/${PN}-tmpfiles.d ${PN}.conf +} + +pkg_postinst() { + [[ -d /var/cache/fscache ]] && return + elog "Before CacheFiles can be used, a directory for local storage" + elog "must be created. The default configuration of /etc/cachefilesd.conf" + elog "uses /var/cache/fscache. The filesystem mounted there must support" + elog "extended attributes (mount -o user_xattr)." + echo "" + elog "Once that is taken care of, start the daemon, add -o ...,fsc" + elog "to the mount options of your network mounts, and let it fly!" +} diff --git a/sys-fs/cachefilesd/cachefilesd-0.10.9.ebuild b/sys-fs/cachefilesd/cachefilesd-0.10.9.ebuild new file mode 100644 index 000000000000..b0bebcb564b0 --- /dev/null +++ b/sys-fs/cachefilesd/cachefilesd-0.10.9.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic systemd toolchain-funcs + +DESCRIPTION="Provides a caching directory on an already mounted filesystem" +HOMEPAGE="https://people.redhat.com/~dhowells/fscache/" +SRC_URI="https://people.redhat.com/~dhowells/fscache/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-2+" +KEYWORDS="amd64 ~x86" +IUSE="doc selinux" + +RDEPEND="selinux? ( sec-policy/selinux-cachefilesd )" +DEPEND="" + +src_prepare() { + eapply_user + eapply "${FILESDIR}"/${PN}-0.10.9-makefile.patch + if ! use selinux; then + sed -e '/^secctx/s:^:#:g' -i cachefilesd.conf || die + fi + + tc-export CC + append-flags -fpie +} + +src_install() { + default + + if use selinux; then + insinto /usr/share/doc/${P} + doins -r selinux + fi + + dodoc howto.txt + + newconfd "${FILESDIR}"/${PN}.conf ${PN} + newinitd "${FILESDIR}"/${PN}-3.init ${PN} + + systemd_dounit ${PN}.service + systemd_newtmpfilesd "${FILESDIR}"/${PN}-tmpfiles.d ${PN}.conf +} + +pkg_postinst() { + [[ -d /var/cache/fscache ]] && return + elog "Before CacheFiles can be used, a directory for local storage" + elog "must be created. The default configuration of /etc/cachefilesd.conf" + elog "uses /var/cache/fscache. The filesystem mounted there must support" + elog "extended attributes (mount -o user_xattr)." + echo "" + elog "Once that is taken care of, start the daemon, add -o ...,fsc" + elog "to the mount options of your network mounts, and let it fly!" +} diff --git a/sys-fs/cachefilesd/files/cachefilesd-0.10.4-makefile.patch b/sys-fs/cachefilesd/files/cachefilesd-0.10.4-makefile.patch new file mode 100644 index 000000000000..5cbb24001c95 --- /dev/null +++ b/sys-fs/cachefilesd/files/cachefilesd-0.10.4-makefile.patch @@ -0,0 +1,24 @@ + Makefile | 6 ++++-- + 1 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index d5d352e..9a98bf5 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,3 @@ +-CFLAGS := -g -O2 -Wall + INSTALL := install + DESTDIR := + ETCDIR := /etc +@@ -38,7 +37,10 @@ endif + ############################################################################### + all: cachefilesd + +-cachefilesd: cachefilesd.c Makefile ++cachefilesd.o: cachefilesd.c ++ $(CC) $(CFLAGS) -c $< ++ ++cachefilesd: cachefilesd.o + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< + + ############################################################################### diff --git a/sys-fs/cachefilesd/files/cachefilesd-0.10.9-makefile.patch b/sys-fs/cachefilesd/files/cachefilesd-0.10.9-makefile.patch new file mode 100644 index 000000000000..276eff35a1c0 --- /dev/null +++ b/sys-fs/cachefilesd/files/cachefilesd-0.10.9-makefile.patch @@ -0,0 +1,19 @@ +--- cachefilesd-0.10.9/Makefile.old 2016-07-18 11:12:38.467106807 +0800 ++++ cachefilesd-0.10.9/Makefile 2016-07-18 11:13:59.937770347 +0800 +@@ -1,4 +1,3 @@ +-CFLAGS := -g -O2 -Wall -Wsign-compare + INSTALL := install + DESTDIR := + ETCDIR := /etc +@@ -40,7 +39,10 @@ + ############################################################################### + all: cachefilesd + +-cachefilesd: cachefilesd.c Makefile ++cachefilesd.o: cachefilesd.c ++ $(CC) $(CFLAGS) -c $< ++ ++cachefilesd: cachefilesd.o + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< + + ############################################################################### diff --git a/sys-fs/cachefilesd/files/cachefilesd-3.init b/sys-fs/cachefilesd/files/cachefilesd-3.init new file mode 100644 index 000000000000..665fab3b369d --- /dev/null +++ b/sys-fs/cachefilesd/files/cachefilesd-3.init @@ -0,0 +1,55 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount + use logger + before nfsmount +} + +checkxattr() { + local testpath testfile ret + # SELinux requires xattrs, so we can assume things work already + [ -f /sys/fs/selinux/status ] && return 0; + testpath=$(awk '/^[[:space:]]*dir/ {print $2}' /etc/cachefilesd.conf) + checkpath -d "${testpath}" + testfile="${testpath}/.tmp-xattr-test.cachefilesd" + touch "${testfile}" + # creates a file in the testpath and tries to set an attribute on it to check + # if the support is available + attr -s test -V xattr "${testfile}" 2>&1 > /dev/null + ret=$? + rm -f "${testfile}" + [ ${ret} -ne 0 ] && eerror "xattr support missing on the ${testpath} filesystem" + return ${ret} +} + +start() { + ebegin "Starting cachefilesd" + checkxattr || return $? + # check if the cachefiles modules is loaded (or builtin) + if [ ! -c /dev/cachefiles ] ; then + local ret + einfo "/dev/cachefiles doesn't exist, trying to modprobe cachefiles" + modprobe cachefiles + ret=$? + if [ $ret -ne 0 ] ; then + eerror "cachefiles modules cannot be loaded so cachefilesd " + eerror "cannot be started, aborting. Did you build fscache in your " + eerror "kernel? Note that you need a 2.6.30 or better kernel" + return $ret + fi + fi + + start-stop-daemon --start --pidfile /run/cachefilesd.pid --exec /sbin/cachefilesd -- ${OPTIONS} + eend $? "Failed to start cachefilesd. Check the system log to see the error" + +} + +stop() { + ebegin "Stopping cachefilesd" + start-stop-daemon --stop --exec /sbin/cachefilesd --pidfile /run/cachefilesd.pid + eend $? "Failed to stop cachefilesd" +} + diff --git a/sys-fs/cachefilesd/files/cachefilesd-tmpfiles.d b/sys-fs/cachefilesd/files/cachefilesd-tmpfiles.d new file mode 100644 index 000000000000..11da15afd7f0 --- /dev/null +++ b/sys-fs/cachefilesd/files/cachefilesd-tmpfiles.d @@ -0,0 +1 @@ +d /var/cache/fscache 0755 - - - diff --git a/sys-fs/cachefilesd/files/cachefilesd.conf b/sys-fs/cachefilesd/files/cachefilesd.conf new file mode 100644 index 000000000000..28bc434c2486 --- /dev/null +++ b/sys-fs/cachefilesd/files/cachefilesd.conf @@ -0,0 +1,7 @@ +# Config file for /etc/init.d/cachefilesd +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# -d - This can be specified multiple times. +# -f <configfile> - Read the specified configuration file instead of /etc/cachefiles.conf +OPTIONS="" diff --git a/sys-fs/cachefilesd/metadata.xml b/sys-fs/cachefilesd/metadata.xml new file mode 100644 index 000000000000..76f45cdee0f4 --- /dev/null +++ b/sys-fs/cachefilesd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>perfinion@gentoo.org</email> + <name>Jason Zaman</name> + </maintainer> +</pkgmetadata> |