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/messages.py \
102 src/buildservice/mirrors.py \
103 src/buildservice/misc.py \
104 src/buildservice/packages.py \
105 src/buildservice/repository.py \
106 src/buildservice/sessions.py \
107 src/buildservice/settings.py \
108 src/buildservice/sources.py \
109 src/buildservice/uploads.py \
110 src/buildservice/users.py
112 buildservicedir = $(pythondir)/buildservice
115 src/buildservice/constants.py
118 src/buildservice/constants.py.in
121 src/buildservice/constants.py
124 src/hub/__init__.py \
126 src/hub/handlers.py \
131 hubdir = $(buildservicedir)/hub
134 src/web/__init__.py \
138 src/web/builders.py \
140 src/web/distributions.py \
143 src/web/handlers.py \
147 src/web/packages.py \
150 src/web/ui_modules.py \
153 webdir = $(buildservicedir)/web
155 # ------------------------------------------------------------------------------
157 dist_templates_DATA = \
158 src/templates/base.html \
159 src/templates/build-delete.html \
160 src/templates/build-manage.html \
161 src/templates/build-schedule-test.html \
162 src/templates/build-state.html \
163 src/templates/distro-edit.html \
164 src/templates/distro-source-commit-detail.html \
165 src/templates/distro-source-commit-reset.html \
166 src/templates/distro-source-commits.html \
167 src/templates/distro-source-detail.html \
168 src/templates/distro-update-detail.html \
169 src/templates/distro-update-edit.html \
170 src/templates/file-detail.html \
171 src/templates/index.html \
172 src/templates/jobs-abort.html \
173 src/templates/jobs-buildroot.html \
174 src/templates/log.html \
175 src/templates/login.html \
176 src/templates/package-properties.html \
177 src/templates/queue.html \
178 src/templates/search.html \
179 src/templates/source-list.html
181 templatesdir = $(datadir)/templates
183 templates_bugsdir = $(templatesdir)/bugs
185 dist_templates_bugs_modules_DATA = \
186 src/templates/bugs/modules/list.html
188 templates_bugs_modulesdir = $(templates_bugsdir)/modules
190 dist_templates_builders_DATA = \
191 src/templates/builders/delete.html \
192 src/templates/builders/detail.html \
193 src/templates/builders/edit.html \
194 src/templates/builders/list.html \
195 src/templates/builders/new.html
197 templates_buildersdir = $(templatesdir)/builders
199 dist_templates_builds_DATA = \
200 src/templates/builds/index.html \
201 src/templates/builds/show.html
203 templates_buildsdir = $(templatesdir)/builds
205 dist_templates_builds_messages_DATA = \
206 src/templates/builds/messages/comment.txt \
207 src/templates/builds/messages/failed.txt \
208 src/templates/builds/messages/finished.txt
210 templates_builds_messagesdir = $(templates_buildsdir)/messages
212 dist_templates_builds_modules_DATA = \
213 src/templates/builds/modules/list.html
215 templates_builds_modulesdir = $(templates_buildsdir)/modules
217 dist_templates_distros_DATA = \
218 src/templates/distros/index.html \
219 src/templates/distros/show.html
221 templates_distrosdir = $(templatesdir)/distros
223 dist_templates_errors_DATA = \
224 src/templates/errors/error.html \
225 src/templates/errors/error-400.html \
226 src/templates/errors/error-403.html \
227 src/templates/errors/error-404.html
229 templates_errorsdir = $(templatesdir)/errors
231 templates_eventsdir = $(templatesdir)/events
233 dist_templates_events_modules_DATA = \
234 src/templates/events/modules/list.html \
235 src/templates/events/modules/build-comment.html \
236 src/templates/events/modules/system-message.html \
237 src/templates/events/modules/user-message.html
239 templates_events_modulesdir = $(templates_eventsdir)/modules
241 templates_jobsdir = $(templatesdir)/jobs
243 dist_templates_jobs_messages_DATA = \
244 src/templates/jobs/messages/failed.txt
246 templates_jobs_messagesdir = $(templates_jobsdir)/messages
248 templates_messagesdir = $(templatesdir)/messages
250 dist_templates_mirrors_DATA = \
251 src/templates/mirrors/delete.html \
252 src/templates/mirrors/detail.html \
253 src/templates/mirrors/edit.html \
254 src/templates/mirrors/list.html \
255 src/templates/mirrors/new.html
257 templates_mirrorsdir = $(templatesdir)/mirrors
259 dist_templates_modules_DATA = \
260 src/templates/modules/build-offset.html \
261 src/templates/modules/build-state-warnings.html \
262 src/templates/modules/build-table.html \
263 src/templates/modules/commits-table.html \
264 src/templates/modules/commit-message.html \
265 src/templates/modules/files-table.html \
266 src/templates/modules/link-to-user.html \
267 src/templates/modules/log-files-table.html \
268 src/templates/modules/modal-base.html \
269 src/templates/modules/modal-build-comment.html \
270 src/templates/modules/modal-build-push.html \
271 src/templates/modules/modal-build-unpush.html \
272 src/templates/modules/packages-files-table.html \
273 src/templates/modules/source-table.html \
274 src/templates/modules/text.html
276 templates_modulesdir = $(templatesdir)/modules
278 dist_templates_modules_jobs_DATA = \
279 src/templates/modules/jobs/list.html \
280 src/templates/modules/jobs/status.html
282 templates_modules_jobsdir = $(templates_modulesdir)/jobs
284 dist_templates_repos_DATA = \
285 src/templates/repos/create-custom.html \
286 src/templates/repos/builds.html \
287 src/templates/repos/edit.html \
288 src/templates/repos/show.html
290 templates_reposdir = $(templatesdir)/repos
292 dist_templates_repos_modules_DATA = \
293 src/templates/repos/modules/list.html
295 templates_repos_modulesdir = $(templates_reposdir)/modules
297 dist_templates_packages_DATA = \
298 src/templates/packages/index.html \
299 src/templates/packages/name.html \
300 src/templates/packages/show.html \
301 src/templates/packages/view-file.html
303 templates_packagesdir = $(templatesdir)/packages
305 dist_templates_packages_modules_DATA = \
306 src/templates/packages/modules/dependencies.html \
307 src/templates/packages/modules/info.html
309 templates_packages_modulesdir = $(templates_packagesdir)/modules
311 dist_templates_users_DATA = \
312 src/templates/users/delete.html \
313 src/templates/users/edit.html \
314 src/templates/users/index.html \
315 src/templates/users/show.html
317 templates_usersdir = $(templatesdir)/users
319 dist_templates_users_messages_DATA = \
320 src/templates/users/messages/welcome.txt
322 templates_users_messagesdir = $(templates_usersdir)/messages
324 dist_templates_users_modules_DATA = \
325 src/templates/users/modules/list.html
327 templates_users_modulesdir = $(templates_usersdir)/modules
329 # ------------------------------------------------------------------------------
332 src/static/favicon.ico \
333 src/static/robots.txt
335 staticdir = $(datadir)/static
338 src/static/css/highlight.css \
339 src/static/css/site.css
341 static_cssdir = $(staticdir)/css
344 src/static/css/_fonts.scss \
345 src/static/css/_icons.scss \
346 src/static/css/site.scss
349 src/static/css/site.css
352 src/static/js/foundation.min.js \
353 src/static/js/jquery.min.js \
354 src/static/js/pbs.js \
355 src/static/js/prettify.js
357 static_jsdir = $(staticdir)/js
360 src/static/js/foundation.min.js \
361 src/static/js/jquery.min.js
363 dist_static_fonts_DATA = \
364 src/third-party/fonts/prompt/OFL.txt \
365 src/third-party/fonts/prompt/Prompt-Black.ttf \
366 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
367 src/third-party/fonts/prompt/Prompt-Bold.ttf \
368 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
369 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
370 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
371 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
372 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
373 src/third-party/fonts/prompt/Prompt-Italic.ttf \
374 src/third-party/fonts/prompt/Prompt-Light.ttf \
375 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
376 src/third-party/fonts/prompt/Prompt-Medium.ttf \
377 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
378 src/third-party/fonts/prompt/Prompt-Regular.ttf \
379 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
380 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
381 src/third-party/fonts/prompt/Prompt-Thin.ttf \
382 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
383 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
384 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
385 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
386 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
387 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
388 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
390 static_fontsdir = $(staticdir)/fonts
392 # ------------------------------------------------------------------------------
395 systemdsystemunit_DATA = \
396 src/systemd/pakfire-hub.service \
397 src/systemd/pakfire-web.service
400 $(systemdsystemunit_DATA)
403 $(systemdsystemunitdir)
407 src/systemd/pakfire-hub.service.in \
408 src/systemd/pakfire-web.service.in
410 dist_database_DATA = \
413 databasedir = $(datadir)/database
416 src/crontab/pakfire-build-service
419 src/tools/dump-database-schema.sh
421 # ------------------------------------------------------------------------------
424 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
425 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
426 '|configsdir=$(configsdir)|' \
427 '|bindir=$(bindir)|' \
428 '|datadir=$(datadir)|' \
429 '|localedir=$(localedir)|' \
430 '|templatesdir=$(templatesdir)|' \
431 '|staticdir=$(staticdir)|'
434 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
435 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
439 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
440 $(UGLIFYJS) --compress --mangle -- $< > $@
446 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
447 $(SASSC) --style compressed $< > $@
449 src/static/css/highlight.css: Makefile
450 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
451 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
456 src/static/js/foundation.min.js: src/third-party/foundation-sites/dist/js/foundation.js
459 # ------------------------------------------------------------------------------
462 $(dist_check_SCRIPTS)
464 TESTS_ENVIRONMENT = \
465 PYTHONPATH="$(abs_top_srcdir)/src" \
466 abs_top_srcdir="$(abs_top_srcdir)"
468 dist_check_SCRIPTS = \
482 tests/data/beep-1.3-2.ip3.src.pfm \
483 tests/data/beep-1.3-2.ip3.x86_64.pfm