package/cups: store web-interface files under /usr/share/cups/doc-root
authorAlexey Lukyanchuk <skif@skif-web.ru>
Wed, 4 Mar 2020 07:21:02 +0000 (10:21 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 8 Mar 2020 11:16:37 +0000 (12:16 +0100)
The web-interface files (~1.8MB) are by default installed under
/usr/share/doc/cups, which is unfortunate as Buildroot removes usr/share/doc
in target-finalize, breaking the webui.

As a fix, store the web-interface files under /usr/share/cups/doc-root,
similar to how it is done in Debian.

Signed-off-by: Alexey Lukyanchuk <skif@skif-web.ru>
[Peter: use --with-docdir, update description]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/cups/cups.mk

index da6778f30ae5d1fcfb0d45dc2235654f10aa3b76..18f01d8484e449b33626740a1785c69b191c1599 100644 (file)
@@ -18,6 +18,7 @@ endef
 CUPS_PRE_CONFIGURE_HOOKS += CUPS_RUN_AUTOCONF
 
 CUPS_CONF_OPTS = \
+       --with-docdir=/usr/share/cups/doc-root \
        --disable-gssapi \
        --disable-pam \
        --libdir=/usr/lib