~ubuntu-branches/ubuntu/jaunty/gnome-screensaver/jaunty

« back to all changes in this revision

Viewing changes to data/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2005-10-10 00:18:18 UTC
  • Revision ID: james.westby@ubuntu.com-20051010001818-3mujs05r8rht7xi1
Tags: upstream-0.0.15
ImportĀ upstreamĀ versionĀ 0.0.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SUBDIRS =                       \
 
2
        images
 
3
 
 
4
NULL =
 
5
 
 
6
@INTLTOOL_SCHEMAS_RULE@
 
7
 
 
8
schemasdir   = @GCONF_SCHEMA_FILE_DIR@
 
9
schemas_in_files = gnome-screensaver.schemas.in
 
10
schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
 
11
 
 
12
@INTLTOOL_DESKTOP_RULE@
 
13
 
 
14
desktopdir = $(datadir)/applications
 
15
desktop_in_files = gnome-screensaver-preferences.desktop.in
 
16
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
17
 
 
18
@INTLTOOL_DIRECTORY_RULE@
 
19
 
 
20
directorydir = $(datadir)/desktop-directories
 
21
directory_in_files =                            \
 
22
        gnome-screensaver.directory.in          \
 
23
        $(NULL)
 
24
directory_DATA = $(directory_in_files:.directory.in=.directory)
 
25
 
 
26
themesdir = $(pkgdatadir)/themes
 
27
 
 
28
menudir = $(sysconfdir)/xdg/menus
 
29
menu_DATA =                                     \
 
30
        gnome-screensavers.menu                 \
 
31
        $(NULL)
 
32
 
 
33
gladedir = $(pkgdatadir)
 
34
glade_DATA = gnome-screensaver-preferences.glade
 
35
 
 
36
EXTRA_DIST =                            \
 
37
        $(schemas_in_files)             \
 
38
        $(desktop_in_files)             \
 
39
        $(directory_in_files)           \
 
40
        $(glade_DATA)                   \
 
41
        gnome-screensaver               \
 
42
        $(NULL)
 
43
 
 
44
DISTCLEANFILES =                        \
 
45
        $(schemas_DATA)                 \
 
46
        $(desktop_DATA)                 \
 
47
        $(directory_DATA)               \
 
48
        $(NULL)
 
49
 
 
50
MAINTAINERCLEANFILES =                  \
 
51
        *~                              \
 
52
        Makefile.in
 
53
 
 
54
if GCONF_SCHEMAS_INSTALL
 
55
# don't do this if we are building in eg. rpm
 
56
install-data-local: $(schemas_DATA)
 
57
        if test -z "$(DESTDIR)" ; then \
 
58
                for p in $(schemas_DATA) ; do \
 
59
                        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p ; \
 
60
                done \
 
61
        fi
 
62
else
 
63
install-data-local:
 
64
endif
 
65
 
 
66
install-data-hook:
 
67
        @system=`uname`; \
 
68
        if test -f /usr/include/security/pam_appl.h; then \
 
69
          if test '!' -d $(DESTDIR)$(PAM_PREFIX)/pam.d; then \
 
70
                $(mkinstalldirs) $(DESTDIR)$(PAM_PREFIX)/pam.d; \
 
71
                chmod 755 $(DESTDIR)$(PAM_PREFIX)/pam.d; \
 
72
           fi; \
 
73
           if test $$system = Linux; then \
 
74
                if test '!' -f $(DESTDIR)$(PAM_PREFIX)/pam.d/gnome-screensaver; then \
 
75
                     $(INSTALL_DATA) gnome-screensaver $(DESTDIR)$(PAM_PREFIX)/pam.d/gnome-screensaver; \
 
76
                fi; \
 
77
                if test "x$(PAM_PREFIX)" != "x/etc/pam.d"; then \
 
78
                     echo "***" ; \
 
79
                     echo "***  Warning: gnome-screensaver has been compiled with support for" ; \
 
80
                     echo "***           Pluggable Authentication Modules (PAM).  However, you may need to" ; \
 
81
                     echo "***           manually install $(PAM_PREFIX)/pam.d/gnome-screensaver" ; \
 
82
                     echo "***           to /etc/pam.d/gnome-screensaver.  Otherwise, unlocking might" ; \
 
83
                     echo "***           not work." ; \
 
84
                     echo "***" ; \
 
85
                     echo "***           Note: If you are using SuSE/Novell you may have to modify this file." ; \
 
86
                     echo "***" ; \
 
87
                fi; \
 
88
           fi; \
 
89
           if test $$system = SunOS; then \
 
90
                echo "***" ; \
 
91
                echo "***  Warning: gnome-screensaver has been compiled with support for" ; \
 
92
                echo "***           Pluggable Authentication Modules (PAM).  However, you" ; \
 
93
                echo "***           need to manually add authentication for gnome-screensaver in" ; \
 
94
                echo "***           $(PAM_PREFIX)/pam.conf or /etc/pam.conf." ; \
 
95
                echo "***           Otherwise, unlocking might not work." ; \
 
96
                echo "***" ; \
 
97
           fi; \
 
98
        fi