From b4a71cc46c31876515ba7a9198a509551d4d2663 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Fri, 13 Dec 2024 16:57:01 +0100 Subject: [PATCH] Update nfpm.yaml --- nfpm.yaml | 68 +++++++++++++++++++++---------------------------------- 1 file changed, 26 insertions(+), 42 deletions(-) diff --git a/nfpm.yaml b/nfpm.yaml index 770f84f..478261e 100644 --- a/nfpm.yaml +++ b/nfpm.yaml @@ -20,48 +20,32 @@ description: | vendor: "qxip" homepage: "http://github.com/qxip/stenographer" license: "Apache2" - -# 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/ - +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/* overrides: rpm: scripts: