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/errors.py \
97 src/buildservice/events.py \
98 src/buildservice/git.py \
99 src/buildservice/jobqueue.py \
100 src/buildservice/jobs.py \
101 src/buildservice/keys.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/distro-edit.html \
161 src/templates/distro-source-commit-detail.html \
162 src/templates/distro-source-commit-reset.html \
163 src/templates/distro-source-commits.html \
164 src/templates/distro-source-detail.html \
165 src/templates/distro-update-detail.html \
166 src/templates/distro-update-edit.html \
167 src/templates/index.html \
168 src/templates/jobs-abort.html \
169 src/templates/jobs-buildroot.html \
170 src/templates/log.html \
171 src/templates/login.html \
172 src/templates/queue.html \
173 src/templates/search.html \
174 src/templates/source-list.html
176 templatesdir = $(datadir)/templates
178 templates_bugsdir = $(templatesdir)/bugs
180 dist_templates_bugs_modules_DATA = \
181 src/templates/bugs/modules/list.html
183 templates_bugs_modulesdir = $(templates_bugsdir)/modules
185 dist_templates_builders_DATA = \
186 src/templates/builders/delete.html \
187 src/templates/builders/detail.html \
188 src/templates/builders/edit.html \
189 src/templates/builders/list.html \
190 src/templates/builders/new.html
192 templates_buildersdir = $(templatesdir)/builders
194 dist_templates_builds_DATA = \
195 src/templates/builds/delete.html \
196 src/templates/builds/index.html \
197 src/templates/builds/show.html
199 templates_buildsdir = $(templatesdir)/builds
201 dist_templates_builds_messages_DATA = \
202 src/templates/builds/messages/comment.txt \
203 src/templates/builds/messages/failed.txt \
204 src/templates/builds/messages/finished.txt
206 templates_builds_messagesdir = $(templates_buildsdir)/messages
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
222 templates_errorsdir = $(templatesdir)/errors
224 templates_eventsdir = $(templatesdir)/events
226 dist_templates_events_modules_DATA = \
227 src/templates/events/modules/list.html \
228 src/templates/events/modules/build-comment.html \
229 src/templates/events/modules/system-message.html \
230 src/templates/events/modules/user-message.html
232 templates_events_modulesdir = $(templates_eventsdir)/modules
234 templates_jobsdir = $(templatesdir)/jobs
236 dist_templates_jobs_messages_DATA = \
237 src/templates/jobs/messages/failed.txt
239 templates_jobs_messagesdir = $(templates_jobsdir)/messages
241 templates_messagesdir = $(templatesdir)/messages
243 dist_templates_mirrors_DATA = \
244 src/templates/mirrors/delete.html \
245 src/templates/mirrors/detail.html \
246 src/templates/mirrors/edit.html \
247 src/templates/mirrors/list.html \
248 src/templates/mirrors/new.html
250 templates_mirrorsdir = $(templatesdir)/mirrors
252 dist_templates_modules_DATA = \
253 src/templates/modules/build-offset.html \
254 src/templates/modules/build-state-warnings.html \
255 src/templates/modules/build-table.html \
256 src/templates/modules/commits-table.html \
257 src/templates/modules/commit-message.html \
258 src/templates/modules/link-to-user.html \
259 src/templates/modules/modal-base.html \
260 src/templates/modules/modal-build-comment.html \
261 src/templates/modules/modal-build-push.html \
262 src/templates/modules/modal-build-unpush.html \
263 src/templates/modules/packages-files-table.html \
264 src/templates/modules/source-table.html \
265 src/templates/modules/text.html
267 templates_modulesdir = $(templatesdir)/modules
269 dist_templates_modules_jobs_DATA = \
270 src/templates/modules/jobs/list.html \
271 src/templates/modules/jobs/status.html
273 templates_modules_jobsdir = $(templates_modulesdir)/jobs
275 dist_templates_repos_DATA = \
276 src/templates/repos/create-custom.html \
277 src/templates/repos/builds.html \
278 src/templates/repos/edit.html \
279 src/templates/repos/show.html
281 templates_reposdir = $(templatesdir)/repos
283 dist_templates_repos_modules_DATA = \
284 src/templates/repos/modules/list.html
286 templates_repos_modulesdir = $(templates_reposdir)/modules
288 dist_templates_packages_DATA = \
289 src/templates/packages/index.html \
290 src/templates/packages/name.html \
291 src/templates/packages/show.html \
292 src/templates/packages/view-file.html
294 templates_packagesdir = $(templatesdir)/packages
296 dist_templates_packages_modules_DATA = \
297 src/templates/packages/modules/dependencies.html \
298 src/templates/packages/modules/info.html
300 templates_packages_modulesdir = $(templates_packagesdir)/modules
302 dist_templates_users_DATA = \
303 src/templates/users/delete.html \
304 src/templates/users/edit.html \
305 src/templates/users/index.html \
306 src/templates/users/show.html
308 templates_usersdir = $(templatesdir)/users
310 dist_templates_users_messages_DATA = \
311 src/templates/users/messages/welcome.txt
313 templates_users_messagesdir = $(templates_usersdir)/messages
315 dist_templates_users_modules_DATA = \
316 src/templates/users/modules/list.html
318 templates_users_modulesdir = $(templates_usersdir)/modules
320 # ------------------------------------------------------------------------------
323 src/static/favicon.ico \
324 src/static/robots.txt
326 staticdir = $(datadir)/static
329 src/static/css/highlight.css \
330 src/static/css/site.css
332 static_cssdir = $(staticdir)/css
335 src/static/css/_fonts.scss \
336 src/static/css/_icons.scss \
337 src/static/css/site.scss
340 src/static/css/site.css
343 src/static/js/jquery.min.js \
344 src/static/js/pbs.js \
345 src/static/js/prettify.js
347 static_jsdir = $(staticdir)/js
350 src/static/js/jquery.min.js
352 dist_static_fonts_DATA = \
353 src/third-party/fonts/prompt/OFL.txt \
354 src/third-party/fonts/prompt/Prompt-Black.ttf \
355 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
356 src/third-party/fonts/prompt/Prompt-Bold.ttf \
357 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
358 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
359 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
360 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
361 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
362 src/third-party/fonts/prompt/Prompt-Italic.ttf \
363 src/third-party/fonts/prompt/Prompt-Light.ttf \
364 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
365 src/third-party/fonts/prompt/Prompt-Medium.ttf \
366 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
367 src/third-party/fonts/prompt/Prompt-Regular.ttf \
368 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
369 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
370 src/third-party/fonts/prompt/Prompt-Thin.ttf \
371 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
372 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
373 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
374 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
375 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
376 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
377 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
379 static_fontsdir = $(staticdir)/fonts
381 # ------------------------------------------------------------------------------
384 systemdsystemunit_DATA = \
385 src/systemd/pakfire-hub.service \
386 src/systemd/pakfire-web.service
389 $(systemdsystemunit_DATA)
392 $(systemdsystemunitdir)
396 src/systemd/pakfire-hub.service.in \
397 src/systemd/pakfire-web.service.in
399 dist_database_DATA = \
402 databasedir = $(datadir)/database
405 src/crontab/pakfire-build-service
408 src/tools/dump-database-schema.sh
410 # ------------------------------------------------------------------------------
413 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
414 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
415 '|configsdir=$(configsdir)|' \
416 '|bindir=$(bindir)|' \
417 '|datadir=$(datadir)|' \
418 '|localedir=$(localedir)|' \
419 '|templatesdir=$(templatesdir)|' \
420 '|staticdir=$(staticdir)|'
423 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
424 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
428 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
429 $(UGLIFYJS) --compress --mangle -- $< > $@
435 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
436 $(SASSC) --style compressed $< > $@
438 src/static/css/highlight.css: Makefile
439 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
440 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
445 # ------------------------------------------------------------------------------
448 $(dist_check_SCRIPTS)
450 TESTS_ENVIRONMENT = \
451 PYTHONPATH="$(abs_top_srcdir)/src" \
452 abs_top_srcdir="$(abs_top_srcdir)"
454 dist_check_SCRIPTS = \
468 tests/data/beep-1.3-2.ip3.src.pfm \
469 tests/data/beep-1.3-2.ip3.x86_64.pfm