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
44 @INTLTOOL_POLICY_RULE@
48 $(MAKE) -C po update-po
50 DISTCHECK_CONFIGURE_FLAGS = \
51 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
53 # ------------------------------------------------------------------------------
55 AM_V_XSLT = $(AM_V_XSLT_$(V))
56 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
57 AM_V_XSLT_0 = @echo " XSLT " $@;
59 # ------------------------------------------------------------------------------
65 # ------------------------------------------------------------------------------
68 src/scripts/pakfire-build-service \
69 src/scripts/pakfire-hub \
70 src/scripts/pakfire-web
75 buildservice_PYTHON = \
76 src/buildservice/__init__.py \
77 src/buildservice/__version__.py \
78 src/buildservice/arches.py \
79 src/buildservice/base.py \
80 src/buildservice/bugtracker.py \
81 src/buildservice/builders.py \
82 src/buildservice/builds.py \
83 src/buildservice/cache.py \
84 src/buildservice/constants.py \
85 src/buildservice/database.py \
86 src/buildservice/decorators.py \
87 src/buildservice/distribution.py \
88 src/buildservice/geoip.py \
89 src/buildservice/git.py \
90 src/buildservice/jobqueue.py \
91 src/buildservice/jobs.py \
92 src/buildservice/keys.py \
93 src/buildservice/ldap.py \
94 src/buildservice/logs.py \
95 src/buildservice/messages.py \
96 src/buildservice/mirrors.py \
97 src/buildservice/misc.py \
98 src/buildservice/packages.py \
99 src/buildservice/repository.py \
100 src/buildservice/sessions.py \
101 src/buildservice/settings.py \
102 src/buildservice/sources.py \
103 src/buildservice/updates.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 \
122 hubdir = $(buildservicedir)/hub
125 src/web/__init__.py \
129 src/web/builders.py \
131 src/web/distributions.py \
133 src/web/handlers.py \
137 src/web/packages.py \
139 src/web/ui_modules.py \
143 webdir = $(buildservicedir)/web
145 # ------------------------------------------------------------------------------
147 dist_templates_DATA = \
148 src/templates/base.html \
149 src/templates/build-bugs.html \
150 src/templates/build-delete.html \
151 src/templates/build-detail.html \
152 src/templates/build-filter.html \
153 src/templates/build-index.html \
154 src/templates/build-list.html \
155 src/templates/build-manage.html \
156 src/templates/build-priority.html \
157 src/templates/build-queue.html \
158 src/templates/build-schedule-test.html \
159 src/templates/build-state.html \
160 src/templates/builds-watchers-add.html \
161 src/templates/builds-watchers-list.html \
162 src/templates/distro-detail.html \
163 src/templates/distro-edit.html \
164 src/templates/distro-list.html \
165 src/templates/distro-source-commit-detail.html \
166 src/templates/distro-source-commit-reset.html \
167 src/templates/distro-source-commits.html \
168 src/templates/distro-source-detail.html \
169 src/templates/distro-update-detail.html \
170 src/templates/distro-update-edit.html \
171 src/templates/file-detail.html \
172 src/templates/index.html \
173 src/templates/jobs-abort.html \
174 src/templates/jobs-buildroot.html \
175 src/templates/job-schedule-rebuild.html \
176 src/templates/job-schedule-test.html \
177 src/templates/jobs-detail.html \
178 src/templates/keys-delete.html \
179 src/templates/keys-import.html \
180 src/templates/keys-list.html \
181 src/templates/log.html \
182 src/templates/login.html \
183 src/templates/package-detail.html \
184 src/templates/package-detail-list.html \
185 src/templates/package-properties.html \
186 src/templates/queue.html \
187 src/templates/register-activation-fail.html \
188 src/templates/register-activation-success.html \
189 src/templates/register-fail.html \
190 src/templates/register.html \
191 src/templates/register-success.html \
192 src/templates/repository-detail.html \
193 src/templates/repository-edit.html \
194 src/templates/search-form.html \
195 src/templates/search-results.html \
196 src/templates/source-list.html \
197 src/templates/updates-index.html \
198 src/templates/uploads-list.html \
199 src/templates/user-delete.html \
200 src/templates/user-forgot-password.html \
201 src/templates/user-impersonation.html \
202 src/templates/user-list.html \
203 src/templates/user-profile-builds.html \
204 src/templates/user-profile-edit-fail.html \
205 src/templates/user-profile-edit.html \
206 src/templates/user-profile.html \
207 src/templates/user-profile-need-activation.html \
208 src/templates/user-profile-passwd.html \
209 src/templates/user-profile-passwd-ok.html \
210 src/templates/user-requested-password-recovery.html \
211 src/templates/user-reset-password.html \
212 src/templates/user-reset-password-success.html \
213 src/templates/user-reset-password-fail.html
215 templatesdir = $(datadir)/templates
217 dist_templates_builders_DATA = \
218 src/templates/builders/delete.html \
219 src/templates/builders/detail.html \
220 src/templates/builders/edit.html \
221 src/templates/builders/list.html \
222 src/templates/builders/new.html \
223 src/templates/builders/pass.html
225 templates_buildersdir = $(templatesdir)/builders
227 dist_templates_builds_DATA = \
228 src/templates/builds/comments.html
230 templates_buildsdir = $(templatesdir)/builds
232 dist_templates_errors_DATA = \
233 src/templates/errors/error.html \
234 src/templates/errors/error-400.html \
235 src/templates/errors/error-403.html \
236 src/templates/errors/error-404.html
238 templates_errorsdir = $(templatesdir)/errors
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/account-activation.markdown \
255 src/templates/messages/users/email-activation.markdown \
256 src/templates/messages/users/password-reset.markdown
258 templates_messages_usersdir = $(templates_messagesdir)/users
260 dist_templates_mirrors_DATA = \
261 src/templates/mirrors/delete.html \
262 src/templates/mirrors/detail.html \
263 src/templates/mirrors/edit.html \
264 src/templates/mirrors/list.html \
265 src/templates/mirrors/new.html
267 templates_mirrorsdir = $(templatesdir)/mirrors
269 dist_templates_modules_DATA = \
270 src/templates/modules/bugs-table.html \
271 src/templates/modules/build-headline.html \
272 src/templates/modules/build-log.html \
273 src/templates/modules/build-offset.html \
274 src/templates/modules/build-state-warnings.html \
275 src/templates/modules/build-table.html \
276 src/templates/modules/comments-table.html \
277 src/templates/modules/commits-table.html \
278 src/templates/modules/commit-message.html \
279 src/templates/modules/files-table.html \
280 src/templates/modules/footer.html \
281 src/templates/modules/jobs-table.html \
282 src/templates/modules/link-to-user.html \
283 src/templates/modules/log-entry-comment.html \
284 src/templates/modules/log-entry.html \
285 src/templates/modules/log-entry-small.html \
286 src/templates/modules/log-files-table.html \
287 src/templates/modules/log.html \
288 src/templates/modules/log-table.html \
289 src/templates/modules/modal-base.html \
290 src/templates/modules/modal-build-comment.html \
291 src/templates/modules/modal-build-push.html \
292 src/templates/modules/modal-build-unpush.html \
293 src/templates/modules/package-header.html \
294 src/templates/modules/packages-files-table.html \
295 src/templates/modules/packages-table.html \
296 src/templates/modules/package-table-detail.html \
297 src/templates/modules/repo-actions-table.html \
298 src/templates/modules/repository-table.html \
299 src/templates/modules/source-table.html \
300 src/templates/modules/text.html \
301 src/templates/modules/updates-table.html \
302 src/templates/modules/user-table.html \
303 src/templates/modules/watchers-sidebar-table.html
305 templates_modulesdir = $(templatesdir)/modules
307 dist_templates_modules_changelog_DATA = \
308 src/templates/modules/changelog/entry.html \
309 src/templates/modules/changelog/index.html
311 templates_modules_changelogdir = $(templates_modulesdir)/changelog
313 dist_templates_modules_jobs_DATA = \
314 src/templates/modules/jobs/boxes.html \
315 src/templates/modules/jobs/list.html \
316 src/templates/modules/jobs/status.html
318 templates_modules_jobsdir = $(templates_modulesdir)/jobs
320 dist_templates_modules_packages_DATA = \
321 src/templates/modules/packages/dependency-table.html
323 templates_modules_packagesdir = $(templates_modulesdir)/packages
325 dist_templates_modules_select_DATA = \
326 src/templates/modules/select/locale.html \
327 src/templates/modules/select/timezone.html
329 templates_modules_selectdir = $(templates_modulesdir)/select
331 dist_templates_packages_DATA = \
332 src/templates/packages/changelog.html \
333 src/templates/packages/index.html \
334 src/templates/packages/view-file.html
336 templates_packagesdir = $(templatesdir)/packages
338 dist_templates_packages_builds_DATA = \
339 src/templates/packages/builds/scratch.html \
340 src/templates/packages/builds/times.html
342 templates_packages_buildsdir = $(templates_packagesdir)/builds
344 dist_templates_sessions_DATA = \
345 src/templates/sessions/index.html
347 templates_sessionsdir = $(templatesdir)/sessions
349 # ------------------------------------------------------------------------------
352 src/static/favicon.ico \
353 src/static/robots.txt
355 staticdir = $(datadir)/static
357 dist_static_css_DATA = \
358 src/static/css/bootstrap-responsive.min.css \
359 src/static/css/bootstrap.min.css \
360 src/static/css/style.css
362 static_cssdir = $(staticdir)/css
364 dist_static_font_DATA = \
365 src/static/font/fontawesome-webfont.eot \
366 src/static/font/fontawesome-webfont.svg \
367 src/static/font/fontawesome-webfont.ttf \
368 src/static/font/fontawesome-webfont.woff
370 static_fontdir = $(staticdir)/font
372 dist_static_images_DATA = \
373 src/static/images/icons/build-dispatching.png \
374 src/static/images/icons/build-failed.png \
375 src/static/images/icons/build-finished.png \
376 src/static/images/icons/build-pending.png \
377 src/static/images/icons/build-running.png \
378 src/static/images/icons/build-unknown.png \
379 src/static/images/icons/build-uploading.png \
380 src/static/images/icons/build-waiting.png \
381 src/static/images/icons/builder-disabled.png \
382 src/static/images/img01.jpg \
383 src/static/images/img02.jpg \
384 src/static/images/img03.jpg \
385 src/static/images/img04.jpg \
386 src/static/images/ipfire_tux_128x128.png \
387 src/static/images/readme.txt
389 static_imagesdir = $(staticdir)/images
391 dist_static_js_DATA = \
392 src/static/js/bootstrap.min.js \
393 src/static/js/jquery.js \
394 src/static/js/pbs.js \
395 src/static/js/popper.min.js \
396 src/static/js/prettify.js
398 static_jsdir = $(staticdir)/js
400 # ------------------------------------------------------------------------------
411 dockerdir = $(datadir)/docker
415 docker build -t "ipfire/pakfire-build-service:$(PACKAGE_VERSION)" .
417 # ------------------------------------------------------------------------------
420 systemdsystemunit_DATA = \
421 src/systemd/pakfire-hub-1.service \
422 src/systemd/pakfire-hub-2.service \
423 src/systemd/pakfire-web-1.service \
424 src/systemd/pakfire-web-2.service
427 $(systemdsystemunit_DATA)
430 $(systemdsystemunitdir)
434 src/systemd/pakfire-hub-1.service.in \
435 src/systemd/pakfire-hub-2.service.in \
436 src/systemd/pakfire-web-1.service.in \
437 src/systemd/pakfire-web-2.service.in
439 dist_database_DATA = \
442 databasedir = $(datadir)/database
445 src/crontab/pakfire-build-service
448 src/geoip/GeoLite2-Country.mmdb
450 geoipdir = $(datadir)/geoip
453 src/misc/lets-encrypt-x3-cross-signed.pem \
454 src/tools/dump-database-schema.sh \
455 src/tools/update-geoip-database.sh
457 # ------------------------------------------------------------------------------
460 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
461 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
462 '|configsdir=$(configsdir)|' \
463 '|bindir=$(bindir)|' \
464 '|datadir=$(datadir)|' \
465 '|localedir=$(localedir)|' \
466 '|templatesdir=$(templatesdir)|' \
467 '|staticdir=$(staticdir)|'
470 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
471 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \