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/clamfs/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-fs/clamfs/files')
-rw-r--r-- | sys-fs/clamfs/files/clamfs-1.0.1-gcc45.patch | 15 | ||||
-rw-r--r-- | sys-fs/clamfs/files/clamfs-1.0.1-gentoo.patch | 12 | ||||
-rw-r--r-- | sys-fs/clamfs/files/clamfs.confd | 1 | ||||
-rw-r--r-- | sys-fs/clamfs/files/clamfs.initd | 21 |
4 files changed, 49 insertions, 0 deletions
diff --git a/sys-fs/clamfs/files/clamfs-1.0.1-gcc45.patch b/sys-fs/clamfs/files/clamfs-1.0.1-gcc45.patch new file mode 100644 index 000000000000..1f5f63a252f2 --- /dev/null +++ b/sys-fs/clamfs/files/clamfs-1.0.1-gcc45.patch @@ -0,0 +1,15 @@ +Fix building with gcc 4.5 + +http://bugs.gentoo.org/show_bug.cgi?id=320107 + +--- src/scancache.cxx ++++ src/scancache.cxx +@@ -37,7 +37,7 @@ + } + + ScanCache::ScanCache(long int elements, long int expire): +- ExpireLRUCache<ino_t, CachedResult>::ExpireLRUCache<ino_t, CachedResult>(elements, expire) { ++ ExpireLRUCache<ino_t, CachedResult>(elements, expire) { + } + + ScanCache::~ScanCache() { diff --git a/sys-fs/clamfs/files/clamfs-1.0.1-gentoo.patch b/sys-fs/clamfs/files/clamfs-1.0.1-gentoo.patch new file mode 100644 index 000000000000..f5c02daca6d6 --- /dev/null +++ b/sys-fs/clamfs/files/clamfs-1.0.1-gentoo.patch @@ -0,0 +1,12 @@ +diff -Naur clamfs-1.0.1.orig/doc/clamfs.xml clamfs-1.0.1/doc/clamfs.xml +--- clamfs-1.0.1.orig/doc/clamfs.xml 2009-02-07 23:09:26.000000000 +0900 ++++ clamfs-1.0.1/doc/clamfs.xml 2010-01-08 18:19:13.000000000 +0900 +@@ -16,7 +16,7 @@ + check - (yes or no) check if clamd is available on startup (useful if + mounting clamfs file systems from /etc/fstab early on startup, + while clamav daemon is not yet started) --> +- <clamd socket="/var/run/clamav/clamd.ctl" check="yes" /> ++ <clamd socket="/var/run/clamav/clamd.sock" check="yes" /> + + <!-- File system settings + root - real directory to attach as our root diff --git a/sys-fs/clamfs/files/clamfs.confd b/sys-fs/clamfs/files/clamfs.confd new file mode 100644 index 000000000000..941549a4ca60 --- /dev/null +++ b/sys-fs/clamfs/files/clamfs.confd @@ -0,0 +1 @@ +CLAMFS_CONFFILE="/etc/clamfs/clamfs.xml" diff --git a/sys-fs/clamfs/files/clamfs.initd b/sys-fs/clamfs/files/clamfs.initd new file mode 100644 index 000000000000..a98bd4d91a97 --- /dev/null +++ b/sys-fs/clamfs/files/clamfs.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use logger + need clamd +} + +start() { + ebegin "Starting clamfs" + start-stop-daemon --start --quiet \ + --exec /usr/bin/clamfs -- ${CLAMFS_CONFFILE} + eend $? "Failed to start clamfs" +} + +stop() { + ebegin "Stopping clamfs" + start-stop-daemon --stop --quiet --name clamfs + eend $? "Failed to stop clamfs" +} |