1 ###############################################################################
3 # Pakfire - The IPFire package management system #
4 # Copyright (C) 2017 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 pythondir = $(pyexecdir)/pakfire
35 configsdir = $(sysconfdir)/pakfire
36 crondir = $(sysconfdir)/cron.d
45 @INTLTOOL_POLICY_RULE@
48 update-po: po/POTFILES.in
49 $(MAKE) -C po update-po
51 po/POTFILES.in: Makefile
52 find $(abs_srcdir)/src -not -path "$(abs_srcdir)/src/third-party/*" | \
53 grep -E "\.(html|py|txt)(\.in)?$$" | \
54 sed -e "s@$(abs_srcdir)/@@g" | \
55 LC_COLLATE=C sort > $@
57 DISTCHECK_CONFIGURE_FLAGS = \
58 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
60 # ------------------------------------------------------------------------------
62 AM_V_XSLT = $(AM_V_XSLT_$(V))
63 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
64 AM_V_XSLT_0 = @echo " XSLT " $@;
66 # ------------------------------------------------------------------------------
72 # ------------------------------------------------------------------------------
75 src/scripts/pakfire-build-service \
76 src/scripts/pakfire-web
81 buildservice_PYTHON = \
82 src/buildservice/__init__.py \
83 src/buildservice/__version__.py \
84 src/buildservice/aws.py \
85 src/buildservice/base.py \
86 src/buildservice/bugtracker.py \
87 src/buildservice/builders.py \
88 src/buildservice/builds.py \
89 src/buildservice/cache.py \
90 src/buildservice/config.py \
91 src/buildservice/constants.py \
92 src/buildservice/database.py \
93 src/buildservice/decorators.py \
94 src/buildservice/distribution.py \
95 src/buildservice/errors.py \
96 src/buildservice/events.py \
97 src/buildservice/git.py \
98 src/buildservice/httpclient.py \
99 src/buildservice/jobs.py \
100 src/buildservice/keys.py \
101 src/buildservice/logstreams.py \
102 src/buildservice/messages.py \
103 src/buildservice/mirrors.py \
104 src/buildservice/misc.py \
105 src/buildservice/packages.py \
106 src/buildservice/releasemonitoring.py \
107 src/buildservice/repository.py \
108 src/buildservice/sessions.py \
109 src/buildservice/settings.py \
110 src/buildservice/sources.py \
111 src/buildservice/uploads.py \
112 src/buildservice/users.py
114 buildservicedir = $(pythondir)/buildservice
117 src/buildservice/constants.py
120 src/buildservice/constants.py.in
123 src/buildservice/constants.py
126 src/web/__init__.py \
130 src/web/builders.py \
132 src/web/distributions.py \
135 src/web/handlers.py \
139 src/web/packages.py \
142 src/web/ui_modules.py \
146 webdir = $(buildservicedir)/web
148 # ------------------------------------------------------------------------------
150 dist_templates_DATA = \
151 src/templates/base.html \
152 src/templates/index.html \
153 src/templates/log.html \
154 src/templates/login.html \
155 src/templates/modal.html \
156 src/templates/search.html
158 templatesdir = $(datadir)/templates
160 templates_bugsdir = $(templatesdir)/bugs
162 dist_templates_bugs_modules_DATA = \
163 src/templates/bugs/modules/list.html
165 templates_bugs_modulesdir = $(templates_bugsdir)/modules
167 dist_templates_builders_DATA = \
168 src/templates/builders/delete.html \
169 src/templates/builders/detail.html \
170 src/templates/builders/edit.html \
171 src/templates/builders/list.html \
172 src/templates/builders/new.html
174 templates_buildersdir = $(templatesdir)/builders
176 dist_templates_builders_modules_DATA = \
177 src/templates/builders/modules/stats.html
179 templates_builders_modulesdir = $(templates_buildersdir)/modules
181 dist_templates_builds_DATA = \
182 src/templates/builds/bug.html \
183 src/templates/builds/bug-created.html \
184 src/templates/builds/clone.html \
185 src/templates/builds/delete.html \
186 src/templates/builds/index.html \
187 src/templates/builds/queue.html \
188 src/templates/builds/show.html
190 templates_buildsdir = $(templatesdir)/builds
192 dist_templates_builds_groups_DATA = \
193 src/templates/builds/groups/show.html
195 templates_builds_groupsdir = $(templates_buildsdir)/groups
197 dist_templates_builds_groups_modules_DATA = \
198 src/templates/builds/groups/modules/list.html
200 templates_builds_groups_modulesdir = $(templates_builds_groupsdir)/modules
202 dist_templates_builds_messages_DATA = \
203 src/templates/builds/messages/comment.txt \
204 src/templates/builds/messages/failed.txt \
205 src/templates/builds/messages/finished.txt \
206 src/templates/builds/messages/test-builds-failed.txt
208 templates_builds_messagesdir = $(templates_buildsdir)/messages
210 dist_templates_builds_modules_DATA = \
211 src/templates/builds/modules/list.html \
212 src/templates/builds/modules/watchers.html
214 templates_builds_modulesdir = $(templates_buildsdir)/modules
216 dist_templates_builds_repos_DATA = \
217 src/templates/builds/repos/add.html \
218 src/templates/builds/repos/remove.html
220 templates_builds_reposdir = $(templates_buildsdir)/repos
222 dist_templates_distros_DATA = \
223 src/templates/distros/edit.html \
224 src/templates/distros/index.html \
225 src/templates/distros/show.html
227 templates_distrosdir = $(templatesdir)/distros
229 dist_templates_distros_modules_DATA = \
230 src/templates/distros/modules/list.html
232 templates_distros_modulesdir = $(templates_distrosdir)/modules
234 dist_templates_errors_DATA = \
235 src/templates/errors/error.html
237 templates_errorsdir = $(templatesdir)/errors
239 templates_eventsdir = $(templatesdir)/events
241 dist_templates_events_modules_DATA = \
242 src/templates/events/modules/list.html \
243 src/templates/events/modules/build-comment.html \
244 src/templates/events/modules/system-message.html \
245 src/templates/events/modules/user-message.html
247 templates_events_modulesdir = $(templates_eventsdir)/modules
249 dist_templates_jobs_DATA = \
250 src/templates/jobs/abort.html \
251 src/templates/jobs/log-stream.html \
252 src/templates/jobs/retry.html
254 templates_jobsdir = $(templatesdir)/jobs
256 dist_templates_jobs_messages_DATA = \
257 src/templates/jobs/messages/failed.txt
259 templates_jobs_messagesdir = $(templates_jobsdir)/messages
261 dist_templates_jobs_modules_DATA = \
262 src/templates/jobs/modules/list.html \
263 src/templates/jobs/modules/log-stream.html
265 templates_jobs_modulesdir = $(templates_jobsdir)/modules
267 templates_messagesdir = $(templatesdir)/messages
269 dist_templates_mirrors_DATA = \
270 src/templates/mirrors/delete.html \
271 src/templates/mirrors/edit.html \
272 src/templates/mirrors/index.html \
273 src/templates/mirrors/show.html
275 templates_mirrorsdir = $(templatesdir)/mirrors
277 dist_templates_mirrors_modules_DATA = \
278 src/templates/mirrors/modules/list.html
280 templates_mirrors_modulesdir = $(templates_mirrorsdir)/modules
282 dist_templates_modules_DATA = \
283 src/templates/modules/commits-table.html \
284 src/templates/modules/commit-message.html \
285 src/templates/modules/link-to-user.html \
286 src/templates/modules/packages-files-table.html \
287 src/templates/modules/source-table.html \
288 src/templates/modules/text.html
290 templates_modulesdir = $(templatesdir)/modules
292 dist_templates_repos_DATA = \
293 src/templates/repos/create-custom.html \
294 src/templates/repos/builds.html \
295 src/templates/repos/edit.html \
296 src/templates/repos/show.html
298 templates_reposdir = $(templatesdir)/repos
300 dist_templates_repos_modules_DATA = \
301 src/templates/repos/modules/list.html
303 templates_repos_modulesdir = $(templates_reposdir)/modules
305 dist_templates_packages_DATA = \
306 src/templates/packages/index.html \
307 src/templates/packages/name.html \
308 src/templates/packages/show.html \
309 src/templates/packages/view-file.html
311 templates_packagesdir = $(templatesdir)/packages
313 dist_templates_packages_modules_DATA = \
314 src/templates/packages/modules/dependencies.html \
315 src/templates/packages/modules/info.html
317 templates_packages_modulesdir = $(templates_packagesdir)/modules
319 dist_templates_users_DATA = \
320 src/templates/users/delete.html \
321 src/templates/users/edit.html \
322 src/templates/users/index.html \
323 src/templates/users/show.html
325 templates_usersdir = $(templatesdir)/users
327 dist_templates_users_messages_DATA = \
328 src/templates/users/messages/welcome.txt
330 templates_users_messagesdir = $(templates_usersdir)/messages
332 dist_templates_users_modules_DATA = \
333 src/templates/users/modules/list.html
335 templates_users_modulesdir = $(templates_usersdir)/modules
337 # ------------------------------------------------------------------------------
340 src/static/favicon.ico \
341 src/static/robots.txt
343 staticdir = $(datadir)/static
346 src/static/css/site.css
348 static_cssdir = $(staticdir)/css
351 src/static/css/_fonts.scss \
352 src/static/css/_icons.scss \
353 src/static/css/site.scss
356 src/static/css/site.css
359 src/static/js/builders-stats.min.js \
360 src/static/js/jquery.min.js \
361 src/static/js/job-log-stream.min.js \
362 src/static/js/pbs.min.js
364 static_jsdir = $(staticdir)/js
367 src/static/js/builders-stats.js \
368 src/static/js/job-log-stream.js \
374 dist_static_fonts_DATA = \
375 src/third-party/fonts/prompt/OFL.txt \
376 src/third-party/fonts/prompt/Prompt-Black.ttf \
377 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
378 src/third-party/fonts/prompt/Prompt-Bold.ttf \
379 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
380 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
381 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
382 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
383 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
384 src/third-party/fonts/prompt/Prompt-Italic.ttf \
385 src/third-party/fonts/prompt/Prompt-Light.ttf \
386 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
387 src/third-party/fonts/prompt/Prompt-Medium.ttf \
388 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
389 src/third-party/fonts/prompt/Prompt-Regular.ttf \
390 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
391 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
392 src/third-party/fonts/prompt/Prompt-Thin.ttf \
393 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
394 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
395 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
396 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
397 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
398 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
399 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
401 static_fontsdir = $(staticdir)/fonts
403 # ------------------------------------------------------------------------------
406 systemdsystemunit_DATA = \
407 src/systemd/pakfire-web.service
410 $(systemdsystemunit_DATA)
413 $(systemdsystemunitdir)
417 src/systemd/pakfire-web.service.in
419 dist_database_DATA = \
422 databasedir = $(datadir)/database
425 src/crontab/pakfire-build-service
428 src/tools/dump-database-schema.sh
430 # ------------------------------------------------------------------------------
433 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
434 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
435 '|configsdir=$(configsdir)|' \
436 '|bindir=$(bindir)|' \
437 '|datadir=$(datadir)|' \
438 '|localedir=$(localedir)|' \
439 '|templatesdir=$(templatesdir)|' \
440 '|staticdir=$(staticdir)|'
443 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
444 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
448 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
449 $(UGLIFYJS) --compress --mangle -- $< > $@
455 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
456 $(SASSC) --style compressed $< > $@
458 src/static/css/highlight.css: Makefile
459 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
460 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
465 # ------------------------------------------------------------------------------
468 $(dist_check_SCRIPTS)
470 TESTS_ENVIRONMENT = \
471 PYTHONPATH="$(abs_top_srcdir)/src" \
472 abs_top_srcdir="$(abs_top_srcdir)"
474 dist_check_SCRIPTS = \
488 tests/data/beep-1.3-2.ip3.src.pfm \
489 tests/data/beep-1.3-2.ip3.x86_64.pfm