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-hub \
77 src/scripts/pakfire-web
82 buildservice_PYTHON = \
83 src/buildservice/__init__.py \
84 src/buildservice/__version__.py \
85 src/buildservice/aws.py \
86 src/buildservice/base.py \
87 src/buildservice/bugtracker.py \
88 src/buildservice/builders.py \
89 src/buildservice/builds.py \
90 src/buildservice/cache.py \
91 src/buildservice/config.py \
92 src/buildservice/constants.py \
93 src/buildservice/database.py \
94 src/buildservice/decorators.py \
95 src/buildservice/distribution.py \
96 src/buildservice/events.py \
97 src/buildservice/git.py \
98 src/buildservice/jobqueue.py \
99 src/buildservice/jobs.py \
100 src/buildservice/keys.py \
101 src/buildservice/ldap.py \
102 src/buildservice/messages.py \
103 src/buildservice/mirrors.py \
104 src/buildservice/misc.py \
105 src/buildservice/packages.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/hub/__init__.py \
127 src/hub/handlers.py \
132 hubdir = $(buildservicedir)/hub
135 src/web/__init__.py \
139 src/web/builders.py \
141 src/web/distributions.py \
144 src/web/handlers.py \
148 src/web/packages.py \
151 src/web/ui_modules.py \
154 webdir = $(buildservicedir)/web
156 # ------------------------------------------------------------------------------
158 dist_templates_DATA = \
159 src/templates/base.html \
160 src/templates/build-delete.html \
161 src/templates/build-manage.html \
162 src/templates/build-schedule-test.html \
163 src/templates/build-state.html \
164 src/templates/builds-watchers-add.html \
165 src/templates/builds-watchers-list.html \
166 src/templates/distro-edit.html \
167 src/templates/distro-source-commit-detail.html \
168 src/templates/distro-source-commit-reset.html \
169 src/templates/distro-source-commits.html \
170 src/templates/distro-source-detail.html \
171 src/templates/distro-update-detail.html \
172 src/templates/distro-update-edit.html \
173 src/templates/file-detail.html \
174 src/templates/index.html \
175 src/templates/jobs-abort.html \
176 src/templates/jobs-buildroot.html \
177 src/templates/log.html \
178 src/templates/login.html \
179 src/templates/package-properties.html \
180 src/templates/queue.html \
181 src/templates/search.html \
182 src/templates/source-list.html
184 templatesdir = $(datadir)/templates
186 templates_bugsdir = $(templatesdir)/bugs
188 dist_templates_bugs_modules_DATA = \
189 src/templates/bugs/modules/list.html
191 templates_bugs_modulesdir = $(templates_bugsdir)/modules
193 dist_templates_builders_DATA = \
194 src/templates/builders/delete.html \
195 src/templates/builders/detail.html \
196 src/templates/builders/edit.html \
197 src/templates/builders/list.html \
198 src/templates/builders/new.html
200 templates_buildersdir = $(templatesdir)/builders
202 dist_templates_builds_DATA = \
203 src/templates/builds/index.html \
204 src/templates/builds/show.html
206 templates_buildsdir = $(templatesdir)/builds
208 dist_templates_builds_modules_DATA = \
209 src/templates/builds/modules/list.html
211 templates_builds_modulesdir = $(templates_buildsdir)/modules
213 dist_templates_distros_DATA = \
214 src/templates/distros/index.html \
215 src/templates/distros/show.html
217 templates_distrosdir = $(templatesdir)/distros
219 dist_templates_errors_DATA = \
220 src/templates/errors/error.html \
221 src/templates/errors/error-400.html \
222 src/templates/errors/error-403.html \
223 src/templates/errors/error-404.html
225 templates_errorsdir = $(templatesdir)/errors
227 templates_eventsdir = $(templatesdir)/events
229 dist_templates_events_modules_DATA = \
230 src/templates/events/modules/list.html \
231 src/templates/events/modules/build-comment.html \
232 src/templates/events/modules/system-message.html \
233 src/templates/events/modules/user-message.html
235 templates_events_modulesdir = $(templates_eventsdir)/modules
237 templates_messagesdir = $(templatesdir)/messages
239 dist_templates_messages_builds_DATA = \
240 src/templates/messages/builds/new-comment.markdown
242 templates_messages_buildsdir = $(templates_messagesdir)/builds
244 dist_templates_messages_jobs_DATA = \
245 src/templates/messages/jobs/failed.markdown \
246 src/templates/messages/jobs/finished.markdown
248 templates_messages_jobsdir = $(templates_messagesdir)/jobs
250 dist_templates_messages_users_DATA = \
251 src/templates/messages/users/email-activation.markdown
253 templates_messages_usersdir = $(templates_messagesdir)/users
255 dist_templates_mirrors_DATA = \
256 src/templates/mirrors/delete.html \
257 src/templates/mirrors/detail.html \
258 src/templates/mirrors/edit.html \
259 src/templates/mirrors/list.html \
260 src/templates/mirrors/new.html
262 templates_mirrorsdir = $(templatesdir)/mirrors
264 dist_templates_modules_DATA = \
265 src/templates/modules/build-headline.html \
266 src/templates/modules/build-offset.html \
267 src/templates/modules/build-state-warnings.html \
268 src/templates/modules/build-table.html \
269 src/templates/modules/commits-table.html \
270 src/templates/modules/commit-message.html \
271 src/templates/modules/files-table.html \
272 src/templates/modules/link-to-user.html \
273 src/templates/modules/log-files-table.html \
274 src/templates/modules/modal-base.html \
275 src/templates/modules/modal-build-comment.html \
276 src/templates/modules/modal-build-push.html \
277 src/templates/modules/modal-build-unpush.html \
278 src/templates/modules/packages-files-table.html \
279 src/templates/modules/source-table.html \
280 src/templates/modules/text.html
282 templates_modulesdir = $(templatesdir)/modules
284 dist_templates_modules_jobs_DATA = \
285 src/templates/modules/jobs/list.html \
286 src/templates/modules/jobs/status.html
288 templates_modules_jobsdir = $(templates_modulesdir)/jobs
290 dist_templates_modules_select_DATA = \
291 src/templates/modules/select/locale.html \
292 src/templates/modules/select/timezone.html
294 templates_modules_selectdir = $(templates_modulesdir)/select
296 dist_templates_repos_DATA = \
297 src/templates/repos/create-custom.html \
298 src/templates/repos/builds.html \
299 src/templates/repos/edit.html \
300 src/templates/repos/show.html
302 templates_reposdir = $(templatesdir)/repos
304 dist_templates_repos_modules_DATA = \
305 src/templates/repos/modules/list.html
307 templates_repos_modulesdir = $(templates_reposdir)/modules
309 dist_templates_packages_DATA = \
310 src/templates/packages/index.html \
311 src/templates/packages/name.html \
312 src/templates/packages/show.html \
313 src/templates/packages/view-file.html
315 templates_packagesdir = $(templatesdir)/packages
317 dist_templates_packages_modules_DATA = \
318 src/templates/packages/modules/dependencies.html \
319 src/templates/packages/modules/info.html
321 templates_packages_modulesdir = $(templates_packagesdir)/modules
323 dist_templates_users_DATA = \
324 src/templates/users/delete.html \
325 src/templates/users/edit.html \
326 src/templates/users/index.html \
327 src/templates/users/show.html
329 templates_usersdir = $(templatesdir)/users
331 dist_templates_users_modules_DATA = \
332 src/templates/users/modules/list.html
334 templates_users_modulesdir = $(templates_usersdir)/modules
336 # ------------------------------------------------------------------------------
339 src/static/favicon.ico \
340 src/static/robots.txt
342 staticdir = $(datadir)/static
345 src/static/css/highlight.css \
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/foundation.min.js \
360 src/static/js/jquery.min.js \
361 src/static/js/pbs.js \
362 src/static/js/prettify.js
364 static_jsdir = $(staticdir)/js
367 src/static/js/foundation.min.js \
368 src/static/js/jquery.min.js
370 dist_static_fonts_DATA = \
371 src/third-party/fonts/prompt/OFL.txt \
372 src/third-party/fonts/prompt/Prompt-Black.ttf \
373 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
374 src/third-party/fonts/prompt/Prompt-Bold.ttf \
375 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
376 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
377 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
378 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
379 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
380 src/third-party/fonts/prompt/Prompt-Italic.ttf \
381 src/third-party/fonts/prompt/Prompt-Light.ttf \
382 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
383 src/third-party/fonts/prompt/Prompt-Medium.ttf \
384 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
385 src/third-party/fonts/prompt/Prompt-Regular.ttf \
386 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
387 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
388 src/third-party/fonts/prompt/Prompt-Thin.ttf \
389 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
390 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
391 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
392 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
393 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
394 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
395 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
397 static_fontsdir = $(staticdir)/fonts
399 # ------------------------------------------------------------------------------
402 systemdsystemunit_DATA = \
403 src/systemd/pakfire-hub.service \
404 src/systemd/pakfire-web.service
407 $(systemdsystemunit_DATA)
410 $(systemdsystemunitdir)
414 src/systemd/pakfire-hub.service.in \
415 src/systemd/pakfire-web.service.in
417 dist_database_DATA = \
420 databasedir = $(datadir)/database
423 src/crontab/pakfire-build-service
426 src/tools/dump-database-schema.sh
428 # ------------------------------------------------------------------------------
431 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
432 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
433 '|configsdir=$(configsdir)|' \
434 '|bindir=$(bindir)|' \
435 '|datadir=$(datadir)|' \
436 '|localedir=$(localedir)|' \
437 '|templatesdir=$(templatesdir)|' \
438 '|staticdir=$(staticdir)|'
441 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
442 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
446 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
447 $(UGLIFYJS) --compress --mangle -- $< > $@
453 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
454 $(SASSC) --style compressed $< > $@
456 src/static/css/highlight.css: Makefile
457 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
458 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
463 src/static/js/foundation.min.js: src/third-party/foundation-sites/dist/js/foundation.js
466 # ------------------------------------------------------------------------------
469 $(dist_check_SCRIPTS)
471 TESTS_ENVIRONMENT = \
472 PYTHONPATH="$(abs_top_srcdir)/src" \
473 abs_top_srcdir="$(abs_top_srcdir)"
475 dist_check_SCRIPTS = \
488 tests/data/beep-1.3-2.ip3.src.pfm \
489 tests/data/beep-1.3-2.ip3.x86_64.pfm