blob: 71873a5ce0f21e3f14e8ae17fa7f770a1742ba50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
## Process this file with automake to produce Makefile.in
AM_CPPFLAGS = \
-DADMINDIR=\"$(admindir)\" \
-DLOCALEDIR=\"$(localedir)\" \
-DLOGDIR=\"$(logdir)\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DRUNSTATEDIR=\"$(runstatedir)\" \
-idirafter $(top_srcdir)/lib/compat \
-I$(top_builddir) \
-I$(top_srcdir)/lib \
# EOL
CLEANFILES = \
org.dpkg.pkexec.update-alternatives.policy \
# EOL
EXTRA_DIST = \
README.alternatives \
update-alternatives.polkit.in \
$(test_scripts) \
# EOL
pkexecdir = $(datadir)/polkit-1/actions
pkexec_DATA =
bin_PROGRAMS =
if BUILD_UPDATE_ALTERNATIVES
pkexec_DATA += org.dpkg.pkexec.update-alternatives.policy
bin_PROGRAMS += update-alternatives
endif
do_polkit_subst = $(SED) \
-e 's,[@]bindir[@],$(bindir),g' \
# EOL
org.dpkg.pkexec.update-alternatives.policy: update-alternatives.polkit.in Makefile
@test -d `dirname $@` || $(MKDIR_P) `dirname $@`
$(AM_V_GEN) GETTEXTDATADIR="$(top_srcdir)/po" \
$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o - \
| $(do_polkit_subst) >$@
update_alternatives_SOURCES = \
update-alternatives.c \
# EOL
update_alternatives_CPPFLAGS = \
-DALT_TMP_EXT=\".dpkg-tmp\" \
-DADMINDIR_ENVVAR=\"DPKG_ADMINDIR\" \
-DINSTDIR_ENVVAR=\"DPKG_ROOT\" \
$(AM_CPPFLAGS) \
# EOL
update_alternatives_LDADD = \
../lib/compat/libcompat.la \
$(LIBINTL) \
# EOL
sbin_PROGRAMS =
if BUILD_START_STOP_DAEMON
sbin_PROGRAMS += start-stop-daemon
start_stop_daemon_SOURCES = \
start-stop-daemon.c \
# EOL
start_stop_daemon_LDADD = \
../lib/compat/libcompat.la \
$(SOCKET_LIBS) \
$(PS_LIBS) \
$(KVM_LIBS) \
# EOL
endif
install-data-local:
if BUILD_UPDATE_ALTERNATIVES
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/alternatives
$(MKDIR_P) $(DESTDIR)$(admindir)/alternatives
$(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
endif
uninstall-local:
rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
TEST_ENV_VARS = \
DPKG_DATADIR=$(top_srcdir)/data \
UA_ROOTDIR_ENVVAR=DPKG_ROOT \
UA_ADMINDIR_ENVVAR=DPKG_ADMINDIR \
UA_ADMINDIR_DEFAULT=$(admindir) \
# EOL
test_tmpdir = t.tmp
test_scripts = \
t/update_alternatives.t \
# EOL
include $(top_srcdir)/build-aux/tap.am
check-local: tap-check
clean-local: tap-clean
|