backuppc: fix build with host detected par2
authorDirk Neukirchen <redacted>
Wed, 3 Mar 2021 13:23:01 +0000 (14:23 +0100)
committerDirk Neukirchen <redacted>
Sat, 6 Mar 2021 17:09:32 +0000 (18:09 +0100)
Makefile does not overwrite par2 path
if par2 is available on build-host it is detected
and then the patch with fixup-config-pl.patch
in install fails because hunk 2 cannot be applied

hunk 2 has $Conf{ParPath}   = ''; - so provide an empty path

Signed-off-by: Dirk Neukirchen <redacted>
admin/backuppc/Makefile

index 431e34bbf44ba12cf8e6c0657547450f63ff845d..1217eb27d1f1bcd6419c7c215d1fe06c102541ca 100644 (file)
@@ -54,7 +54,8 @@ define Package/backuppc/install
            --bin-path smbclient=/usr/sbin/smbclient --bin-path nmblookup=/usr/sbin/nmblookup \
            --bin-path rsync=/usr/bin/rsync --bin-path ping=/usr/bin/ping --bin-path df=/bin/df \
            --bin-path ssh=/usr/bin/ssh --bin-path gzip=/bin/gzip \
-           --bin-path sendmail=/usr/sbin/sendmail --bin-path bzip2=/usr/bin/bzip2
+           --bin-path sendmail=/usr/sbin/sendmail --bin-path bzip2=/usr/bin/bzip2 \
+           --bin-path par2=
        $(INSTALL_DIR) $(strip $(1))/usr/share/backuppc/conf
        chmod 755 $(strip $(1))/data
        mv $(strip $(1))/data/backuppc/conf/config.pl $(strip $(1))/usr/share/backuppc/conf/config.pl
git clone https://git.99rst.org/PROJECT