# HG changeset patch # User Aleksej Bobylev # Date 1507236660 -10800 # Node ID 12f7ed32ddff6acf87316774324b4f5e65d00c6f # Parent 422e41a0b7caac7e043cff0b7631e8e8a8e2f7b0 slitaz-base-files: don't backup-restore the whole /etc ($CONFIG_FILES variable exist), allow to update /etc/init.d/rc.functions diff -r 422e41a0b7ca -r 12f7ed32ddff slitaz-base-files/receipt --- a/slitaz-base-files/receipt Thu Oct 05 15:35:01 2017 +0300 +++ b/slitaz-base-files/receipt Thu Oct 05 23:51:00 2017 +0300 @@ -13,24 +13,28 @@ DEPENDS="gettext-base" -CONFIG_FILES=" -/etc/adduser.conf -/etc/passwd -/etc/fstab -/etc/issue -/etc/hosts -/etc/host.conf -/etc/hostname -/etc/group -/etc/gshadow -/etc/shadow -/etc/daemons.conf -/etc/nsswitch.conf -/etc/networks -/etc/profile -/etc/securetty -/etc/services -/etc/shells" +CONFIG_FILES="\ +/etc/adduser.conf \ +/etc/passwd \ +/etc/fstab \ +/etc/issue \ +/etc/hosts \ +/etc/host.conf \ +/etc/hostname \ +/etc/group \ +/etc/gshadow \ +/etc/shadow \ +/etc/daemons.conf \ +/etc/nsswitch.conf \ +/etc/networks \ +/etc/profile \ +/etc/securetty \ +/etc/services \ +/etc/shells \ +/etc/motd \ +/etc/slitaz-release \ +/etc/slitaz/slitaz.conf \ +/etc/sysctl.conf" # Rules to configure and make the package. compile_rules() @@ -102,7 +106,7 @@ # pre_install() { - cp -a "$1/etc" "$1/tmp/etc.bak" 2>/dev/null + # cp -a "$1/etc" "$1/tmp/etc.bak" 2>/dev/null [ -x "$1/usr/bin/sudo" ] && mv "$1/usr/bin/sudo" "$1/usr/bin/sudo.orig" # Remove old /var/run symlink [ -h "$1/var/run" ] && rm -f "$1/var/run" @@ -111,9 +115,9 @@ post_install() { - if cp -a "$1/tmp/etc.bak"/* "$1/etc"; then - rm -r "$1/tmp/etc.bak" - fi 2>/dev/null + # if cp -a "$1/tmp/etc.bak"/* "$1/etc"; then + # rm -r "$1/tmp/etc.bak" + # fi 2>/dev/null [ -x "$1/usr/bin/sudo.orig" ] && mv -f "$1/usr/bin/sudo.orig" "$1/usr/bin/sudo"