Add packaging stuff (just .deb for now)
This commit is contained in:
parent
64e22e7728
commit
c2f2c4d57d
@ -20,6 +20,57 @@ dockers:
|
||||
- "tardisx/linkwallet"
|
||||
build_flag_templates:
|
||||
- "--platform=linux/amd64"
|
||||
nfpms:
|
||||
-
|
||||
id: default
|
||||
package_name: linkwallet
|
||||
file_name_template: "{{ .ConventionalFileName }}"
|
||||
builds:
|
||||
replacements:
|
||||
darwin: darwin
|
||||
linux: linux
|
||||
windows: windows
|
||||
386: 386
|
||||
amd64: amd64_v1
|
||||
vendor:
|
||||
maintainer: Justin Hawkins <justin@hawkins.id.au>
|
||||
description: |-
|
||||
A self-hosted bookmark database with full-text page content search.
|
||||
formats:
|
||||
# - apk
|
||||
- deb
|
||||
# - rpm
|
||||
dependencies:
|
||||
recommends:
|
||||
suggests:
|
||||
conflicts:
|
||||
replaces:
|
||||
epoch:
|
||||
prerelease:
|
||||
version_metadata:
|
||||
release:
|
||||
section: default
|
||||
priority: extra
|
||||
meta: false
|
||||
scripts:
|
||||
preinstall: "etc/preinstall.sh"
|
||||
postinstall: "etc/postinstall.sh"
|
||||
preremove: "etc/preremove.sh"
|
||||
postremove: "etc/postremove.sh"
|
||||
contents:
|
||||
- src: etc/linkwallet.service
|
||||
dst: /lib/systemd/system/linkwallet.service
|
||||
file_info:
|
||||
mode: 0664
|
||||
#mtime: 2008-01-02T15:04:05Z
|
||||
owner: root
|
||||
group: root
|
||||
- dst: /var/lib/linkwallet
|
||||
type: dir
|
||||
file_info:
|
||||
mode: 0700
|
||||
owner: linkwallet
|
||||
group: linkwallet
|
||||
archives:
|
||||
- replacements:
|
||||
darwin: Darwin
|
||||
|
10
etc/linkwallet.service
Normal file
10
etc/linkwallet.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=linkwallet
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/linkwallet -db-path /var/lib/linkwallet/linkwallet.db
|
||||
User=linkwallet
|
||||
Group=linkwallet
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
5
etc/postinstall.sh
Normal file
5
etc/postinstall.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable linkwallet
|
||||
systemctl start linkwallet
|
4
etc/postremove.sh
Normal file
4
etc/postremove.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
userdel linkwallet
|
||||
systemctl daemon-reload
|
3
etc/preinstall.sh
Normal file
3
etc/preinstall.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
useradd linkwallet
|
4
etc/preremove.sh
Normal file
4
etc/preremove.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
systemctl disable linkwallet
|
||||
systemctl stop linkwallet
|
Loading…
x
Reference in New Issue
Block a user