[systemd-devel] [PATCH] build-sys: Add --disable-localed configure switch
Miklos Vajna
vmiklos at frugalware.org
Wed Aug 24 15:48:42 PDT 2011
Hi,
Just like timedated, I think localed can go on embedded systems.
Thanks.
-------------- next part --------------
From ab1358c122783eb2bb592c514ea0853c5395d0e0 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos at frugalware.org>
Date: Thu, 25 Aug 2011 00:45:26 +0200
Subject: [PATCH] build-sys: Add --disable-localed configure switch
---
Makefile.am | 52 ++++++++++++++++++++++++++++++++++++++++++----------
configure.ac | 8 ++++++++
2 files changed, 50 insertions(+), 10 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index c1a4a5f..862bb01 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -171,7 +171,6 @@ rootlibexec_PROGRAMS = \
systemd-ac-power \
systemd-detect-virt \
systemd-sysctl \
- systemd-localed \
systemd-logind \
systemd-uaccess
@@ -190,6 +189,11 @@ rootlibexec_PROGRAMS += \
systemd-timedated
endif
+if ENABLE_LOCALED
+rootlibexec_PROGRAMS += \
+ systemd-localed
+endif
+
systemgenerator_PROGRAMS = \
systemd-getty-generator
@@ -234,7 +238,6 @@ dist_pkgsysconf_DATA = \
dist_dbuspolicy_DATA = \
src/org.freedesktop.systemd1.conf \
- src/org.freedesktop.locale1.conf \
src/org.freedesktop.login1.conf
if ENABLE_HOSTNAMED
@@ -247,9 +250,13 @@ dist_dbuspolicy_DATA += \
src/org.freedesktop.timedate1.conf
endif
+if ENABLE_LOCALED
+dist_dbuspolicy_DATA += \
+ src/org.freedesktop.locale1.conf
+endif
+
dist_dbussystemservice_DATA = \
src/org.freedesktop.systemd1.service \
- src/org.freedesktop.locale1.service \
src/org.freedesktop.login1.service
if ENABLE_HOSTNAMED
@@ -262,6 +269,11 @@ dist_dbussystemservice_DATA += \
src/org.freedesktop.timedate1.service
endif
+if ENABLE_LOCALED
+dist_dbussystemservice_DATA += \
+ src/org.freedesktop.locale1.service
+endif
+
dist_udevrules_DATA = \
src/70-uaccess.rules \
src/71-seat.rules
@@ -283,8 +295,7 @@ dbusinterface_DATA = \
org.freedesktop.systemd1.Automount.xml \
org.freedesktop.systemd1.Snapshot.xml \
org.freedesktop.systemd1.Swap.xml \
- org.freedesktop.systemd1.Path.xml \
- org.freedesktop.locale1.xml
+ org.freedesktop.systemd1.Path.xml
if ENABLE_HOSTNAMED
dbusinterface_DATA += \
@@ -296,6 +307,11 @@ dbusinterface_DATA += \
org.freedesktop.timedate1.xml
endif
+if ENABLE_LOCALED
+dbusinterface_DATA += \
+ org.freedesktop.locale1.xml
+endif
+
dist_bashcompletion_DATA = \
src/systemctl-bash-completion.sh
@@ -381,7 +397,6 @@ nodist_systemunit_DATA = \
units/systemd-initctl.service \
units/systemd-logger.service \
units/systemd-shutdownd.service \
- units/systemd-localed.service \
units/systemd-logind.service \
units/systemd-kmsg-syslogd.service \
units/systemd-modules-load.service \
@@ -425,6 +440,11 @@ nodist_systemunit_DATA += \
units/systemd-timedated.service
endif
+if ENABLE_LOCALED
+nodist_systemunit_DATA += \
+ units/systemd-localed.service
+endif
+
dist_userunit_DATA = \
units/user/default.target \
units/user/exit.target
@@ -440,7 +460,6 @@ EXTRA_DIST = \
units/systemd-initctl.service.in \
units/systemd-logger.service.in \
units/systemd-shutdownd.service.in \
- units/systemd-localed.service.in \
units/systemd-logind.service.in \
units/systemd-kmsg-syslogd.service.in \
units/systemd-modules-load.service.in \
@@ -492,6 +511,11 @@ EXTRA_DIST += \
units/systemd-timedated.service.in
endif
+if ENABLE_LOCALED
+EXTRA_DIST += \
+ units/systemd-localed.service.in
+endif
+
if TARGET_FEDORA
dist_systemunit_DATA += \
units/fedora/prefdm.service \
@@ -554,7 +578,6 @@ pkgconfiglib_DATA = \
# Passed through intltool only
polkitpolicy_in_files = \
- src/org.freedesktop.locale1.policy.in \
src/org.freedesktop.login1.policy.in
if ENABLE_HOSTNAMED
@@ -567,6 +590,11 @@ polkitpolicy_in_files += \
src/org.freedesktop.timedate1.policy.in
endif
+if ENABLE_LOCALED
+polkitpolicy_in_files += \
+ src/org.freedesktop.locale1.policy.in
+endif
+
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
src/org.freedesktop.systemd1.policy.in.in
@@ -1791,10 +1819,9 @@ endif
$(LN_S) graphical.target runlevel5.target && \
$(LN_S) reboot.target runlevel6.target )
( cd $(DESTDIR)$(systemunitdir) && \
- rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.locale1.service dbus-org.freedesktop.login1.service autovt at .service && \
+ rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.login1.service autovt at .service && \
$(LN_S) graphical.target default.target && \
$(LN_S) reboot.target ctrl-alt-del.target && \
- $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service && \
$(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service && \
$(LN_S) getty at .service autovt at .service )
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
@@ -1851,6 +1878,11 @@ if ENABLE_TIMEDATED
rm -f dbus-org.freedesktop.timedate1.service && \
$(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
endif
+if ENABLE_LOCALED
+ ( cd $(DESTDIR)$(systemunitdir) && \
+ rm -f dbus-org.freedesktop.locale1.service && \
+ $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
+endif
( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
rm -f systemd-tmpfiles-clean.timer && \
$(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
diff --git a/configure.ac b/configure.ac
index 2795d6c..226480e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -317,6 +317,13 @@ if test "x$enable_timedated" != "xno"; then
fi
AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
+have_localed=no
+AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
+if test "x$enable_localed" != "xno"; then
+ have_localed=yes
+fi
+AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
+
have_gtk=no
AC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
if test "x$enable_gtk" != "xno"; then
@@ -580,6 +587,7 @@ AC_MSG_RESULT([
binfmt: ${have_binfmt}
hostnamed: ${have_hostnamed}
timedated: ${have_timedated}
+ localed: ${have_localed}
plymouth: ${have_plymouth}
prefix: ${prefix}
root dir: ${with_rootdir}
--
1.7.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110825/8ef9ac06/attachment-0001.pgp>
More information about the systemd-devel
mailing list