Skip to content

Commit

Permalink
Misc cleanup tasks
Browse files Browse the repository at this point in the history
- brief notes to Makefile regarding build options
- prune nFPM config file scratch notes
- prune shell script scratch notes
  • Loading branch information
atc0005 committed May 5, 2023
1 parent 3b37429 commit 431fd60
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 48 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ export SEMVER := $(REPO_VERSION)
# Use pure Go implementation of user and group id/name resolution.
# Use pure Go implementation of DNS resolver.
#
# -trimpath
# https://golang.org/cmd/go/
# removes all file system paths from the compiled executable, to improve
# build reproducibility.
#
# -extldflags '-static'
# Pass 'static' flag to external linker.
#
Expand Down
18 changes: 0 additions & 18 deletions packages/dev/nfpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,6 @@
# https://nfpm.goreleaser.com/usage/
# https://nfpm.goreleaser.com/configuration/

# Scratch notes below used while testing.
#
#
# Auto-generate package filenames:
#
# nfpm package --config packages/dev/nfpm.yaml --packager deb --target ./release_assets/
# nfpm package --config packages/dev/nfpm.yaml --packager rpm --target ./release_assets/
#
# Use explicit short package names:
#
# nfpm package --config packages/dev/nfpm.yaml --packager deb --target ./release_assets/check-cert-dev_amd64.deb
# nfpm package --config packages/dev/nfpm.yaml --packager rpm --target ./release_assets/check-cert-dev.x86_64.rpm

#
# dpkg-deb -I release_assets/check-cert-dev*.deb
# sudo dpkg -i release_assets/check-cert-dev*.deb
# dpkg -s check-cert

name: "check-cert-dev"
arch: "amd64"
platform: "linux"
Expand Down
15 changes: 0 additions & 15 deletions packages/dev/scripts/rpm/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,3 @@ echo "- Obtain latest release: ${project_releases}"
echo "- View/Ask questions: ${project_discussions}"
echo "- View/Open issues: ${project_issues}"
echo


# Copying contexts from existing plugin:
#
# [root@atc0005-rhel8-test ~]# ls -laZ /usr/lib64/nagios/plugins/check_by_ssh
# -rwxr-xr-x. root root system_u:object_r:nagios_unconfined_plugin_exec_t:s0 /usr/lib64/nagios/plugins/check_by_ssh
# [root@atc0005-rhel8-test ~]# sudo chcon --verbose --reference /usr/lib64/nagios/plugins/check_by_ssh /usr/lib64/nagios/plugins/check_cert

# Explicitly applying contexts:
#
# [root@atc0005-rhel8-test ~]# sudo chcon --verbose -t nagios_unconfined_plugin_exec_t -u system_u -r object_r /usr/lib64/nagios/plugins/check_cert
# changing security context of '/usr/lib64/nagios/plugins/check_cert'
#
# [root@atc0005-rhel8-test ~]# ls -laZ /usr/lib64/nagios/plugins/check_cert
# -rwxr-xr-x. 1 root root system_u:object_r:nagios_unconfined_plugin_exec_t:s0 6035136 Dec 12 11:14 /usr/lib64/nagios/plugins/check_cert
15 changes: 0 additions & 15 deletions packages/stable/scripts/rpm/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,3 @@ echo "- Obtain latest release: ${project_releases}"
echo "- View/Ask questions: ${project_discussions}"
echo "- View/Open issues: ${project_issues}"
echo


# Copying contexts from existing plugin:
#
# [root@atc0005-rhel8-test ~]# ls -laZ /usr/lib64/nagios/plugins/check_by_ssh
# -rwxr-xr-x. root root system_u:object_r:nagios_unconfined_plugin_exec_t:s0 /usr/lib64/nagios/plugins/check_by_ssh
# [root@atc0005-rhel8-test ~]# sudo chcon --verbose --reference /usr/lib64/nagios/plugins/check_by_ssh /usr/lib64/nagios/plugins/check_cert

# Explicitly applying contexts:
#
# [root@atc0005-rhel8-test ~]# sudo chcon --verbose -t nagios_unconfined_plugin_exec_t -u system_u -r object_r /usr/lib64/nagios/plugins/check_cert
# changing security context of '/usr/lib64/nagios/plugins/check_cert'
#
# [root@atc0005-rhel8-test ~]# ls -laZ /usr/lib64/nagios/plugins/check_cert
# -rwxr-xr-x. 1 root root system_u:object_r:nagios_unconfined_plugin_exec_t:s0 6035136 Dec 12 11:14 /usr/lib64/nagios/plugins/check_cert

0 comments on commit 431fd60

Please sign in to comment.