[vdr] channels.conf overwritten when installing vdr 1.7.30

VDR User user.vdr at gmail.com
Mon Oct 8 18:52:00 CEST 2012


> This was part of the patch that introduced FHS compatibility:
>
> ---------------------------------------------------------------------------
> --- ./Makefile  2012/04/15 13:21:31     2.27
> +++ ./Makefile  2012/09/01 13:22:33
> ...
> @@ -193,12 +198,15 @@
>
>  # Configuration files:
>
> -install-conf:
> +install-dirs:
>         @mkdir -p $(DESTDIR)$(VIDEODIR)
> -       @if [ ! -d $(DESTDIR)$(CONFDIR) ]; then\
> -           mkdir -p $(DESTDIR)$(CONFDIR);\
> -           cp *.conf $(DESTDIR)$(CONFDIR);\
> -           fi
> +       @mkdir -p $(DESTDIR)$(CONFDIR)
> +       @mkdir -p $(DESTDIR)$(CACHEDIR)
> +       @mkdir -p $(DESTDIR)$(RESDIR)
> +
> +install-conf:
> +       @cp *.conf $(DESTDIR)$(CONFDIR)
> +
>
>  # Documentation:
>
> ---------------------------------------------------------------------------

Blindly overwriting files is terrible! The author of that FHS patch
should fix it so those files are only copied if they don't already
exist.



More information about the vdr mailing list