Package: debhelper
Version: 8.0.0
Severity: wishlist

dh_fixperms doesn't set sane permissions for image files (.png, .gif,
..jpeg, to name a few), cascading stylesheet files (.css) nor
JavaScript fragments (.js).

This could be useful while packaging web applications that provide this
kind of collateral material. I found myself having to write explicit
find statements in debian/rules to overcome this shortcoming of
dh_fixperms while packaging webgui.

A simple solution could be

    # .. fix JavaScript fragments
        complex_doit("find $tmp -type f",
                "-perm -5 -name '*.js'  $find_options -print0",
                "2>/dev/null | xargs -0r chmod 644");

    # .. fix CSS files
        complex_doit("find $tmp -type f",
                "-perm -5 -name '*.css'  $find_options -print0",
                "2>/dev/null | xargs -0r chmod 644");

    # .. fix common webapp image file formats
        complex_doit("find $tmp -type f",
                "-perm -5 \( -name '*.png' -o -name '*.jpg' -o -name '*.gif' \) 
$find_options -print0",
                "2>/dev/null | xargs -0r chmod 644");

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-core2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debhelper depends on:
ii  binutils                      2.20.1-13  The GNU assembler, linker and bina
ii  dpkg-dev                      1.15.8.4   Debian package development tools
ii  file                          5.04-5     Determines file type using "magic"
ii  html2text                     1.3.2a-15  advanced HTML to text converter
ii  man-db                        2.5.7-4    on-line manual pager
ii  perl                          5.10.1-14  Larry Wall's Practical Extraction 
ii  perl-base                     5.10.1-14  minimal Perl system
ii  po-debconf                    1.0.16     tool for managing templates file t

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make                       0.55       tool that converts source archives

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to