Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix creation of cachepath on disk

  • Loading branch information...
commit 21c1de752a1b95bd00a60bb49f7f031213480284 1 parent e89909c
@falconindy authored
Showing with 10 additions and 5 deletions.
  1. +6 −2 Makefile.am
  2. +4 −3 configure.ac
View
8 Makefile.am
@@ -80,9 +80,13 @@ install-data-local:
$(INSTALL_DATA) $(top_srcdir)/extra/bash-completion $(DESTDIR)$(bashcompletiondir)/pkgfile
$(MKDIR_P) $(DESTDIR)$(zshcompletiondir)
$(INSTALL_DATA) $(top_srcdir)/extra/zsh-completion $(DESTDIR)$(zshcompletiondir)/_pkgfile
- $(MKDIR_P) $(DESTDIR)$(localstatedir)/cache/pkgfile
- chmod 775 $(DESTDIR)$(localstatedir)/cache/pkgfile
+ @echo "DESTDIR=${DESTDIR}"
+ $(MKDIR_P) $(DESTDIR)$(CACHEPATH)
+ chmod 775 $(DESTDIR)$(CACHEPATH)
uninstall-local:
$(RM) $(DESTDIR)$(bashcompletiondir)/pkgfile
$(RM) $(DESTDIR)$(zshcompletiondir)/_pkgfile
+
+DISTCHECK_CONFIGURE_FLAGS = \
+ --with-cachedir=$$dc_install_base$(CACHEPATH)
View
7 configure.ac
@@ -31,8 +31,9 @@ AC_ARG_ENABLE(git-version,
AC_ARG_WITH(cachedir,
AS_HELP_STRING([--with-cachedir=path],
[location of .files cachedir]),
- [cachepath=$withval], [cachepath=/var/cache/pkgfile])
-AC_DEFINE_UNQUOTED([CACHEPATH], "$cachepath", [Path to .files cachedir])
+ [CACHEPATH=$withval], [CACHEPATH=/var/cache/pkgfile])
+AC_DEFINE_UNQUOTED([CACHEPATH], "$CACHEPATH", [Path to .files cachedir])
+AC_SUBST([CACHEPATH])
# Enable or disable use of git version in pacman version string
AC_MSG_CHECKING(whether to use git version if available)
@@ -111,7 +112,7 @@ AC_OUTPUT
AC_MSG_RESULT([
prefix: $(eval echo ${prefix})
datarootdir: $(eval echo ${datarootdir})
- cache directory: $(eval echo ${cachepath})
+ cache directory: ${CACHEPATH}
using git version: ${usegitver}
Please sign in to comment.
Something went wrong with that request. Please try again.