From 88e9d2e52f68494feaee464d52072bec066cf449 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Fri, 13 Dec 2024 20:25:02 +0100 Subject: [PATCH] Update nfpm.yaml --- nfpm.yaml | 68 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 26 deletions(-) diff --git a/nfpm.yaml b/nfpm.yaml index 478261e..770f84f 100644 --- a/nfpm.yaml +++ b/nfpm.yaml @@ -20,32 +20,48 @@ description: | vendor: "qxip" homepage: "http://github.com/qxip/stenographer" license: "Apache2" -empty_folders: - - /opt/stenographer - - /opt/stenographer/configs -files: - /usr/bin/stenocurl: - file: ./stenocurl - mode: 0755 - /usr/bin/stenoread: - file: ./stenoread - mode: 0755 - /usr/bin/stenographer: - file: ./stenographer - mode: 0700 - owner: stenographer - group: root - /usr/bin/stenotype: - file: ./stenotype/stenotype - mode: 0500 - owner: stenographer - group: root - /opt/stenographer/stenokeys.sh: - file: ./stenokeys.sh - mode: 0755 -config_files: - /opt/stenographer/configs: - file: ./configs/* + +# Updated contents block using new format +contents: + - src: ./stenocurl + dst: /usr/bin/stenocurl + file_info: + mode: 0755 + + - src: ./stenoread + dst: /usr/bin/stenoread + file_info: + mode: 0755 + + - src: ./stenokeys.sh + dst: /opt/stenographer/stenokeys.sh + file_info: + mode: 0755 + + - src: ./stenographer + dst: /usr/bin/stenographer + file_info: + mode: 0700 + owner: stenographer + group: root + + - src: ./stenotype/stenotype + dst: /usr/bin/stenotype + file_info: + mode: 0500 + owner: stenographer + group: root + + # Config files + - dst: /opt/stenographer + type: dir + + - dst: /opt/stenographer/configs + type: dir + + - src: ./configs/* + dst: /opt/stenographer/configs/ + overrides: rpm: scripts: