summaryrefslogtreecommitdiffstats
path: root/utils/Makefile.am
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:45:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:45:20 +0000
commit9a08cbfcc1ef900a04580f35afe2a4592d7d6030 (patch)
tree004cc7027bca2f2c0bcb5806527c8e0c48df2d6e /utils/Makefile.am
parentInitial commit. (diff)
downloaddpkg-upstream/1.19.8.tar.xz
dpkg-upstream/1.19.8.zip
Adding upstream version 1.19.8.upstream/1.19.8upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'utils/Makefile.am')
-rw-r--r--utils/Makefile.am89
1 files changed, 89 insertions, 0 deletions
diff --git a/utils/Makefile.am b/utils/Makefile.am
new file mode 100644
index 0000000..49c8b1f
--- /dev/null
+++ b/utils/Makefile.am
@@ -0,0 +1,89 @@
+## Process this file with automake to produce Makefile.in
+
+localedir = $(datadir)/locale
+AM_CPPFLAGS = \
+ -DADMINDIR=\"$(admindir)\" \
+ -DLOCALEDIR=\"$(localedir)\" \
+ -DLOGDIR=\"$(logdir)\" \
+ -DSYSCONFDIR=\"$(sysconfdir)\" \
+ -idirafter $(top_srcdir)/lib/compat \
+ -I$(top_builddir) \
+ -I$(top_srcdir)/lib
+
+CLEANFILES = \
+ org.dpkg.pkexec.update-alternatives.policy \
+ $(nil)
+
+EXTRA_DIST = \
+ README.alternatives \
+ update-alternatives.polkit.in \
+ $(test_scripts) \
+ $(nil)
+
+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' \
+ $(nil)
+
+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
+
+update_alternatives_CPPFLAGS = \
+ -DALT_TMP_EXT=\".dpkg-tmp\" \
+ -DADMINDIR_ENVVAR=\"DPKG_ADMINDIR\" \
+ $(AM_CPPFLAGS)
+
+update_alternatives_LDADD = \
+ ../lib/compat/libcompat.la \
+ $(LIBINTL) \
+ $(nil)
+
+sbin_PROGRAMS =
+
+if BUILD_START_STOP_DAEMON
+sbin_PROGRAMS += start-stop-daemon
+
+start_stop_daemon_SOURCES = \
+ start-stop-daemon.c
+
+start_stop_daemon_LDADD = \
+ ../lib/compat/libcompat.la \
+ $(PS_LIBS) \
+ $(KVM_LIBS) \
+ $(nil)
+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
+
+test_tmpdir = t.tmp
+test_scripts = \
+ t/update_alternatives.t
+
+include $(top_srcdir)/check.am
+
+clean-local: check-clean