Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rpm-icingadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
packaging
rpm-icingadb
Commits
26abe888
Commit
26abe888
authored
Sep 24, 2018
by
Markus Frosch
📣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lint, check and permissions
parent
2985df4b
Pipeline
#2478
failed with stages
in 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
icingadb.spec
icingadb.spec
+15
-6
rpmlint/icingadb.conf
rpmlint/icingadb.conf
+7
-0
No files found.
icingadb.spec
View file @
26abe888
...
...
@@ -33,7 +33,7 @@ Summary: Icinga DB
Group: System Environment/Daemons
License: GPLv2+
URL: https://%{provider_prefix}
Source0:
%{name
}-%{version}.tar.gz
Source0:
https://%{import_path}/-/archive/%{commit}/%{repo
}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
...
...
@@ -45,8 +45,10 @@ BuildRequires: systemd
Requires(pre): shadow-utils
%if "%{_vendor}" == "suse"
Provides: user(icingadb)
Provides: group(icingadb)
%endif
%define configdir %{_sysconfdir}/%{name}
%define service %{name}.service
...
...
@@ -68,13 +70,15 @@ pushd src/%{import_path}
popd
%check
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%if ! 0%{?gotest:1}
%global gotest %{?golang_scl_enable} go test
%endif
%gotest %{import_path}/...
export GOPATH=$(pwd):%{gopath}
pushd src/%{import_path}
%gotest .
popd
%install
install -d -m 0755 %{buildroot}%{_sbindir}
...
...
@@ -103,11 +107,16 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root)
#%doc AUTHORS COPYING
#%%doc AUTHORS COPYING
%doc README.md
%{_sbindir}/icingadb
%{_unitdir}/%{service}
%defattr(0
750,icingadb,icingadb,064
0)
%defattr(0
640,icingadb,icingadb,075
0)
%dir %{configdir}
%config(noreplace) %{configdir}/config.ini
%changelog
* Mon Sep 24 2018 Markus Frosch <markus.frosch@icinga.com> 0.0.0-0
- Initial package
rpmlint/icingadb.conf
0 → 100644
View file @
26abe888
# Only for SUSE, but rpmlint complains on RedHat as well...
addFilter
(
"W: unversioned-explicit-provides user\(icingadb\)"
)
addFilter
(
"W: unversioned-explicit-provides group\(icingadb\)"
)
# we want secure permissions
addFilter
(
"E: non-standard-dir-perm /etc/icingadb 0750L"
)
addFilter
(
"E: non-readable /etc/icingadb/config.ini 0640L"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment