From: Emmanuel Lacour Date: Wed, 19 Aug 2009 09:03:26 +0000 (+0200) Subject: Fix bad mkinstalldirs upstream use X-Git-Tag: 1.5-2~2 X-Git-Url: http://git.home-dn.net/?p=manu%2Flibnss-mysql-bg.git;a=commitdiff_plain;h=d45e868b8b18f9b9e1d4ac31a4432d4b320d56dc Fix bad mkinstalldirs upstream use --- diff --git a/debian/patches/01_mkinstalldirs.dpatch b/debian/patches/01_mkinstalldirs.dpatch new file mode 100644 index 0000000..bfac7c4 --- /dev/null +++ b/debian/patches/01_mkinstalldirs.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_mkinstalldirs.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix bad mkinstalldirs call + +@DPATCH@ +--- ./Makefile.am ++++ ./Makefile.am +@@ -27,12 +27,12 @@ EXTRA_DIST = FAQ UPGRADING DEBUGGING libnss-mysql.spec src/*.sym \ + + install-data-hook: + @if test ! -f ${DESTDIR}${sysconfdir}/libnss-mysql.cfg; then \ +- ${srcdir}/aux/mkinstalldirs ${DESTDIR}${sysconfdir}; \ ++ $(mkinstalldirs) ${DESTDIR}${sysconfdir}; \ + ${INSTALL_DATA} ${srcdir}/sample/@OS@/libnss-mysql.cfg \ + ${DESTDIR}${sysconfdir}/libnss-mysql.cfg; \ + fi + @if test ! -f ${DESTDIR}${sysconfdir}/libnss-mysql-root.cfg; then \ +- ${srcdir}/aux/mkinstalldirs ${DESTDIR}${sysconfdir}; \ ++ $(mkinstalldirs) ${DESTDIR}${sysconfdir}; \ + ${INSTALL_DATA} -m 600 ${srcdir}/sample/@OS@/libnss-mysql-root.cfg \ + ${DESTDIR}${sysconfdir}/libnss-mysql-root.cfg; \ + fi