mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-06-23 08:34:34 +08:00
46 lines
928 B
YAML
46 lines
928 B
YAML
name: hubproxy
|
|
arch: ${NFPM_ARCH}
|
|
platform: linux
|
|
version: ${NFPM_VERSION}
|
|
release: "1"
|
|
section: net
|
|
priority: optional
|
|
maintainer: sky22333
|
|
description: Docker and GitHub acceleration proxy server
|
|
vendor: sky22333
|
|
homepage: https://github.com/sky22333/hubproxy
|
|
license: MIT
|
|
depends:
|
|
- logrotate
|
|
|
|
contents:
|
|
- src: ./build/package-root/hubproxy
|
|
dst: /usr/bin/hubproxy
|
|
file_info:
|
|
mode: 0755
|
|
|
|
- src: ./src/config.toml
|
|
dst: /etc/hubproxy/config.toml
|
|
type: config|noreplace
|
|
file_info:
|
|
mode: 0644
|
|
|
|
- src: ./packaging/hubproxy.openrc
|
|
dst: /etc/init.d/hubproxy
|
|
file_info:
|
|
mode: 0755
|
|
|
|
- src: ./packaging/hubproxy.logrotate
|
|
dst: /etc/logrotate.d/hubproxy
|
|
file_info:
|
|
mode: 0644
|
|
|
|
scripts:
|
|
postinstall: ./packaging/postinstall.sh
|
|
preremove: ./packaging/preremove.sh
|
|
postremove: ./packaging/postremove.sh
|
|
|
|
apk:
|
|
scripts:
|
|
postupgrade: ./packaging/postinstall.sh
|