preload: init at 0.6.4
This commit is contained in:
parent
2c820c1893
commit
a08e49d5d2
@ -0,0 +1,54 @@
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index e4072e4..4a6b069 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -327,23 +327,9 @@ installcheck-initdSCRIPTS: $(initd_SCRIPTS)
|
||||
else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
|
||||
done; \
|
||||
done; rm -f c$${pid}_.???; exit $$bad
|
||||
-install-logDATA: $(log_DATA)
|
||||
- @$(NORMAL_INSTALL)
|
||||
- test -z "$(logdir)" || $(MKDIR_P) "$(DESTDIR)$(logdir)"
|
||||
- @list='$(log_DATA)'; for p in $$list; do \
|
||||
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
- f=$(am__strip_dir) \
|
||||
- echo " $(logDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(logdir)/$$f'"; \
|
||||
- $(logDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(logdir)/$$f"; \
|
||||
- done
|
||||
+install-logDATA:
|
||||
|
||||
uninstall-logDATA:
|
||||
- @$(NORMAL_UNINSTALL)
|
||||
- @list='$(log_DATA)'; for p in $$list; do \
|
||||
- f=$(am__strip_dir) \
|
||||
- echo " rm -f '$(DESTDIR)$(logdir)/$$f'"; \
|
||||
- rm -f "$(DESTDIR)$(logdir)/$$f"; \
|
||||
- done
|
||||
install-logrotateDATA: $(logrotate_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(logrotatedir)" || $(MKDIR_P) "$(DESTDIR)$(logrotatedir)"
|
||||
@@ -361,23 +347,9 @@ uninstall-logrotateDATA:
|
||||
echo " rm -f '$(DESTDIR)$(logrotatedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(logrotatedir)/$$f"; \
|
||||
done
|
||||
-install-pkglocalstateDATA: $(pkglocalstate_DATA)
|
||||
- @$(NORMAL_INSTALL)
|
||||
- test -z "$(pkglocalstatedir)" || $(MKDIR_P) "$(DESTDIR)$(pkglocalstatedir)"
|
||||
- @list='$(pkglocalstate_DATA)'; for p in $$list; do \
|
||||
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
- f=$(am__strip_dir) \
|
||||
- echo " $(pkglocalstateDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkglocalstatedir)/$$f'"; \
|
||||
- $(pkglocalstateDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkglocalstatedir)/$$f"; \
|
||||
- done
|
||||
+install-pkglocalstateDATA:
|
||||
|
||||
uninstall-pkglocalstateDATA:
|
||||
- @$(NORMAL_UNINSTALL)
|
||||
- @list='$(pkglocalstate_DATA)'; for p in $$list; do \
|
||||
- f=$(am__strip_dir) \
|
||||
- echo " rm -f '$(DESTDIR)$(pkglocalstatedir)/$$f'"; \
|
||||
- rm -f "$(DESTDIR)$(pkglocalstatedir)/$$f"; \
|
||||
- done
|
||||
install-sysconfigDATA: $(sysconfig_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(sysconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfigdir)"
|
34
pkgs/by-name/pr/preload/package.nix
Normal file
34
pkgs/by-name/pr/preload/package.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib, stdenv, fetchzip, autoconf, automake, pkg-config, glib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "preload";
|
||||
version = "0.6.4";
|
||||
|
||||
src = fetchzip {
|
||||
url = "mirror://sourceforge/preload/preload-${version}.tar.gz";
|
||||
hash = "sha256-vAIaSwvbUFyTl6DflFhuSaMuX9jPVBah+Nl6c/fUbAM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Prevents creation of /var directories on build
|
||||
./0001-prevent-building-to-var-directories.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoconf automake pkg-config ];
|
||||
buildInputs = [ glib ];
|
||||
|
||||
configureFlags = [ "--localstatedir=/var" ];
|
||||
|
||||
postInstall = ''
|
||||
make sysconfigdir=$out/etc/conf.d install
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Makes applications run faster by prefetching binaries and shared objects";
|
||||
homepage = "https://sourceforge.net/projects/preload";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "preload";
|
||||
maintainers = with maintainers; [ ldprg ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user