diff options
author | Jason Zaman <perfinion@gentoo.org> | 2016-07-18 11:08:48 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2016-07-18 11:08:48 +0800 |
commit | dc5f179ef18023d5793d71b3b9c55210fe7bc46b (patch) | |
tree | 2d098e904d485eb39b7d4e67ab24dc4b3d407762 /sys-fs/cachefilesd | |
parent | sci-physics/espresso++: remove old (diff) | |
download | gentoo-dc5f179ef18023d5793d71b3b9c55210fe7bc46b.tar.gz gentoo-dc5f179ef18023d5793d71b3b9c55210fe7bc46b.tar.bz2 gentoo-dc5f179ef18023d5793d71b3b9c55210fe7bc46b.zip |
sys-fs/cachefilesd: Remove unused from FILESDIR
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-fs/cachefilesd')
-rw-r--r-- | sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild | 6 | ||||
-rw-r--r-- | sys-fs/cachefilesd/files/0.10.1-makefile.patch | 21 | ||||
-rw-r--r-- | sys-fs/cachefilesd/files/cachefilesd-0.10.4-makefile.patch (renamed from sys-fs/cachefilesd/files/0.10.4-makefile.patch) | 0 | ||||
-rw-r--r-- | sys-fs/cachefilesd/files/cachefilesd-2.init | 54 | ||||
-rw-r--r-- | sys-fs/cachefilesd/files/cachefilesd.init | 52 |
5 files changed, 3 insertions, 130 deletions
diff --git a/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild b/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild index ada6dc45a12c..31782911a94e 100644 --- a/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild +++ b/sys-fs/cachefilesd/cachefilesd-0.10.5-r4.ebuild @@ -19,7 +19,7 @@ RDEPEND="selinux? ( sec-policy/selinux-cachefilesd )" DEPEND="" src_prepare() { - epatch "${FILESDIR}"/0.10.4-makefile.patch + epatch "${FILESDIR}"/${PN}-0.10.4-makefile.patch tc-export CC if ! use selinux; then sed -e '/^secctx/s:^:#:g' -i cachefilesd.conf || die @@ -38,8 +38,8 @@ src_install() { dodoc howto.txt - newconfd "${FILESDIR}"/cachefilesd.conf ${PN} - newinitd "${FILESDIR}"/cachefilesd-3.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} + newinitd "${FILESDIR}"/${PN}-3.init ${PN} systemd_dounit ${PN}.service systemd_newtmpfilesd "${FILESDIR}"/${PN}-tmpfiles.d ${PN}.conf diff --git a/sys-fs/cachefilesd/files/0.10.1-makefile.patch b/sys-fs/cachefilesd/files/0.10.1-makefile.patch deleted file mode 100644 index af029c9293a3..000000000000 --- a/sys-fs/cachefilesd/files/0.10.1-makefile.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/Makefile b/Makefile -index 15a8445..d650f47 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,4 +1,3 @@ --CFLAGS := -g -O2 -Wall - INSTALL := install - DESTDIR := - BUILDFOR := -@@ -21,7 +20,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/0.10.4-makefile.patch b/sys-fs/cachefilesd/files/cachefilesd-0.10.4-makefile.patch index 5cbb24001c95..5cbb24001c95 100644 --- a/sys-fs/cachefilesd/files/0.10.4-makefile.patch +++ b/sys-fs/cachefilesd/files/cachefilesd-0.10.4-makefile.patch diff --git a/sys-fs/cachefilesd/files/cachefilesd-2.init b/sys-fs/cachefilesd/files/cachefilesd-2.init deleted file mode 100644 index 420c0e8518d8..000000000000 --- a/sys-fs/cachefilesd/files/cachefilesd-2.init +++ /dev/null @@ -1,54 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -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) - 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 /var/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 /var/run/cachefilesd.pid - eend $? "Failed to stop cachefilesd" -} - diff --git a/sys-fs/cachefilesd/files/cachefilesd.init b/sys-fs/cachefilesd/files/cachefilesd.init deleted file mode 100644 index c972aea695ff..000000000000 --- a/sys-fs/cachefilesd/files/cachefilesd.init +++ /dev/null @@ -1,52 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -depend() { - need localmount - use logger - before nfsmount -} - -checkxattr() { - local testpath testfile ret - testpath=$(awk '/^[[:space:]]*dir/ {print $2}' /etc/cachefilesd.conf) - 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 /var/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 /var/run/cachefilesd.pid - eend $? "Failed to stop cachefilesd" -} - |