jlec        14/08/22 13:41:39

  Modified:             ChangeLog
  Added:                cachefilesd-0.10.5-r4.ebuild
  Log:
  sys-fs/cachefilesd: Create cache dir on runtime, #520500
  
  (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 
B9D4F231BD1558AB!)

Revision  Changes    Path
1.13                 sys-fs/cachefilesd/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/ChangeLog?rev=1.13&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/ChangeLog?rev=1.13&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/ChangeLog?r1=1.12&r2=1.13

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-fs/cachefilesd/ChangeLog,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ChangeLog   8 Jun 2014 13:13:23 -0000       1.12
+++ ChangeLog   22 Aug 2014 13:41:39 -0000      1.13
@@ -1,6 +1,12 @@
 # ChangeLog for sys-fs/cachefilesd
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/cachefilesd/ChangeLog,v 1.12 
2014/06/08 13:13:23 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/cachefilesd/ChangeLog,v 1.13 
2014/08/22 13:41:39 jlec Exp $
+
+*cachefilesd-0.10.5-r4 (22 Aug 2014)
+
+  22 Aug 2014; Justin Lecher <j...@gentoo.org> +cachefilesd-0.10.5-r4.ebuild,
+  +files/cachefilesd-3.init, +files/cachefilesd-tmpfiles.d:
+  Create cache dir on runtime, #520500
 
 *cachefilesd-0.10.5-r3 (08 Jun 2014)
 



1.1                  sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild?rev=1.1&content-type=text/plain

Index: cachefilesd-0.10.5-r4.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild,v 1.1 
2014/08/22 13:41:39 jlec Exp $

EAPI=5

inherit eutils flag-o-matic systemd toolchain-funcs

DESCRIPTION="Provides a caching directory on an already mounted filesystem"
HOMEPAGE="http://people.redhat.com/~dhowells/fscache/";
SRC_URI="http://people.redhat.com/~dhowells/fscache/${P}.tar.bz2 -> ${P}.tar"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="doc selinux"

DEPEND="selinux? ( sec-policy/selinux-cachefilesd )"
RDEPEND="${DEPEND}"

src_prepare() {
        epatch "${FILESDIR}"/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}"/cachefilesd.conf ${PN}
        newinitd "${FILESDIR}"/cachefilesd-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!"
}




Reply via email to