2019-09-15 20:50:52 +08:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy
|
|
|
|
|
|
|
|
builds:
|
2020-04-03 19:57:31 +08:00
|
|
|
- id: default
|
|
|
|
env:
|
2020-04-06 23:33:23 +08:00
|
|
|
- CGO_ENABLED=0
|
2019-09-15 20:50:52 +08:00
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
- linux
|
|
|
|
- darwin
|
2021-04-19 10:39:40 +08:00
|
|
|
- freebsd
|
2019-09-15 20:50:52 +08:00
|
|
|
goarch:
|
|
|
|
- 386
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
|
|
|
- mips
|
|
|
|
- mipsle
|
|
|
|
- mips64
|
|
|
|
- mips64le
|
2022-01-10 20:09:26 +08:00
|
|
|
- riscv64
|
2022-04-19 21:43:35 +08:00
|
|
|
goamd64:
|
|
|
|
- v1
|
|
|
|
- v3
|
2019-09-15 20:50:52 +08:00
|
|
|
goarm:
|
|
|
|
- 6
|
|
|
|
- 7
|
2020-04-04 18:27:55 +08:00
|
|
|
gomips:
|
|
|
|
- hardfloat
|
|
|
|
- softfloat
|
2019-09-15 20:50:52 +08:00
|
|
|
|
2020-04-03 19:57:31 +08:00
|
|
|
archives:
|
|
|
|
- id: default
|
|
|
|
builds:
|
|
|
|
- default
|
|
|
|
wrap_in_directory: true
|
|
|
|
format: tar.gz
|
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
|
|
|
- config/**/*
|
|
|
|
- systemd/*
|
2019-09-15 20:50:52 +08:00
|
|
|
|
2022-01-19 23:25:58 +08:00
|
|
|
snapshot:
|
2022-02-14 12:12:37 +08:00
|
|
|
name_template: '{{ incpatch .Version }}-dev-{{.ShortCommit}}'
|
2022-01-19 23:25:58 +08:00
|
|
|
|
|
|
|
checksum:
|
|
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
|
|
|
|
|
|
|
|
release:
|
|
|
|
prerelease: true
|
|
|
|
draft: true
|
|
|
|
|
2022-01-13 18:46:21 +08:00
|
|
|
nfpms:
|
2022-01-26 22:31:56 +08:00
|
|
|
- id: glider
|
2022-01-13 18:46:21 +08:00
|
|
|
package_name: glider
|
|
|
|
vendor: nadoo
|
|
|
|
homepage: https://github.com/nadoo/glider
|
2022-01-16 23:15:18 +08:00
|
|
|
maintainer: nadoo
|
2022-01-13 18:46:21 +08:00
|
|
|
description: Glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
|
|
|
|
license: GPL-3.0 License
|
|
|
|
formats:
|
|
|
|
# - apk
|
|
|
|
- deb
|
|
|
|
# - rpm
|
|
|
|
dependencies:
|
|
|
|
- libsystemd0
|
|
|
|
bindir: /usr/bin
|
|
|
|
release: 1
|
|
|
|
epoch: 1
|
|
|
|
version_metadata: git
|
|
|
|
section: default
|
|
|
|
priority: extra
|
|
|
|
contents:
|
|
|
|
- src: systemd/glider@.service
|
|
|
|
dst: /etc/systemd/system/glider@.service
|
|
|
|
|
|
|
|
- src: config/glider.conf.example
|
2022-05-13 18:46:39 +08:00
|
|
|
dst: /etc/glider/glider.conf.example
|
2022-01-13 18:46:21 +08:00
|
|
|
|
|
|
|
scripts:
|
|
|
|
postinstall: "systemd/postinstall.sh"
|
|
|
|
preremove: "systemd/preremove.sh"
|
|
|
|
postremove: "systemd/postremove.sh"
|
|
|
|
|
|
|
|
deb:
|
|
|
|
triggers:
|
|
|
|
interest_noawait:
|
|
|
|
- /lib/systemd/systemd
|