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@
49 $(MAKE) -C po update-po
51 DISTCHECK_CONFIGURE_FLAGS = \
52 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
54 # ------------------------------------------------------------------------------
56 AM_V_XSLT = $(AM_V_XSLT_$(V))
57 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
58 AM_V_XSLT_0 = @echo " XSLT " $@;
60 # ------------------------------------------------------------------------------
66 # ------------------------------------------------------------------------------
69 src/scripts/pakfire-build-service \
70 src/scripts/pakfire-hub \
71 src/scripts/pakfire-web
76 buildservice_PYTHON = \
77 src/buildservice/__init__.py \
78 src/buildservice/__version__.py \
79 src/buildservice/aws.py \
80 src/buildservice/base.py \
81 src/buildservice/bugtracker.py \
82 src/buildservice/builders.py \
83 src/buildservice/builds.py \
84 src/buildservice/cache.py \
85 src/buildservice/constants.py \
86 src/buildservice/database.py \
87 src/buildservice/decorators.py \
88 src/buildservice/distribution.py \
89 src/buildservice/events.py \
90 src/buildservice/git.py \
91 src/buildservice/jobqueue.py \
92 src/buildservice/jobs.py \
93 src/buildservice/keys.py \
94 src/buildservice/ldap.py \
95 src/buildservice/logs.py \
96 src/buildservice/messages.py \
97 src/buildservice/mirrors.py \
98 src/buildservice/misc.py \
99 src/buildservice/packages.py \
100 src/buildservice/repository.py \
101 src/buildservice/sessions.py \
102 src/buildservice/settings.py \
103 src/buildservice/sources.py \
104 src/buildservice/uploads.py \
105 src/buildservice/users.py
107 buildservicedir = $(pythondir)/buildservice
110 src/buildservice/constants.py
113 src/buildservice/constants.py.in
116 src/buildservice/constants.py
119 src/hub/__init__.py \
121 src/hub/handlers.py \
126 hubdir = $(buildservicedir)/hub
129 src/web/__init__.py \
133 src/web/builders.py \
135 src/web/distributions.py \
138 src/web/handlers.py \
142 src/web/packages.py \
145 src/web/ui_modules.py \
148 webdir = $(buildservicedir)/web
150 # ------------------------------------------------------------------------------
152 dist_templates_DATA = \
153 src/templates/base.html \
154 src/templates/build-delete.html \
155 src/templates/build-manage.html \
156 src/templates/build-schedule-test.html \
157 src/templates/build-state.html \
158 src/templates/builds-watchers-add.html \
159 src/templates/builds-watchers-list.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/file-detail.html \
168 src/templates/index.html \
169 src/templates/jobs-abort.html \
170 src/templates/jobs-buildroot.html \
171 src/templates/keys-delete.html \
172 src/templates/keys-import.html \
173 src/templates/keys-list.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 \
180 src/templates/user-delete.html \
181 src/templates/user-impersonation.html \
182 src/templates/user-list.html \
183 src/templates/user-profile-edit-fail.html \
184 src/templates/user-profile-edit.html \
185 src/templates/user-profile-need-activation.html
187 templatesdir = $(datadir)/templates
189 templates_bugsdir = $(templatesdir)/bugs
191 dist_templates_bugs_modules_DATA = \
192 src/templates/bugs/modules/list.html
194 templates_bugs_modulesdir = $(templates_bugsdir)/modules
196 dist_templates_builders_DATA = \
197 src/templates/builders/delete.html \
198 src/templates/builders/detail.html \
199 src/templates/builders/edit.html \
200 src/templates/builders/list.html \
201 src/templates/builders/new.html \
202 src/templates/builders/pass.html
204 templates_buildersdir = $(templatesdir)/builders
206 dist_templates_builds_DATA = \
207 src/templates/builds/index.html \
208 src/templates/builds/show.html
210 templates_buildsdir = $(templatesdir)/builds
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/system-message.html \
236 src/templates/events/modules/user-message.html
238 templates_events_modulesdir = $(templates_eventsdir)/modules
240 templates_messagesdir = $(templatesdir)/messages
242 dist_templates_messages_builds_DATA = \
243 src/templates/messages/builds/new-comment.markdown
245 templates_messages_buildsdir = $(templates_messagesdir)/builds
247 dist_templates_messages_jobs_DATA = \
248 src/templates/messages/jobs/failed.markdown \
249 src/templates/messages/jobs/finished.markdown
251 templates_messages_jobsdir = $(templates_messagesdir)/jobs
253 dist_templates_messages_users_DATA = \
254 src/templates/messages/users/email-activation.markdown
256 templates_messages_usersdir = $(templates_messagesdir)/users
258 dist_templates_mirrors_DATA = \
259 src/templates/mirrors/delete.html \
260 src/templates/mirrors/detail.html \
261 src/templates/mirrors/edit.html \
262 src/templates/mirrors/list.html \
263 src/templates/mirrors/new.html
265 templates_mirrorsdir = $(templatesdir)/mirrors
267 dist_templates_modules_DATA = \
268 src/templates/modules/build-headline.html \
269 src/templates/modules/build-log.html \
270 src/templates/modules/build-offset.html \
271 src/templates/modules/build-state-warnings.html \
272 src/templates/modules/build-table.html \
273 src/templates/modules/commits-table.html \
274 src/templates/modules/commit-message.html \
275 src/templates/modules/files-table.html \
276 src/templates/modules/jobs-table.html \
277 src/templates/modules/link-to-user.html \
278 src/templates/modules/log-entry-comment.html \
279 src/templates/modules/log-entry.html \
280 src/templates/modules/log-entry-small.html \
281 src/templates/modules/log-files-table.html \
282 src/templates/modules/log.html \
283 src/templates/modules/log-table.html \
284 src/templates/modules/modal-base.html \
285 src/templates/modules/modal-build-comment.html \
286 src/templates/modules/modal-build-push.html \
287 src/templates/modules/modal-build-unpush.html \
288 src/templates/modules/package-header.html \
289 src/templates/modules/packages-files-table.html \
290 src/templates/modules/packages-table.html \
291 src/templates/modules/package-table-detail.html \
292 src/templates/modules/repo-actions-table.html \
293 src/templates/modules/source-table.html \
294 src/templates/modules/text.html \
295 src/templates/modules/user-table.html \
296 src/templates/modules/watchers-sidebar-table.html
298 templates_modulesdir = $(templatesdir)/modules
300 dist_templates_modules_jobs_DATA = \
301 src/templates/modules/jobs/list.html \
302 src/templates/modules/jobs/status.html
304 templates_modules_jobsdir = $(templates_modulesdir)/jobs
306 dist_templates_modules_select_DATA = \
307 src/templates/modules/select/locale.html \
308 src/templates/modules/select/timezone.html
310 templates_modules_selectdir = $(templates_modulesdir)/select
312 dist_templates_repos_DATA = \
313 src/templates/repos/create-custom.html \
314 src/templates/repos/builds.html \
315 src/templates/repos/edit.html \
316 src/templates/repos/show.html
318 templates_reposdir = $(templatesdir)/repos
320 dist_templates_repos_modules_DATA = \
321 src/templates/repos/modules/list.html
323 templates_repos_modulesdir = $(templates_reposdir)/modules
325 dist_templates_packages_DATA = \
326 src/templates/packages/index.html \
327 src/templates/packages/name.html \
328 src/templates/packages/show.html \
329 src/templates/packages/view-file.html
331 templates_packagesdir = $(templatesdir)/packages
333 dist_templates_packages_modules_DATA = \
334 src/templates/packages/modules/dependencies.html \
335 src/templates/packages/modules/info.html
337 templates_packages_modulesdir = $(templates_packagesdir)/modules
339 dist_templates_users_DATA = \
340 src/templates/users/show.html
342 templates_usersdir = $(templatesdir)/users
344 # ------------------------------------------------------------------------------
347 src/static/favicon.ico \
348 src/static/robots.txt
350 staticdir = $(datadir)/static
353 src/static/css/highlight.css \
354 src/static/css/site.css
356 static_cssdir = $(staticdir)/css
359 src/static/css/_fonts.scss \
360 src/static/css/_icons.scss \
361 src/static/css/site.scss
364 src/static/css/site.css
367 src/static/js/foundation.min.js \
368 src/static/js/jquery.min.js \
369 src/static/js/pbs.js \
370 src/static/js/prettify.js
372 static_jsdir = $(staticdir)/js
375 src/static/js/foundation.min.js \
376 src/static/js/jquery.min.js
378 dist_static_fonts_DATA = \
379 src/third-party/fonts/prompt/OFL.txt \
380 src/third-party/fonts/prompt/Prompt-Black.ttf \
381 src/third-party/fonts/prompt/Prompt-BlackItalic.ttf \
382 src/third-party/fonts/prompt/Prompt-Bold.ttf \
383 src/third-party/fonts/prompt/Prompt-BoldItalic.ttf \
384 src/third-party/fonts/prompt/Prompt-ExtraBold.ttf \
385 src/third-party/fonts/prompt/Prompt-ExtraBoldItalic.ttf \
386 src/third-party/fonts/prompt/Prompt-ExtraLight.ttf \
387 src/third-party/fonts/prompt/Prompt-ExtraLightItalic.ttf \
388 src/third-party/fonts/prompt/Prompt-Italic.ttf \
389 src/third-party/fonts/prompt/Prompt-Light.ttf \
390 src/third-party/fonts/prompt/Prompt-LightItalic.ttf \
391 src/third-party/fonts/prompt/Prompt-Medium.ttf \
392 src/third-party/fonts/prompt/Prompt-MediumItalic.ttf \
393 src/third-party/fonts/prompt/Prompt-Regular.ttf \
394 src/third-party/fonts/prompt/Prompt-SemiBold.ttf \
395 src/third-party/fonts/prompt/Prompt-SemiBoldItalic.ttf \
396 src/third-party/fonts/prompt/Prompt-Thin.ttf \
397 src/third-party/fonts/prompt/Prompt-ThinItalic.ttf \
398 src/third-party/Font-Awesome/webfonts/fa-brands-400.ttf \
399 src/third-party/Font-Awesome/webfonts/fa-brands-400.woff2 \
400 src/third-party/Font-Awesome/webfonts/fa-regular-400.ttf \
401 src/third-party/Font-Awesome/webfonts/fa-regular-400.woff2 \
402 src/third-party/Font-Awesome/webfonts/fa-solid-900.ttf \
403 src/third-party/Font-Awesome/webfonts/fa-solid-900.woff2
405 static_fontsdir = $(staticdir)/fonts
407 # ------------------------------------------------------------------------------
410 systemdsystemunit_DATA = \
411 src/systemd/pakfire-hub.service \
412 src/systemd/pakfire-web.service
415 $(systemdsystemunit_DATA)
418 $(systemdsystemunitdir)
422 src/systemd/pakfire-hub.service.in \
423 src/systemd/pakfire-web.service.in
425 dist_database_DATA = \
428 databasedir = $(datadir)/database
431 src/crontab/pakfire-build-service
434 src/tools/dump-database-schema.sh
436 # ------------------------------------------------------------------------------
439 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
440 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
441 '|configsdir=$(configsdir)|' \
442 '|bindir=$(bindir)|' \
443 '|datadir=$(datadir)|' \
444 '|localedir=$(localedir)|' \
445 '|templatesdir=$(templatesdir)|' \
446 '|staticdir=$(staticdir)|'
449 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
450 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
454 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
455 $(UGLIFYJS) --compress --mangle -- $< > $@
461 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
462 $(SASSC) --style compressed $< > $@
464 src/static/css/highlight.css: Makefile
465 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
466 $(PYGMENTIZE) -S xcode -f html -a .highlight > $@
471 src/static/js/foundation.min.js: src/third-party/foundation-sites/dist/js/foundation.js