56981db804
This commit defines the cert-mon logfile config. In addition, the package directory is reorganized to have a files subdirectory, and to drop the obsolete PKG-INFO file. Change-Id: Iec2b39b3b080c823be7f00ee978baa223d05b041 Story: 2008251 Task: 41115 Signed-off-by: Don Penney <don.penney@windriver.com>
51 lines
1.1 KiB
RPMSpec
51 lines
1.1 KiB
RPMSpec
Summary: StarlingX Certificate Monitor Package
|
|
Name: cert-mon
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: Wind River <info@windriver.com>
|
|
URL: unknown
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: systemd-devel
|
|
|
|
%define ocf_resourced /usr/lib/ocf/resource.d
|
|
|
|
%description
|
|
StarlingX Certificate Monitor Package
|
|
|
|
%define local_etc_initd /etc/init.d/
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
|
|
%install
|
|
install -m 755 -p -D cert-mon %{buildroot}/usr/lib/ocf/resource.d/platform/cert-mon
|
|
install -m 644 -p -D cert-mon.service %{buildroot}%{_unitdir}/cert-mon.service
|
|
install -m 644 -p -D cert-mon.syslog %{buildroot}%{_sysconfdir}/syslog-ng/conf.d/cert-mon.conf
|
|
install -m 644 -p -D cert-mon.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/cert-mon.conf
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
|
|
# SM OCF Start/Stop/Monitor Scripts
|
|
%{ocf_resourced}/platform/cert-mon
|
|
|
|
# systemctl service files
|
|
%{_unitdir}/cert-mon.service
|
|
|
|
# logfile config files
|
|
%{_sysconfdir}/syslog-ng/conf.d/cert-mon.conf
|
|
%{_sysconfdir}/logrotate.d/cert-mon.conf
|