~jdstrand/firefox/firefox-3.5-apparmor

« back to all changes in this revision

Viewing changes to debian/firefox-3.5.postinst.in

  • Committer: Jamie Strandboge
  • Date: 2009-09-02 14:55:19 UTC
  • Revision ID: jamie@canonical.com-20090902145519-97svx3znnykkcr4m
generalize apparmor profile packaging:
- debian/rules:
 - use .in files for firefox-3.5.postrm, firefox-3.5.preinst,
   usr.bin.firefox.apparmor, README.Debian.in
 - cp instead of dh_install the profile, since we need to rename
- debian/README.Debian.in: use @APPNAME@
- debian/firefox-3.5.postinst.in: use @APPNAME@
- debian/firefox-3.5.postrm.in: use @APPNAME@
- debian/firefox-3.5.preinst.in: use @APPNAME@
- debian/usr.bin.firefox.apparmor.in: use @APPNAME@

debian/apport/firefox-3.5.py: add apparmor info if profile is not disabled

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    touch $LIBDIR/.autoreg
13
13
 
14
14
    # Reload AppArmor profile
15
 
    APP_PROFILE="/etc/apparmor.d/usr.bin.firefox-3.5"
 
15
    APP_PROFILE="/etc/apparmor.d/usr.bin.$APPNAME"
16
16
    if [ -f "$APP_PROFILE" ] && aa-status --enabled 2>/dev/null; then
17
17
        apparmor_parser -r "$APP_PROFILE" || true
18
18
    fi