This commit is contained in:
Asaf Romano 2008-07-05 22:24:30 +03:00
Родитель 4f828a2ecd fdcd264207
Коммит 0a196c3dd2
2 изменённых файлов: 30 добавлений и 1 удалений

Просмотреть файл

@ -139,7 +139,7 @@ deb:
$(NSINSTALL) $(topsrcdir)/$(MOZ_BUILD_APP)/installer/debian .
rm -rf $(DEBDESTDIR)/usr/local/*
$(NSINSTALL) -D $(DEBDESTDIR)/usr/local
cd $(DEBDESTDIR)/usr/local; cat ../../../../dist/$(PKG_BASENAME)$(PKG_SUFFIX) | $(UNMAKE_PACKAGE)
cd $(DEBDESTDIR)/usr/local; cat ../../../../$(DEPTH)/dist/$(PKG_BASENAME)$(PKG_SUFFIX) | $(UNMAKE_PACKAGE)
$(NSINSTALL) -D $(DEBDESTDIR)/usr/share/dbus-1/services/
cp debian/$(MOZ_BUILD_APP).service $(DEBDESTDIR)/usr/share/dbus-1/services/org.mozilla.$(MOZ_BUILD_APP).service
ifdef NS_HILDON
@ -147,6 +147,8 @@ ifdef NS_HILDON
$(NSINSTALL) $(DEPTH)/dist/bin/components/libsoftkey.so $(DEBDESTDIR)/usr/local/$(MOZ_BUILD_APP)/components/
$(NSINSTALL) $(DEPTH)/dist/bin/libsoftokn3.* $(DEBDESTDIR)/usr/local/$(MOZ_BUILD_APP)/
endif
$(NSINSTALL) debian/postinst $(DEBDESTDIR)/DEBIAN
$(NSINSTALL) debian/prerm $(DEBDESTDIR)/DEBIAN
dh_shlibdeps; fakeroot dh_gencontrol; fakeroot dh_md5sums; dh_builddeb
endif

Просмотреть файл

@ -0,0 +1,27 @@
#!/bin/sh
# prerm script for moz
#
# see: dh_installdeb(1)
set -e
case "$1" in
remove|upgrade|deconfigure)
/usr/local/xulrunner/xulrunner --unregister-global
;;
failed-upgrade)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
gtk-update-icon-cache /usr/share/icons/hicolor
exit 0