ee2f270abc
The RPM's /usr/bin/chcat conflicts with SELinux's policycoreutils-python-utils on Fedora. Per Ben: remove the symlink entrypoints entirely and ship only the chlog binary with cat/tail/grep subcommands. - Remove chcat/chtail/chgrep symlinks and their completions from nfpm.yaml, build-rpm.sh and the Makefile - Remove the argv[0] dispatch in main.go; subcommands are unchanged - Update the completion test to cover chlog only - Update README usage to chlog cat|tail|grep
40 lines
1003 B
YAML
40 lines
1003 B
YAML
# nfpm config for the clickhouse-tools RPM.
|
|
# Rendered through envsubst (see scripts/build-rpm.sh) then fed to `nfpm pkg`.
|
|
|
|
name: ${PACKAGE_NAME}
|
|
version: ${PACKAGE_VERSION}
|
|
release: ${PACKAGE_RELEASE}
|
|
arch: ${PACKAGE_ARCH}
|
|
platform: ${PACKAGE_PLATFORM}
|
|
section: default
|
|
priority: extra
|
|
description: "${PACKAGE_DESCRIPTION}"
|
|
|
|
maintainer: ${PACKAGE_MAINTAINER}
|
|
homepage: ${PACKAGE_HOMEPAGE}
|
|
license: ${PACKAGE_LICENSE}
|
|
|
|
disable_globbing: false
|
|
|
|
contents:
|
|
- src: dist/chlog
|
|
dst: /usr/bin/chlog
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
|
|
# Shell completions (generated by scripts/build-rpm.sh before packaging).
|
|
- src: dist/completions/chlog.bash
|
|
dst: /usr/share/bash-completion/completions/chlog
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/_chlog
|
|
dst: /usr/share/zsh/site-functions/_chlog
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/chlog.fish
|
|
dst: /usr/share/fish/vendor_completions.d/chlog.fish
|
|
file_info:
|
|
mode: 0644
|