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/httpclient.py \
98 src/buildservice/jobs.py \
99 src/buildservice/keys.py \
100 src/buildservice/logstreams.py \
101 src/buildservice/messages.py \
102 src/buildservice/mirrors.py \
103 src/buildservice/misc.py \
104 src/buildservice/packages.py \
105 src/buildservice/releasemonitoring.py \
106 src/buildservice/repository.py \
107 src/buildservice/sessions.py \
108 src/buildservice/settings.py \
109 src/buildservice/sources.py \
110 src/buildservice/uploads.py \
111 src/buildservice/users.py
113 buildservicedir = $(pythondir)/buildservice
116 src/buildservice/constants.py
119 src/buildservice/constants.py.in
122 src/buildservice/constants.py
125 src/web/__init__.py \
129 src/web/builders.py \
131 src/web/distributions.py \
134 src/web/handlers.py \
138 src/web/monitorings.py \
139 src/web/packages.py \
143 src/web/ui_modules.py \
147 webdir = $(buildservicedir)/web
149 # ------------------------------------------------------------------------------
151 dist_templates_DATA = \
152 src/templates/base.html \
153 src/templates/index.html \
154 src/templates/log.html \
155 src/templates/login.html \
156 src/templates/modal.html \
157 src/templates/search.html
159 templatesdir = $(datadir)/templates
161 templates_bugsdir = $(templatesdir)/bugs
163 dist_templates_bugs_modules_DATA = \
164 src/templates/bugs/modules/list.html
166 templates_bugs_modulesdir = $(templates_bugsdir)/modules
168 dist_templates_builders_DATA = \
169 src/templates/builders/delete.html \
170 src/templates/builders/edit.html \
171 src/templates/builders/index.html \
172 src/templates/builders/new.html \
173 src/templates/builders/show.html
175 templates_buildersdir = $(templatesdir)/builders
177 dist_templates_builders_modules_DATA = \
178 src/templates/builders/modules/stats.html
180 templates_builders_modulesdir = $(templates_buildersdir)/modules
182 dist_templates_builds_DATA = \
183 src/templates/builds/bug.html \
184 src/templates/builds/bug-created.html \
185 src/templates/builds/clone.html \
186 src/templates/builds/delete.html \
187 src/templates/builds/index.html \
188 src/templates/builds/queue.html \
189 src/templates/builds/show.html
191 templates_buildsdir = $(templatesdir)/builds
193 dist_templates_builds_groups_DATA = \
194 src/templates/builds/groups/show.html
196 templates_builds_groupsdir = $(templates_buildsdir)/groups
198 dist_templates_builds_groups_modules_DATA = \
199 src/templates/builds/groups/modules/list.html
201 templates_builds_groups_modulesdir = $(templates_builds_groupsdir)/modules
203 dist_templates_builds_messages_DATA = \
204 src/templates/builds/messages/comment.txt \
205 src/templates/builds/messages/failed.txt \
206 src/templates/builds/messages/finished.txt \
207 src/templates/builds/messages/test-builds-failed.txt
209 templates_builds_messagesdir = $(templates_buildsdir)/messages
211 dist_templates_builds_modules_DATA = \
212 src/templates/builds/modules/list.html \
213 src/templates/builds/modules/watchers.html
215 templates_builds_modulesdir = $(templates_buildsdir)/modules
217 dist_templates_builds_repos_DATA = \
218 src/templates/builds/repos/add.html \
219 src/templates/builds/repos/remove.html
221 templates_builds_reposdir = $(templates_buildsdir)/repos
223 dist_templates_distros_DATA = \
224 src/templates/distros/edit.html \
225 src/templates/distros/index.html \
226 src/templates/distros/show.html
228 templates_distrosdir = $(templatesdir)/distros
230 dist_templates_distros_modules_DATA = \
231 src/templates/distros/modules/list.html
233 templates_distros_modulesdir = $(templates_distrosdir)/modules
235 dist_templates_monitorings_DATA = \
236 src/templates/monitorings/delete.html \
237 src/templates/monitorings/edit.html \
238 src/templates/monitorings/show.html
240 templates_monitoringsdir = $(templatesdir)/monitorings
242 dist_templates_monitorings_modules_DATA = \
243 src/templates/monitorings/modules/releases-list.html
245 templates_monitorings_modulesdir = $(templates_monitoringsdir)/modules
247 dist_templates_errors_DATA = \
248 src/templates/errors/error.html
250 templates_errorsdir = $(templatesdir)/errors
252 templates_eventsdir = $(templatesdir)/events
254 dist_templates_events_modules_DATA = \
255 src/templates/events/modules/list.html \
256 src/templates/events/modules/build-comment.html \
257 src/templates/events/modules/system-message.html \
258 src/templates/events/modules/user-message.html
260 templates_events_modulesdir = $(templates_eventsdir)/modules
262 dist_templates_jobs_DATA = \
263 src/templates/jobs/abort.html \
264 src/templates/jobs/log-stream.html \
265 src/templates/jobs/retry.html
267 templates_jobsdir = $(templatesdir)/jobs
269 dist_templates_jobs_messages_DATA = \
270 src/templates/jobs/messages/failed.txt
272 templates_jobs_messagesdir = $(templates_jobsdir)/messages
274 dist_templates_jobs_modules_DATA = \
275 src/templates/jobs/modules/list.html \
276 src/templates/jobs/modules/log-stream.html
278 templates_jobs_modulesdir = $(templates_jobsdir)/modules
280 templates_messagesdir = $(templatesdir)/messages
282 dist_templates_mirrors_DATA = \
283 src/templates/mirrors/delete.html \
284 src/templates/mirrors/edit.html \
285 src/templates/mirrors/index.html \
286 src/templates/mirrors/show.html
288 templates_mirrorsdir = $(templatesdir)/mirrors
290 dist_templates_mirrors_modules_DATA = \
291 src/templates/mirrors/modules/list.html
293 templates_mirrors_modulesdir = $(templates_mirrorsdir)/modules
295 dist_templates_modules_DATA = \
296 src/templates/modules/commits-table.html \
297 src/templates/modules/commit-message.html \
298 src/templates/modules/link-to-user.html \
299 src/templates/modules/packages-files-table.html \
300 src/templates/modules/source-table.html \
301 src/templates/modules/text.html
303 templates_modulesdir = $(templatesdir)/modules
305 dist_templates_repos_DATA = \
306 src/templates/repos/create-custom.html \
307 src/templates/repos/builds.html \
308 src/templates/repos/delete.html \
309 src/templates/repos/edit.html \
310 src/templates/repos/show.html
312 templates_reposdir = $(templatesdir)/repos
314 dist_templates_repos_modules_DATA = \
315 src/templates/repos/modules/list.html
317 templates_repos_modulesdir = $(templates_reposdir)/modules
319 dist_templates_sources_DATA = \
320 src/templates/sources/show.html
322 templates_sourcesdir = $(templatesdir)/sources
324 dist_templates_sources_modules_DATA = \
325 src/templates/sources/modules/commits.html \
326 src/templates/sources/modules/list.html
328 templates_sources_modulesdir = $(templates_sourcesdir)/modules
330 dist_templates_packages_DATA = \
331 src/templates/packages/index.html \
332 src/templates/packages/name.html \
333 src/templates/packages/show.html \
334 src/templates/packages/view-file.html
336 templates_packagesdir = $(templatesdir)/packages
338 dist_templates_packages_modules_DATA = \
339 src/templates/packages/modules/dependencies.html \
340 src/templates/packages/modules/info.html
342 templates_packages_modulesdir = $(templates_packagesdir)/modules
344 dist_templates_users_DATA = \
345 src/templates/users/delete.html \
346 src/templates/users/edit.html \
347 src/templates/users/index.html \
348 src/templates/users/show.html \
349 src/templates/users/subscribe.html
351 templates_usersdir = $(templatesdir)/users
353 dist_templates_users_messages_DATA = \
354 src/templates/users/messages/welcome.txt
356 templates_users_messagesdir = $(templates_usersdir)/messages
358 dist_templates_users_modules_DATA = \
359 src/templates/users/modules/list.html \
360 src/templates/users/modules/push-subscribe-button.html
362 templates_users_modulesdir = $(templates_usersdir)/modules
364 # ------------------------------------------------------------------------------
367 src/static/favicon.ico \
368 src/static/robots.txt
370 staticdir = $(datadir)/static
373 src/static/css/site.css
375 static_cssdir = $(staticdir)/css
378 src/static/css/_fonts.scss \
379 src/static/css/_icons.scss \
380 src/static/css/site.scss
383 src/static/css/site.css
386 src/static/js/builders-stats.min.js \
387 src/static/js/jquery.min.js \
388 src/static/js/job-log-stream.min.js \
389 src/static/js/notification-worker.min.js \
390 src/static/js/pbs.min.js \
391 src/static/js/user-push-subscribe-button.min.js
393 static_jsdir = $(staticdir)/js
396 src/static/js/builders-stats.js \
397 src/static/js/job-log-stream.js \
398 src/static/js/notification-worker.js \
399 src/static/js/pbs.js \
400 src/static/js/user-push-subscribe-button.js
405 dist_static_fonts_DATA = \
406 src/third-party/fonts/prompt/OFL.txt \
407 src/third-party/fonts/prompt/Prompt-Black.ttf \
408 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
409 src/third-party/fonts/prompt/Prompt-Bold.ttf \
410 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
411 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
412 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
413 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
414 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
415 src/third-party/fonts/prompt/Prompt-Italic.ttf \
416 src/third-party/fonts/prompt/Prompt-Light.ttf \
417 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
418 src/third-party/fonts/prompt/Prompt-Medium.ttf \
419 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
420 src/third-party/fonts/prompt/Prompt-Regular.ttf \
421 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
422 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
423 src/third-party/fonts/prompt/Prompt-Thin.ttf \
424 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
425 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
426 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
427 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
428 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
429 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
430 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
432 static_fontsdir = $(staticdir)/fonts
434 # ------------------------------------------------------------------------------
437 systemdsystemunit_DATA = \
438 src/systemd/pakfire-web.service
441 $(systemdsystemunit_DATA)
444 $(systemdsystemunitdir)
448 src/systemd/pakfire-web.service.in
450 dist_database_DATA = \
453 databasedir = $(datadir)/database
456 src/crontab/pakfire-build-service
459 src/tools/dump-database-schema.sh
461 # ------------------------------------------------------------------------------
464 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
465 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
466 '|configsdir=$(configsdir)|' \
467 '|bindir=$(bindir)|' \
468 '|datadir=$(datadir)|' \
469 '|localedir=$(localedir)|' \
470 '|templatesdir=$(templatesdir)|' \
471 '|staticdir=$(staticdir)|'
474 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
475 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
479 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
480 $(UGLIFYJS) --compress --mangle -- $< > $@
486 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
487 $(SASSC) --style compressed $< > $@
489 src/static/css/highlight.css: Makefile
490 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
491 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
496 # ------------------------------------------------------------------------------
499 $(dist_check_SCRIPTS)
501 TESTS_ENVIRONMENT = \
502 PYTHONPATH="$(abs_top_srcdir)/src" \
503 abs_top_srcdir="$(abs_top_srcdir)"
505 dist_check_SCRIPTS = \
519 tests/data/beep-1.3-2.ip3.src.pfm \
520 tests/data/beep-1.3-2.ip3.x86_64.pfm