Commit graph

51 commits

Author SHA1 Message Date
6cbf7d4009 whitespace cleanup in batch-viz.sh 2023-09-11 11:10:03 +02:00
61575c0f79 git.robur.io is now git.robur.coop 2023-06-03 15:34:42 +02:00
62965d4f90 FreeBSD rc script: restart the service on termination 2023-05-27 20:06:44 +02:00
ab45412a7c Merge pull request 'Visualization script enhancements' (#136) from viz-script-fixes into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/136
2023-03-13 14:44:26 +00:00
Robur
4cc81f9950 visualizations.sh: use curly braces for variables 2023-03-13 14:43:54 +00:00
a68025ecf0 FreeBSD-repo.sh: do not exit if grep fails 2022-08-29 13:33:32 +02:00
7a9949fc5e Hook scripts must end in .sh, FreeBSD packaging
- Only hook scripts that end in .sh are executed.
- When packaging for FreeBSD, batch-viz.sh and visualizations.sh are
  installed with a .sample extension. Addresses #137
2022-08-26 18:23:23 +02:00
1924781bb6 batch-viz: Get UUIDs with distinct inputs
This should result in less complaints about visualizations already
existing.
2022-08-26 13:18:30 +02:00
aa1af6c2bd visualizations.sh: use cp;rm instead of mv in /tmp
mktemp creates a file with mode 0600 and group wheel (inherited from
/tmp/). The command mv is then not able to set group ownership to wheel
in /var/db/builder-web/ on FreeBSD and emits a warning. Furthermore, the
restrictive permissions are preserved. Copying and then removing the
temporary file avoids these issues.
2022-08-26 12:01:09 +02:00
ac8c31f2ac packaging: Add visualization dependencies (#135)
We now package opam-graph and modulectomy separately.

Reviewed-on: https://git.robur.io/robur/builder-web/pulls/135
Co-authored-by: Reynir Björnsson <reynir@reynir.dk>
Co-committed-by: Reynir Björnsson <reynir@reynir.dk>
2022-08-25 10:30:50 +00:00
08b16adb1f FreeBSD/create_package.sh: Do not quote glob 2022-07-05 09:37:59 +02:00
19242b816c Fix FreeBSD packaging paths 2022-07-05 09:11:33 +02:00
824cb2d30d Add conffiles erroneosly omitted previously
It should have been part of 949dbab501.
2022-06-24 12:13:25 +02:00
949dbab501 Package visualization & repo scripts (#123)
The repo scripts are installed in 'share' as examples.

Reviewed-on: https://git.robur.io/robur/builder-web/pulls/123
Co-authored-by: Reynir Björnsson <reynir@reynir.dk>
Co-committed-by: Reynir Björnsson <reynir@reynir.dk>
2022-06-23 09:51:55 +00:00
932b0c963e create_package.sh: quote variables 2022-06-22 12:37:57 +02:00
bac3b3c64b debian: put binaries in sbin, libexec
builder-db and builder-migrations require privileges, and builder-web is
expected to be run from systemd.
2022-06-22 12:31:13 +02:00
66a9d293e6 visualizations.sh: refactoring and error handling
- Specify the sqlite3 query as a command line argument
- Fail more often
2022-06-22 10:50:26 +02:00
09a180c3cd Automatic viz migration on builder-web startup (#111)
Co-authored-by: rand00 <oth.rand@gmail.com>
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/111
Co-authored-by: Reynir Björnsson <reynir@reynir.dk>
Co-committed-by: Reynir Björnsson <reynir@reynir.dk>
2022-06-08 10:18:46 +00:00
73fbb59377 ensure version string is what we expect 2022-05-31 10:38:11 +02:00
27b40c63a1 fix version numbering for FreeBSD repository, see #114
To allow mixing of tags with git revisions, append a dummy ".0.g0000000" to
FreeBSD packages that originate from a tag.
2022-05-31 10:38:11 +02:00
15baa605a0 packaging: sha256 is encoded as hex, not base64 2022-05-19 15:12:41 +02:00
rand00
9a8f902d3c packaging/visualizations.sh: Failing when unsupported platform 2022-03-23 20:54:35 +01:00
rand00
140d661254 packaging/visualizations.sh: Made compatible with Linux too 2022-03-21 13:51:23 +01:00
9ab6921105 dpkg-repo: repackage in TMP/pkg, use TMP as output directory
This avoids the deb file containing itself, and having a /builder-... installed.
2022-03-07 18:37:17 +01:00
65f29ad8aa rename FreeBSD package to builder-web 2022-03-03 15:26:04 +01:00
9cb0e2683c FreeBSD package repository: use . as separator when checking whether package already exists 2022-02-28 15:09:25 +01:00
Robur
078d48730d Debian package repository: take aptly repo vs publish into account 2022-02-25 13:34:24 +00:00
Robur
ca5b16a161 Debian repo script: no need to pass architectures 2022-02-25 13:20:13 +00:00
Robur
9406edbc9e Debian repository: set HOME variable 2022-02-25 11:54:00 +00:00
Robur
5f7e37fb4c Debian packaging: set Architecture to the target architecture 2022-02-25 10:54:51 +00:00
Robur
83daa044d5 FreeBSD packaging: normalize version (use . instead of -) 2022-02-25 10:48:16 +00:00
Robur
8e3eafbad1 packaging: add version numbers and comparison script 2022-02-25 10:41:43 +00:00
443bcd1a19 package repos: use '.' instead of '-' as version separator on FreeBSD 2022-02-25 10:40:26 +00:00
6f3c89c91d display visualizations from cache, generate visualizations on upload (#90)
This is #88 (reading visualiations from the cache directory), together with shell scripts that can be used as upload hooks to generate the visualizations.

Co-authored-by: rand00 <oth.rand@gmail.com>
Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Co-authored-by: Reynir Björnsson <reynir@reynir.dk>
Co-authored-by: Robur <team@robur.coop>
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/90
Co-authored-by: hannes <hannes@mehnert.org>
Co-committed-by: hannes <hannes@mehnert.org>
2022-02-24 11:52:05 +00:00
d5f4dc8732 FreeBSD and dpkg package repository creation and scripts (#84)
Add scripts that create package repositories (as upload-hook)

Both dpkg based and FreeBSD based ones are supported.

Addresses #73 and #65

Co-authored-by: Hannes Mehnert <hannes@mehnert.org>
Co-authored-by: Reynir Björnsson <reynir@reynir.dk>
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/84
Co-authored-by: hannes <hannes@mehnert.org>
Co-committed-by: hannes <hannes@mehnert.org>
2022-02-23 16:08:26 +00:00
c5e09f4ba3 Fix packaging
- Insert missing '>' in debian copyright file
- Install builder-viz

Fixes #75
2022-02-07 14:02:34 +00:00
31971c8e6e debian postinst: fix user/group mixup 2021-11-14 13:47:51 +01:00
Robur
b514a6a43d FreeBSD Manifest: fix syntax 2021-11-12 14:03:28 +00:00
Robur
fb9391fe61 Prepare for initial public release 2021-11-12 13:42:26 +00:00
Robur
b43c6f4d79 Refactor default_datadir into library builder_system 2021-11-12 13:22:43 +00:00
bb4decad71 FreeBSD packaging: add builder user and group, create /var/db/builder-web 2021-11-12 12:54:24 +01:00
3fa6e9c174 debian: add postinst script
Fixes #54
2021-11-12 11:18:40 +01:00
Robur
579f9d38e6 debian packaging: install meta files and systemd script with 644 permissions 2021-11-02 10:28:47 +00:00
fc734dc2cd improve packaging: use sh -ex 2021-08-02 15:44:38 +02:00
3ba9b93365 debian: fix datadir path
Use the builder-web datadir, not the builder datadir(!)
2021-07-29 17:21:56 +02:00
68db07067d debian: fix --datadir typo 2021-07-29 16:58:52 +02:00
147163a92b debian: correct sqlite3 dependency
It is called libsqlite3-0 and not libsqlite3 for whatever reason.
2021-07-29 16:36:44 +02:00
bd0ab7f554 packaging: install README.md 2021-06-30 16:15:36 +02:00
robur
2ada9881ff debian packaging 2021-06-29 09:41:05 +00:00
Robur
987230c15f improve FreeBSD and orb packaging 2021-06-24 10:46:27 +00:00