[packages/nocache] - initial

arekm arekm at pld-linux.org
Wed Oct 24 09:06:40 CEST 2018


commit 624e2cbf7b3037fc89594368dda84616a0f9bc21
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Oct 24 09:06:23 2018 +0200

    - initial

 nocache.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
---
diff --git a/nocache.spec b/nocache.spec
new file mode 100644
index 0000000..ee9b1fe
--- /dev/null
+++ b/nocache.spec
@@ -0,0 +1,55 @@
+Summary:	Minimize filesystem caching effects
+Name:		nocache
+Version:	1.0
+Release:	1
+License:	BSD
+Group:		Base
+Source0:	https://github.com/Feh/nocache/archive/v%{version}.tar.gz
+# Source0-md5:	29a177c7d990a75570645902c7ad9a4b
+URL:		https://github.com/Feh/nocache
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The nocache tool tries to minimize the effect an application has on
+the Linux file system cache. This is done by intercepting the open and
+close system calls and calling posix_fadvise with the
+POSIX_FADV_DONTNEED parameter. Because the library remembers which
+pages (ie., 4K-blocks of the file) were already in file system cache
+when the file was opened, these will not be marked as "don't need",
+because other applications might need that, although they are not
+actively used (think: hot standby).
+
+Use case: backup processes that should not interfere with the present
+state of the cache.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+	CFLAGS+="%{rpmcppflags} %{rpmcflags}" \
+	LDFLAGS+="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	PREFIX= \
+	LIBDIR=%{_libdir} \
+	BINDIR=%{_bindir} \
+	MANDIR=%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/cachedel
+%attr(755,root,root) %{_bindir}/cachestats
+%attr(755,root,root) %{_bindir}/nocache
+%attr(755,root,root) %{_libdir}/nocache.so
+%{_mandir}/man1/cachedel.1*
+%{_mandir}/man1/cachestats.1*
+%{_mandir}/man1/nocache.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nocache.git/commitdiff/624e2cbf7b3037fc89594368dda84616a0f9bc21



More information about the pld-cvs-commit mailing list