1 |
commit: bd7631ab861eadb40adb4c5386b1519b2c9dde5c |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 5 03:55:22 2018 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 5 04:31:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd7631ab |
7 |
|
8 |
sys-fs/cachefilesd: bump 0.10.10 |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
sys-fs/cachefilesd/Manifest | 1 + |
13 |
sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild | 60 +++++++++++++++++++++++++++ |
14 |
2 files changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/cachefilesd/Manifest b/sys-fs/cachefilesd/Manifest |
17 |
index 936836ae51f..179c9cb79d3 100644 |
18 |
--- a/sys-fs/cachefilesd/Manifest |
19 |
+++ b/sys-fs/cachefilesd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
+DIST cachefilesd-0.10.10.tar.bz2 26694 BLAKE2B c527a6283617ba53818e0cad1859544b1e66af1107b05d1f83904669425d31c5374f3c032b892c9d95892d02d9256bbd9b180f1d0b6b430f0cfa70440406ef9f SHA512 d7d816b5ef1fffe1272cb8c2e9cbd18c1393438afca250436a36a446c6a37303e7784057725a56be839e0489101190b563c4fc015fc4ff11baa8003121e5183a |
22 |
DIST cachefilesd-0.10.5.tar 112640 BLAKE2B 2dadd76c522fb4fb7cf3fdf5dc69d43e7585c21d8988ad44714a0f30b110c2eebae855c71f61259c39e7018391c24a14e894bddfe4eaaa9766a93f912bf6ff6f SHA512 996e47de40cff4d2c0d265689ef3a33aee6ef0d0432a03d7428133c091e77b0e099bd1346b5638bf2d9df6bb47bce519491b420d5916a3211c4e04e158ad92e8 |
23 |
DIST cachefilesd-0.10.9.tar.bz2 26555 BLAKE2B da5df1d2c6715a7cc304b32842f00e69d356359abfae865cfc1b63b89e1149bcb48762ddf84d13f5d18b727d8e0693257d424e599c3874bbe842da9aed4a0cfe SHA512 06ab444a7df8ec37c15bc03554510f4acbb453e0730277f036abc5d61f9e377d90d9387dd5237ea481b95b1bf097b5992adce90ce971fe29760cc4c0d3c9cf34 |
24 |
|
25 |
diff --git a/sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild b/sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..629ffd58c2c |
28 |
--- /dev/null |
29 |
+++ b/sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild |
30 |
@@ -0,0 +1,60 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit flag-o-matic systemd toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="Provides a caching directory on an already mounted filesystem" |
39 |
+HOMEPAGE="https://people.redhat.com/~dhowells/fscache/" |
40 |
+SRC_URI="https://people.redhat.com/~dhowells/fscache/${P}.tar.bz2" |
41 |
+ |
42 |
+SLOT="0" |
43 |
+LICENSE="GPL-2+" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="doc selinux" |
46 |
+ |
47 |
+RDEPEND="selinux? ( sec-policy/selinux-cachefilesd )" |
48 |
+DEPEND="" |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}"/${PN}-0.10.9-makefile.patch |
52 |
+) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ if ! use selinux; then |
57 |
+ sed -e '/^secctx/s:^:#:g' -i cachefilesd.conf || die |
58 |
+ fi |
59 |
+ |
60 |
+ tc-export CC |
61 |
+ append-flags -fpie |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ default |
66 |
+ |
67 |
+ if use selinux; then |
68 |
+ insinto /usr/share/doc/${P} |
69 |
+ doins -r selinux |
70 |
+ fi |
71 |
+ |
72 |
+ dodoc howto.txt |
73 |
+ |
74 |
+ newconfd "${FILESDIR}"/${PN}.conf ${PN} |
75 |
+ newinitd "${FILESDIR}"/${PN}-3.init ${PN} |
76 |
+ |
77 |
+ systemd_dounit ${PN}.service |
78 |
+ systemd_newtmpfilesd "${FILESDIR}"/${PN}-tmpfiles.d ${PN}.conf |
79 |
+} |
80 |
+ |
81 |
+pkg_postinst() { |
82 |
+ [[ -d /var/cache/fscache ]] && return |
83 |
+ elog "Before CacheFiles can be used, a directory for local storage" |
84 |
+ elog "must be created. The default configuration of /etc/cachefilesd.conf" |
85 |
+ elog "uses /var/cache/fscache. The filesystem mounted there must support" |
86 |
+ elog "extended attributes (mount -o user_xattr)." |
87 |
+ echo "" |
88 |
+ elog "Once that is taken care of, start the daemon, add -o ...,fsc" |
89 |
+ elog "to the mount options of your network mounts, and let it fly!" |
90 |
+} |