- $(MKDIR) $(DESTDIR)$(working_dir)
-# $(MKDIR) $(DESTDIR)$(mandir)
-
-install-menu: installdirs
- ${INSTALL_DATA} scripts/bacula.png $DESTDIR/usr/share/pixmaps/bacula.png
- ${INSTALL_DATA} scripts/bacula.desktop.gnome1 $DESTDIR/usr/share/gnome/apps/System/bacula.desktop
- ${INSTALL_DATA} scripts/bacula.desktop.gnome2 $DESTDIRusr/share/applications/bacula.desktop
-
-install-menu-consolehelper: installdirs
- ${INSTALL_DATA} scripts/bacula.png $DESTDIR/usr/share/pixmaps/bacula.png
- ${INSTALL_DATA} scripts/bacula.desktop.gnome1.consolehelper $DESTDIR/usr/share/gnome/apps/System/bacula.desktop
- ${INSTALL_DATA} scripts/bacula.desktop.gnome2.consolehelper $DESTDIR/usr/share/applications/bacula.desktop
- ${INSTALL_DATA} scripts/gnome-console.console_apps $DESTDIR/etc/security/console.apps/gnome-console
- ${INSTALL_DATA} scripts/gnome-console.pamd $DESTDIR/etc/pam.d/gnome-console
- ln -s $DESTDIR/usr/bin/consolehelper $DESTDIR/usr/bin/gnome-console
+ $(MKDIR) $(DESTDIR)$(docdir)
+ $(MKDIR) $(DESTDIR)$(archivedir)
+ -if test ! -d $(DESTDIR)$(working_dir) ; then \
+ $(MKDIR) $(DESTDIR)$(working_dir); \
+ chmod 770 $(DESTDIR)$(working_dir); \
+ fi
+ -if test "x$(dir_user)" != "x" ; then \
+ chown $(dir_user) $(DESTDIR)$(working_dir); \
+ fi
+ -if test "x$(dir_group)" != "x" ; then \
+ chgrp $(dir_group) $(DESTDIR)$(working_dir); \
+ fi
+
+gnomedirs:
+ $(MKDIR) $(DESTDIR)/usr/share/pixmaps
+ $(MKDIR) $(DESTDIR)/usr/share/gnome/apps/System
+ $(MKDIR) $(DESTDIR)/usr/share/applications
+ $(MKDIR) $(DESTDIR)/etc/security/console.apps
+ $(MKDIR) $(DESTDIR)/etc/pam.d
+
+install-menu: gnomedirs
+ ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
+ ${INSTALL_DATA} scripts/bacula.desktop.gnome1 $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
+ ${INSTALL_DATA} scripts/bacula.desktop.gnome2 $(DESTDIR)/usr/share/applications/bacula.desktop
+
+install-menu-xsu: gnomedirs
+ ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
+ ${INSTALL_DATA} scripts/bacula.desktop.gnome1.xsu $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
+ ${INSTALL_DATA} scripts/bacula.desktop.gnome2.xsu $(DESTDIR)/usr/share/applications/bacula.desktop
+
+install-menu-consolehelper: gnomedirs
+ ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
+ ${INSTALL_DATA} scripts/bacula.desktop.gnome1.consolehelper $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
+ ${INSTALL_DATA} scripts/bacula.desktop.gnome2.consolehelper $(DESTDIR)/usr/share/applications/bacula.desktop
+ ${INSTALL_DATA} scripts/gnome-console.console_apps $(DESTDIR)/etc/security/console.apps/gnome-console
+ ${INSTALL_DATA} scripts/gnome-console.pamd $(DESTDIR)/etc/pam.d/gnome-console
+ ln -s $(DESTDIR)/usr/bin/consolehelper $(DESTDIR)/usr/bin/gnome-console