Skip to content

Commit

Permalink
Update nfpm.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Dec 13, 2024
1 parent f5ab0f4 commit 4f2cc49
Showing 1 changed file with 46 additions and 41 deletions.
87 changes: 46 additions & 41 deletions nfpm.yaml
Original file line number Diff line number Diff line change
@@ -1,66 +1,71 @@
# nfpm example config file
#
# check https://nfpm.goreleaser.com/configuration for detailed usage
#
name: "stenographer"
arch: "amd64"
platform: "linux"
version: "v1.0.1"
section: "default"
priority: "extra"
replaces:
- stenographer
- stenographer
provides:
- stenographer
- stenographer
recommends:
- tcpdump
- jq
- tcpdump
- jq
suggests:
- tshark
- tshark
maintainer: "QXIP BV <[email protected]>"
description: |
Stenographer is a full-packet-capture utility for buffering packets
to disk for intrusion detection and incident response purposes.
vendor: "qxip"
homepage: "http://github.com/qxip/stenographer"
license: "Apache2"
empty_folders:
- /opt/stenographer
- /opt/stenographer/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
- src: ./configs/*
dst: /opt/stenographer/configs
- 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:
# preinstall: ./scripts/preinstall.sh
postinstall: ./scripts/postinstall.sh
# postremove: ./scripts/postremove.sh
deb:
scripts:
postinstall: ./scripts/postinstall.sh
# preremove: ./scripts/preremove.sh

0 comments on commit 4f2cc49

Please sign in to comment.