1 ###############################################################################
3 # Pakfire - The IPFire package management system #
4 # Copyright (C) 2013 Pakfire development team #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22 AM_MAKEFLAGS = --no-print-directory
23 AUTOMAKE_OPTIONS = color-tests
25 # remove target it the command fails
28 # keep itermediate files
33 libexecdir = $(libdir)/pakfire
35 configsdir = $(sysconfdir)/pakfire
36 configsdistrosdir = $(configsdir)/distros
37 macrosdir = $(prefix)/lib/pakfire/macros
38 qualityagentdir = $(prefix)/lib/quality-agent
39 scriptsdir = $(prefix)/lib/$(PACKAGE_NAME)
46 -include $(top_builddir)/config.h \
47 -I $(top_srcdir)/include \
50 AM_CFLAGS = $(OUR_CFLAGS)
51 AM_LDFLAGS = $(OUR_LDFLAGS)
55 pkgpyexec_LTLIBRARIES =
57 DISTCHECK_CONFIGURE_FLAGS = \
58 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
60 @INTLTOOL_POLICY_RULE@
62 # ------------------------------------------------------------------------------
69 # ------------------------------------------------------------------------------
75 $(MKDIR_P) $(DESTDIR)/$(bindir)
76 cd $(DESTDIR)/$(bindir) && \
77 $(LN_S) -vf pakfire pakfire-builder && \
78 $(LN_S) -vf pakfire pakfire-client && \
79 $(LN_S) -vf pakfire pakfire-daemon && \
80 $(LN_S) -vf pakfire pakfire-key
82 $(MKDIR_P) $(DESTDIR)/$(scriptsdir)
83 cd $(DESTDIR)/$(scriptsdir) && \
84 $(LN_S) -vf ../../bin/pakfire builder
86 # ------------------------------------------------------------------------------
89 src/pakfire/__init__.py \
90 src/pakfire/__version__.py \
91 src/pakfire/actions.py \
93 src/pakfire/builder.py \
94 src/pakfire/cgroup.py \
95 src/pakfire/client.py \
97 src/pakfire/compress.py \
98 src/pakfire/config.py \
99 src/pakfire/constants.py \
100 src/pakfire/daemon.py \
101 src/pakfire/distro.py \
102 src/pakfire/downloader.py \
103 src/pakfire/errors.py \
104 src/pakfire/filelist.py \
105 src/pakfire/i18n.py \
106 src/pakfire/keyring.py \
107 src/pakfire/logger.py \
108 src/pakfire/lzma.py \
109 src/pakfire/satsolver.py \
110 src/pakfire/server.py \
111 src/pakfire/shell.py \
112 src/pakfire/system.py \
113 src/pakfire/transaction.py \
114 src/pakfire/transport.py \
117 pakfiredir = $(pythondir)/pakfire
119 # ------------------------------------------------------------------------------
121 pakfire_packages_PYTHON = \
122 src/pakfire/packages/__init__.py \
123 src/pakfire/packages/base.py \
124 src/pakfire/packages/file.py \
125 src/pakfire/packages/installed.py \
126 src/pakfire/packages/lexer.py \
127 src/pakfire/packages/make.py \
128 src/pakfire/packages/packager.py \
129 src/pakfire/packages/solv.py \
130 src/pakfire/packages/tar.py
132 pakfire_packagesdir = $(pythondir)/pakfire/packages
134 # ------------------------------------------------------------------------------
136 pakfire_repository_PYTHON = \
137 src/pakfire/repository/__init__.py \
138 src/pakfire/repository/base.py \
139 src/pakfire/repository/cache.py \
140 src/pakfire/repository/database.py \
141 src/pakfire/repository/index.py \
142 src/pakfire/repository/local.py \
143 src/pakfire/repository/metadata.py \
144 src/pakfire/repository/remote.py \
145 src/pakfire/repository/system.py
147 pakfire_repositorydir = $(pythondir)/pakfire/repository
149 # ------------------------------------------------------------------------------
151 pkgpyexec_LTLIBRARIES += \
155 src/_lzma/_lzmamodule.c
159 $(PYTHON_DEVEL_CFLAGS) \
169 $(PYTHON_DEVEL_LIBS) \
172 # ------------------------------------------------------------------------------
174 pkgpyexec_LTLIBRARIES += \
177 _pakfire_la_SOURCES = \
178 src/_pakfire/_pakfiremodule.c \
179 src/_pakfire/capabilities.c \
180 src/_pakfire/capabilities.h \
181 src/_pakfire/constants.h \
182 src/_pakfire/pool.c \
183 src/_pakfire/pool.h \
184 src/_pakfire/problem.c \
185 src/_pakfire/problem.h \
186 src/_pakfire/relation.c \
187 src/_pakfire/relation.h \
188 src/_pakfire/repo.c \
189 src/_pakfire/repo.h \
190 src/_pakfire/request.c \
191 src/_pakfire/request.h \
192 src/_pakfire/solution.c \
193 src/_pakfire/solution.h \
194 src/_pakfire/solvable.c \
195 src/_pakfire/solvable.h \
196 src/_pakfire/solver.c \
197 src/_pakfire/solver.h \
198 src/_pakfire/step.c \
199 src/_pakfire/step.h \
200 src/_pakfire/transaction.c \
201 src/_pakfire/transaction.h \
202 src/_pakfire/util.c \
205 _pakfire_la_CFLAGS = \
207 $(PYTHON_DEVEL_CFLAGS) \
211 _pakfire_la_LDFLAGS = \
217 _pakfire_la_LIBADD = \
218 $(PYTHON_DEVEL_LIBS) \
222 # ------------------------------------------------------------------------------
225 libpakfire_preload.la
227 libpakfire_preload_la_SOURCES = \
228 src/libpakfire_preload/uname.c
230 libpakfire_preload_la_LDFLAGS = \
236 libpakfire_preload_la_LIBADD = \
239 # ------------------------------------------------------------------------------
241 libexec_PROGRAMS += \
244 debugedit_SOURCES = \
245 src/debugedit/debugedit.c \
246 src/debugedit/hashtab.c \
247 src/debugedit/hashtab.h \
248 src/debugedit/rpmiotypes.h \
249 src/debugedit/rpmsw.h \
250 src/debugedit/rpmtag.h
258 # ------------------------------------------------------------------------------
261 src/scripts/extract-debuginfo \
262 src/scripts/quality-agent
265 src/scripts/extract-debuginfo.in \
266 src/scripts/quality-agent.in
269 src/scripts/extract-debuginfo \
270 src/scripts/quality-agent
272 dist_scripts_SCRIPTS = \
273 src/scripts/chroot-shell \
274 src/scripts/cleanup \
275 src/scripts/compress-man-pages \
276 src/scripts/find-common \
277 src/scripts/find-prerequires \
278 src/scripts/find-provides \
279 src/scripts/find-requires \
281 src/scripts/perl.prov \
282 src/scripts/perl.req \
283 src/scripts/py-compile \
284 src/scripts/remove-static-libs
286 dist_scripts_DATA = \
287 src/scripts/functions-common \
288 src/scripts/functions-constants \
289 src/scripts/functions-directories \
290 src/scripts/functions-files \
291 src/scripts/functions-lists \
292 src/scripts/functions-logging
294 # ------------------------------------------------------------------------------
296 dist_qualityagent_SCRIPTS = \
297 src/quality-agent/001-include-files \
298 src/quality-agent/001-remove-info-files \
299 src/quality-agent/001-unsafe-files \
300 src/quality-agent/002-bad-symlinks \
301 src/quality-agent/003-libs-location \
302 src/quality-agent/050-canary \
303 src/quality-agent/050-execstacks \
304 src/quality-agent/050-invalid-interpreters \
305 src/quality-agent/050-libs-needed \
306 src/quality-agent/050-libs-soname \
307 src/quality-agent/050-libs-x86_64 \
308 src/quality-agent/050-nx \
309 src/quality-agent/050-relro \
310 src/quality-agent/050-rpaths \
311 src/quality-agent/095-directory-layout
313 dist_qualityagent_DATA = \
314 src/quality-agent/qa-include
316 # ------------------------------------------------------------------------------
321 macros/cflags.macro \
322 macros/constants.macro \
323 macros/package-default.macro \
325 macros/python.macro \
326 macros/quality-agent.macro \
327 macros/systemd.macro \
328 macros/templates.macro
330 # ------------------------------------------------------------------------------
333 systemdsystemunit_DATA = \
334 src/systemd/pakfire-daemon.service
337 src/systemd/pakfire-daemon.service.in
340 src/systemd/pakfire-daemon.service
343 # ------------------------------------------------------------------------------
345 dist_configs_DATA = \
346 contrib/config/builder.conf \
347 contrib/config/client.conf \
348 contrib/config/daemon.conf \
349 contrib/config/general.conf
351 dist_configsdistros_DATA = \
352 contrib/config/distros/ipfire3.conf
354 # ------------------------------------------------------------------------------
357 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
358 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
359 '|bindir=$(bindir)|' \
360 '|libexecdir=$(libexecdir)|' \
361 '|qualityagentdir=$(qualityagentdir)|'
364 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
365 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
368 src/scripts/%: src/scripts/%.in Makefile
371 src/systemd/%: src/systemd/%.in Makefile