-
Notifications
You must be signed in to change notification settings - Fork 1
/
naemon-vimvault.spec
69 lines (52 loc) · 1.63 KB
/
naemon-vimvault.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Summary: Naemon VimVault Eventbroker Module
Name: naemon-vimvault
Version: 1.4.2
Release: 0
License: GPL-3.0-or-later
Group: Applications/System
URL: https://www.naemon.io/
Packager: Naemon Core Development Team <[email protected]>
Vendor: Naemon Core Development Team
Source0: https://github.com/naemon/naemon-vimcrypt-vault-broker/archive/naemon-vimvault-%{version}.tar.gz
BuildRoot: %{_tmppath}/naemon-%{version}-%{release}
BuildRequires: naemon-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: gcc-c++
%description
Naemon-VimVault is an eventbroker module for naemon which stores
macros in encrypted files editable with the vim editor.
%prep
%setup -q
%build
test -f configure || ./autogen.sh
%configure \
--libdir="%{_libdir}/naemon" \
--with-naemon-config-dir="/etc/naemon/module-conf.d"
%{__make}
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"
# We don't really want to distribute this
rm %{buildroot}%{_libdir}/naemon/naemon-vimvault/naemon_vimvault.la
%clean
%{__rm} -rf %{buildroot}
%post
exit 0
%preun
exit 0
%postun
exit 0
%files
%attr(0755,naemon,naemon) %dir %{_libdir}/naemon/naemon-vimvault
%attr(0644,root,root) %{_libdir}/naemon/naemon-vimvault/naemon_vimvault.so
%if 0%{?suse_version} >= 1315
%attr(0755,naemon,naemon) %dir %{_sysconfdir}/naemon/
%attr(0755,naemon,naemon) %dir %{_sysconfdir}/naemon/module-conf.d/
%endif
%attr(0644,naemon,naemon) %config(noreplace) %{_sysconfdir}/naemon/module-conf.d/vimvault.cfg
%changelog
* Fri Nov 05 2021 Sven Nierlein <[email protected]> 1.3.0-1
- Add packaging