aboutsummaryrefslogtreecommitdiffstats
blob: f19f0a3949895d077b277d0aef5dd0165d1a5d87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright (c) 2026 Nikolay Govorov
# SPDX-License-Identifier: AGPL-3.0-or-later

# yaml-language-server: $schema=https://nfpm.goreleaser.com/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

name: mirum
arch: ${ARCH}
version: ${VERSION}
license: AGPL-3.0-or-later
platform: linux
maintainer: Nikolay Govorov <me@govorov.online>
description: Modern CI platform

contents:
  - src: ./LICENSE
    dst: /usr/share/doc/mirum/LICENSE
  - src: ./README.md
    dst: /usr/share/doc/mirum/README.md

  - src: build/mirumd
    dst: /usr/local/bin/mirumd
    file_info:
      mode: 0755

  - src: build/mirumw
    dst: /usr/local/bin/mirumw
    file_info:
      mode: 0755

  - src: pkg/mirumd.yaml
    dst: /etc/mirum/mirumd.yaml
    type: config|noreplace
    file_info:
      mode: 0640
      owner: root
      group: mirumd

  - src: pkg/mirumw-default.yaml
    dst: /etc/mirum/mirumw-default.yaml
    type: config|noreplace
    file_info:
      mode: 0640
      owner: root
      group: mirumw

  - src: pkg/mirumd.service
    dst: /usr/lib/systemd/system/mirumd.service
    file_info:
      mode: 0644

  - src: pkg/mirumw@.service
    dst: /usr/lib/systemd/system/mirumw@.service
    file_info:
      mode: 0644

  - dst: /var/lib/mirumd
    type: dir
    file_info:
      mode: 0750
      owner: mirumd
      group: mirumd

  - dst: /var/lib/mirumw
    type: dir
    file_info:
      mode: 0750
      owner: mirumw
      group: mirumw


scripts:
  preinstall: pkg/scripts/preinstall.sh
  postinstall: pkg/scripts/postinstall.sh
  preremove: pkg/scripts/preremove.sh

deb:
  signature:
    method: debsign
    key_id: ${GPG_KEY_ID}
    key_file: ${SIGNING_PRIVATE_KEY}

rpm:
  group: System Environment/Daemons
  signature:
    key_id: ${GPG_KEY_ID}
    key_file: ${SIGNING_PRIVATE_KEY}