Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
RPM meta package (#76)
Browse files Browse the repository at this point in the history
* create RPM meta package

* specify noarch

* add the rpm target to make

* change version to 0.1.0

* move

* install: enable epel repo for dkms
  • Loading branch information
bonifaido authored Dec 15, 2023
1 parent 0db9a1e commit f9ce9c2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ dist/
*.deb
*.buildinfo
*.changes
*.rpm
site
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,9 @@ goreleaser: ## Build packages with goreleaser
goreleaser release --snapshot --clean

.PHONY: deb
deb: ## Build the meta package
deb: ## Build DEB the meta package
equivs-build deploy/debian-control

.PHONY: rpm
rpm: ## Build RPM the meta package
rpmbuild -ba --define '_rpmdir ./deploy/rpmbuild/' deploy/rpmbuild/SPECS/nasp.spec
2 changes: 1 addition & 1 deletion deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ install_package() {
sudo apt install -y "$1"
elif [ -x "$(command -v dnf)" ]; then
# CentOS/RHEL
sudo dnf install -y "$1"
sudo dnf install --enablerepo epel -y "$1"
else
error "Unsupported package manager. Please install packages manually."
fi
Expand Down
22 changes: 22 additions & 0 deletions deploy/rpmbuild/SPECS/nasp.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Name: nasp
Version: 0.3.0
Release: 1%{?dist}
Summary: NASP is a network acceleration and security platform

License: GPL-MIT Dual License
URL: https://nasp.io

Requires: nasp-agent
Requires: nasp-kernel-module

BuildArch: noarch

%description
This is a meta package for NASP, which includes nasp-agent and nasp-kernel-module.

%files
# Empty section, as this is a meta package

%changelog
* Thu Dec 07 2023 Nandor Kracser <[email protected]> - 0.1.0-1
- Initial build

0 comments on commit f9ce9c2

Please sign in to comment.