diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-08-11 22:55:47 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-08-11 22:55:47 -0400 |
commit | 7648bff2717c24e9f5c90ec9e4588eda510aba9d (patch) | |
tree | 2bf4f778fc37036b9343b8f677244d008efd4329 /src/grp-machine/grp-import | |
parent | 799fb8a3d138c075bfde710d093350a60b7ee75b (diff) |
Get grp-machine building
Diffstat (limited to 'src/grp-machine/grp-import')
-rw-r--r-- | src/grp-machine/grp-import/Makefile | 53 | ||||
-rw-r--r-- | src/grp-machine/grp-import/libimport/Makefile | 51 | ||||
-rw-r--r-- | src/grp-machine/grp-import/libimport/import-common.c (renamed from src/grp-machine/grp-import/systemd-import/import-common.c) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/libimport/import-common.h (renamed from src/grp-machine/grp-import/systemd-import/import-common.h) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/libimport/import-compress.c (renamed from src/grp-machine/grp-import/systemd-import/import-compress.c) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/libimport/import-compress.h (renamed from src/grp-machine/grp-import/systemd-import/import-compress.h) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/libimport/qcow2-util.c (renamed from src/grp-machine/grp-import/qcow2-util.c) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/libimport/qcow2-util.h (renamed from src/grp-machine/grp-import/qcow2-util.h) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/libimport/test-qcow2.c (renamed from src/grp-machine/grp-import/test-qcow2.c) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-export/Makefile | 9 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-import/Makefile | 11 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-importd/.gitignore (renamed from src/grp-machine/grp-import/.gitignore) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-importd/Makefile | 32 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-importd/org.freedesktop.import1.conf (renamed from src/grp-machine/grp-import/org.freedesktop.import1.conf) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-importd/org.freedesktop.import1.policy.in (renamed from src/grp-machine/grp-import/org.freedesktop.import1.policy.in) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-importd/org.freedesktop.import1.service (renamed from src/grp-machine/grp-import/org.freedesktop.import1.service) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-pull/Makefile | 11 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-pull/curl-util.c (renamed from src/grp-machine/grp-import/curl-util.c) | 0 | ||||
-rw-r--r-- | src/grp-machine/grp-import/systemd-pull/curl-util.h (renamed from src/grp-machine/grp-import/curl-util.h) | 0 |
19 files changed, 97 insertions, 70 deletions
diff --git a/src/grp-machine/grp-import/Makefile b/src/grp-machine/grp-import/Makefile index 46be93c42f..b996bd4c19 100644 --- a/src/grp-machine/grp-import/Makefile +++ b/src/grp-machine/grp-import/Makefile @@ -20,7 +20,7 @@ # # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <http://www.gnu.org/licenses/>. -include $(dir $(lastword $(MAKEFILE_LIST)))/../../config.mk +include $(dir $(lastword $(MAKEFILE_LIST)))/../../../config.mk include $(topsrcdir)/build-aux/Makefile.head.mk ifneq ($(ENABLE_IMPORTD),) @@ -31,45 +31,11 @@ ifneq ($(HAVE_ZLIB),) ifneq ($(HAVE_BZIP2),) ifneq ($(HAVE_GCRYPT),) -dist_rootlibexec_DATA = \ - src/import/import-pubring.gpg - -nodist_systemunit_DATA += \ - units/systemd-importd.service - -dist_systemunit_DATA_busnames += \ - units/org.freedesktop.import1.busname - -BUSNAMES_TARGET_WANTS += \ - org.freedesktop.import1.busname - -SYSTEM_UNIT_ALIASES += \ - systemd-importd.service dbus-org.freedesktop.import1.service - -dist_dbussystemservice_DATA += \ - src/import/org.freedesktop.import1.service - -dist_dbuspolicy_DATA += \ - src/import/org.freedesktop.import1.conf - -polkitpolicy_files += \ - src/import/org.freedesktop.import1.policy - -manual_tests += \ - test-qcow2 - -test_qcow2_SOURCES = \ - src/import/test-qcow2.c \ - src/import/qcow2-util.c \ - src/import/qcow2-util.h - -test_qcow2_CFLAGS = \ - $(AM_CFLAGS) \ - $(ZLIB_CFLAGS) - -test_qcow2_LDADD = \ - libshared.la \ - $(ZLIB_LIBS) +nested.subdirs += libimport +nested.subdirs += systemd-export +nested.subdirs += systemd-import +nested.subdirs += systemd-importd +nested.subdirs += systemd-pull endif # HAVE_GCRYPT endif # HAVE_BZIP2 @@ -79,11 +45,4 @@ endif # HAVE_LIBCURL endif # ENABLE_IMPORTD -polkitpolicy_in_files += \ - src/import/org.freedesktop.import1.policy.in - -EXTRA_DIST += \ - units/systemd-importd.service.in - - include $(topsrcdir)/build-aux/Makefile.tail.mk diff --git a/src/grp-machine/grp-import/libimport/Makefile b/src/grp-machine/grp-import/libimport/Makefile new file mode 100644 index 0000000000..5691d0bba1 --- /dev/null +++ b/src/grp-machine/grp-import/libimport/Makefile @@ -0,0 +1,51 @@ +# -*- Mode: makefile; indent-tabs-mode: t -*- +# +# This file is part of systemd. +# +# Copyright 2010-2012 Lennart Poettering +# Copyright 2010-2012 Kay Sievers +# Copyright 2013 Zbigniew Jędrzejewski-Szmek +# Copyright 2013 David Strauss +# Copyright 2016 Luke Shumaker +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. +# +# systemd is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with systemd; If not, see <http://www.gnu.org/licenses/>. +include $(dir $(lastword $(MAKEFILE_LIST)))/../../../../config.mk +include $(topsrcdir)/build-aux/Makefile.head.mk + +noinst_LTLIBRARIES += libimport.la + +libimport_la_SOURCES = \ + qcow2-util.c \ + import-common.c \ + import-compress.c + +libimport_la_LIBADD += libbasic.la + +manual_tests += \ + test-qcow2 + +test_qcow2_SOURCES = \ + src/import/test-qcow2.c \ + src/import/qcow2-util.c \ + src/import/qcow2-util.h + +test_qcow2_CFLAGS = \ + $(AM_CFLAGS) \ + $(ZLIB_CFLAGS) + +test_qcow2_LDADD = \ + libshared.la \ + $(ZLIB_LIBS) + +include $(topsrcdir)/build-aux/Makefile.tail.mk diff --git a/src/grp-machine/grp-import/systemd-import/import-common.c b/src/grp-machine/grp-import/libimport/import-common.c index cd69e900ec..cd69e900ec 100644 --- a/src/grp-machine/grp-import/systemd-import/import-common.c +++ b/src/grp-machine/grp-import/libimport/import-common.c diff --git a/src/grp-machine/grp-import/systemd-import/import-common.h b/src/grp-machine/grp-import/libimport/import-common.h index 3abd62e8c3..3abd62e8c3 100644 --- a/src/grp-machine/grp-import/systemd-import/import-common.h +++ b/src/grp-machine/grp-import/libimport/import-common.h diff --git a/src/grp-machine/grp-import/systemd-import/import-compress.c b/src/grp-machine/grp-import/libimport/import-compress.c index 4f1a9891e8..4f1a9891e8 100644 --- a/src/grp-machine/grp-import/systemd-import/import-compress.c +++ b/src/grp-machine/grp-import/libimport/import-compress.c diff --git a/src/grp-machine/grp-import/systemd-import/import-compress.h b/src/grp-machine/grp-import/libimport/import-compress.h index 130afb4cd0..130afb4cd0 100644 --- a/src/grp-machine/grp-import/systemd-import/import-compress.h +++ b/src/grp-machine/grp-import/libimport/import-compress.h diff --git a/src/grp-machine/grp-import/qcow2-util.c b/src/grp-machine/grp-import/libimport/qcow2-util.c index bc50b7d0b3..bc50b7d0b3 100644 --- a/src/grp-machine/grp-import/qcow2-util.c +++ b/src/grp-machine/grp-import/libimport/qcow2-util.c diff --git a/src/grp-machine/grp-import/qcow2-util.h b/src/grp-machine/grp-import/libimport/qcow2-util.h index 6dddac8cdf..6dddac8cdf 100644 --- a/src/grp-machine/grp-import/qcow2-util.h +++ b/src/grp-machine/grp-import/libimport/qcow2-util.h diff --git a/src/grp-machine/grp-import/test-qcow2.c b/src/grp-machine/grp-import/libimport/test-qcow2.c index 15d7c29aef..15d7c29aef 100644 --- a/src/grp-machine/grp-import/test-qcow2.c +++ b/src/grp-machine/grp-import/libimport/test-qcow2.c diff --git a/src/grp-machine/grp-import/systemd-export/Makefile b/src/grp-machine/grp-import/systemd-export/Makefile index d0e8781faf..f8fcbc3cca 100644 --- a/src/grp-machine/grp-import/systemd-export/Makefile +++ b/src/grp-machine/grp-import/systemd-export/Makefile @@ -20,7 +20,7 @@ # # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <http://www.gnu.org/licenses/>. -include $(dir $(lastword $(MAKEFILE_LIST)))/../../../config.mk +include $(dir $(lastword $(MAKEFILE_LIST)))/../../../../config.mk include $(topsrcdir)/build-aux/Makefile.head.mk rootlibexec_PROGRAMS += systemd-export @@ -30,11 +30,7 @@ systemd_export_SOURCES = \ src/import/export-tar.c \ src/import/export-tar.h \ src/import/export-raw.c \ - src/import/export-raw.h \ - src/import/import-common.c \ - src/import/import-common.h \ - src/import/import-compress.c \ - src/import/import-compress.h + src/import/export-raw.h systemd_export_CFLAGS = \ $(AM_CFLAGS) \ @@ -44,6 +40,7 @@ systemd_export_CFLAGS = \ systemd_export_LDADD = \ libshared.la \ + libimport.la \ $(XZ_LIBS) \ $(ZLIB_LIBS) \ $(BZIP2_LIBS) diff --git a/src/grp-machine/grp-import/systemd-import/Makefile b/src/grp-machine/grp-import/systemd-import/Makefile index 301556ffd5..06fd01fcd7 100644 --- a/src/grp-machine/grp-import/systemd-import/Makefile +++ b/src/grp-machine/grp-import/systemd-import/Makefile @@ -20,7 +20,7 @@ # # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <http://www.gnu.org/licenses/>. -include $(dir $(lastword $(MAKEFILE_LIST)))/../../../config.mk +include $(dir $(lastword $(MAKEFILE_LIST)))/../../../../config.mk include $(topsrcdir)/build-aux/Makefile.head.mk rootlibexec_PROGRAMS += systemd-import @@ -29,13 +29,7 @@ systemd_import_SOURCES = \ src/import/import-raw.c \ src/import/import-raw.h \ src/import/import-tar.c \ - src/import/import-tar.h \ - src/import/import-common.c \ - src/import/import-common.h \ - src/import/import-compress.c \ - src/import/import-compress.h \ - src/import/qcow2-util.c \ - src/import/qcow2-util.h + src/import/import-tar.h systemd_import_CFLAGS = \ $(AM_CFLAGS) \ @@ -45,6 +39,7 @@ systemd_import_CFLAGS = \ systemd_import_LDADD = \ libshared.la \ + libimport.la \ $(XZ_LIBS) \ $(ZLIB_LIBS) \ $(BZIP2_LIBS) diff --git a/src/grp-machine/grp-import/.gitignore b/src/grp-machine/grp-import/systemd-importd/.gitignore index 01106e2e68..01106e2e68 100644 --- a/src/grp-machine/grp-import/.gitignore +++ b/src/grp-machine/grp-import/systemd-importd/.gitignore diff --git a/src/grp-machine/grp-import/systemd-importd/Makefile b/src/grp-machine/grp-import/systemd-importd/Makefile index 7911bfce82..1f5bae1267 100644 --- a/src/grp-machine/grp-import/systemd-importd/Makefile +++ b/src/grp-machine/grp-import/systemd-importd/Makefile @@ -20,7 +20,7 @@ # # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <http://www.gnu.org/licenses/>. -include $(dir $(lastword $(MAKEFILE_LIST)))/../../../config.mk +include $(dir $(lastword $(MAKEFILE_LIST)))/../../../../config.mk include $(topsrcdir)/build-aux/Makefile.head.mk rootlibexec_PROGRAMS += systemd-importd @@ -36,4 +36,34 @@ systemd_importd_CFLAGS = \ systemd_importd_LDADD = \ libshared.la +dist_rootlibexec_DATA = \ + src/import/import-pubring.gpg + +nodist_systemunit_DATA += \ + units/systemd-importd.service + +dist_systemunit_DATA_busnames += \ + units/org.freedesktop.import1.busname + +BUSNAMES_TARGET_WANTS += \ + org.freedesktop.import1.busname + +SYSTEM_UNIT_ALIASES += \ + systemd-importd.service dbus-org.freedesktop.import1.service + +dist_dbussystemservice_DATA += \ + src/import/org.freedesktop.import1.service + +dist_dbuspolicy_DATA += \ + src/import/org.freedesktop.import1.conf + +polkitpolicy_files += \ + src/import/org.freedesktop.import1.policy + +polkitpolicy_in_files += \ + src/import/org.freedesktop.import1.policy.in + +EXTRA_DIST += \ + units/systemd-importd.service.in + include $(topsrcdir)/build-aux/Makefile.tail.mk diff --git a/src/grp-machine/grp-import/org.freedesktop.import1.conf b/src/grp-machine/grp-import/systemd-importd/org.freedesktop.import1.conf index ed2539a03b..ed2539a03b 100644 --- a/src/grp-machine/grp-import/org.freedesktop.import1.conf +++ b/src/grp-machine/grp-import/systemd-importd/org.freedesktop.import1.conf diff --git a/src/grp-machine/grp-import/org.freedesktop.import1.policy.in b/src/grp-machine/grp-import/systemd-importd/org.freedesktop.import1.policy.in index 85924ed743..85924ed743 100644 --- a/src/grp-machine/grp-import/org.freedesktop.import1.policy.in +++ b/src/grp-machine/grp-import/systemd-importd/org.freedesktop.import1.policy.in diff --git a/src/grp-machine/grp-import/org.freedesktop.import1.service b/src/grp-machine/grp-import/systemd-importd/org.freedesktop.import1.service index 8fc4c47881..8fc4c47881 100644 --- a/src/grp-machine/grp-import/org.freedesktop.import1.service +++ b/src/grp-machine/grp-import/systemd-importd/org.freedesktop.import1.service diff --git a/src/grp-machine/grp-import/systemd-pull/Makefile b/src/grp-machine/grp-import/systemd-pull/Makefile index 36505edb5b..1ee9fa25de 100644 --- a/src/grp-machine/grp-import/systemd-pull/Makefile +++ b/src/grp-machine/grp-import/systemd-pull/Makefile @@ -20,7 +20,7 @@ # # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <http://www.gnu.org/licenses/>. -include $(dir $(lastword $(MAKEFILE_LIST)))/../../../config.mk +include $(dir $(lastword $(MAKEFILE_LIST)))/../../../../config.mk include $(topsrcdir)/build-aux/Makefile.head.mk rootlibexec_PROGRAMS += systemd-pull @@ -34,14 +34,8 @@ systemd_pull_SOURCES = \ src/import/pull-job.h \ src/import/pull-common.c \ src/import/pull-common.h \ - src/import/import-common.c \ - src/import/import-common.h \ - src/import/import-compress.c \ - src/import/import-compress.h \ src/import/curl-util.c \ - src/import/curl-util.h \ - src/import/qcow2-util.c \ - src/import/qcow2-util.h + src/import/curl-util.h systemd_pull_CFLAGS = \ $(AM_CFLAGS) \ @@ -54,6 +48,7 @@ systemd_pull_CFLAGS = \ -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\" systemd_pull_LDADD = \ + libimport.la \ libshared.la \ $(LIBCURL_LIBS) \ $(XZ_LIBS) \ diff --git a/src/grp-machine/grp-import/curl-util.c b/src/grp-machine/grp-import/systemd-pull/curl-util.c index 9e0d56e5c3..9e0d56e5c3 100644 --- a/src/grp-machine/grp-import/curl-util.c +++ b/src/grp-machine/grp-import/systemd-pull/curl-util.c diff --git a/src/grp-machine/grp-import/curl-util.h b/src/grp-machine/grp-import/systemd-pull/curl-util.h index 296b35d09c..296b35d09c 100644 --- a/src/grp-machine/grp-import/curl-util.h +++ b/src/grp-machine/grp-import/systemd-pull/curl-util.h |