]> git.deb.at Git - pkg/beep.git/blobdiff - debian/postinst
Imported Debian patch 1.2.2-22
[pkg/beep.git] / debian / postinst
index 9abee6f800794a68cb0bb8edcd4efd64b803f0fc..34b56d525d7a9cfb1649ee5eeda67bb68b057d40 100644 (file)
@@ -22,22 +22,37 @@ if [ "$suid" = "suid root with only group audio executeable" ] ; then
        suid="suid root with only group audio executable"
 fi
 
+# option changes as suggested by #492724
+if [ "$suid" = "suid root for all" ] ; then
+       db_set beep/suid_option "usable for all"
+       suid="usable for all"
+fi
+if [ "$suid" = "suid root with only group audio executable" ] ; then
+       db_set beep/suid_option "usable for group audio"
+       suid="usable for group audio"
+fi
+if [ "$suid" = "not suid at all" ] ; then
+       db_set beep/suid_option "usable only for root"
+       suid="usable only for root"
+fi
+
+
 if [ -x /usr/sbin/dpkg-statoverride ] ; then
        if ! dpkg-statoverride --list /usr/bin/beep >/dev/null ; then
-               if [ "$suid" = "suid root for all" ] ; then
+               if [ "$suid" = "usable for all" ] ; then
                        chmod 4755 /usr/bin/beep
-               elif [ "$suid" = "suid root with only group audio executable" ] ; then
+               elif [ "$suid" = "usable for group audio" ] ; then
                        chmod 4754 /usr/bin/beep
-               elif [ "$suid" = "not suid at all" ] ; then
+               elif [ "$suid" = "usable only for root" ] ; then
                        chmod 0755 /usr/bin/beep
                fi
        fi
 else
-       if [ "$suid" = "suid root for all" ] ; then
+       if [ "$suid" = "usable for all" ] ; then
                chmod 4755 /usr/bin/beep
-       elif [ "$suid" = "suid root with only group audio executable" ] ; then
+       elif [ "$suid" = "usable for group audio" ] ; then
                chmod 4754 /usr/bin/beep
-       elif [ "$suid" = "not suid at all" ] ; then
+       elif [ "$suid" = "usable only for root" ] ; then
                chmod 0755 /usr/bin/beep
        fi
 fi