e-smith-cvm-unix-local/e-smith-cvm-unix-local.spec

161 lines
4.8 KiB
RPMSpec

# $Id: e-smith-cvm-unix-local.spec,v 1.12 2022/05/27 02:14:06 jpp Exp $
Summary: Module for supervising cvm auth daemon
%define name e-smith-cvm-unix-local
Name: %{name}
%define version 2.6.0
%define release 11
Version: %{version}
Release: %{release}%{?dist}
License: GPL
Group: Networking/Daemons
Source: %{name}-%{version}.tar.xz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
Requires: cvm >= 0.97
#Requires: daemontools
Requires: e-smith-lib >= 1.13.1-90
BuildArchitectures: noarch
BuildRequires: e-smith-devtools
AutoReqProv: no
%description
Module for supervising cvm auth daemon
%changelog
* Wed Jul 12 2023 cvs2git.sh aka Brian Read <brianr@koozali.org> 2.6.0-11.sme
- Roll up patches and move to git repo [SME: 12338]
* Wed Jul 12 2023 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
* Thu May 26 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-10.sme
- fix error compressing log still in use by delaying it [SME: 11968]
* Tue Mar 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-9.sme
- reverting to release 7 state [SME: 11885]
* Tue Mar 08 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-8.sme
- Add yum action to restart post install [SME: 11885]
* Tue Mar 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-7.sme
- bump requirement for cvm [SME: 11885]
removing daemontools requirement
* Fri Feb 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-6.sme
- expand rsyslog.conf [SME: 11807]
* Thu Feb 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-5.sme
- redirect and rotate log for cvm-unix [SME: 11807]
fix cvm-pre script permission
* Tue Dec 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-4.sme
- fix service stopping restarting on crash [SME: 11792]
* Mon Jan 11 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
- fix typo [SME: 11314]
* Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme
- migrate to systemd [SME: 11314]
- add update event [SME: 11125]
* Fri Feb 5 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-1.sme
- Roll new stream for sme10
* Thu Feb 7 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme
- Roll new stream for sme9
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme
- Roll new stream to separate sme7/sme8 trees [SME: 4633]
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
- Clean up spec so package can be built by koji/plague
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
- Update to new release naming. No functional changes.
- Make Packager generic
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-01
- Roll stable stream version. [SME: 1016]
* Mon Jan 2 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-04
- Delete preun scriptlet which required supervise-scripts and
tried to stop/remove the imap service [SME: 348]
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-03
- Bump release number only
* Wed May 4 2005 Charlie Brady <charlieb@e-smith.com>
- [1.1.0-02]
- Update cvm calling sequence, for later version of cvm.
* Wed May 4 2005 Charlie Brady <charlieb@e-smith.com>
- [1.1.0-01]
- Changing version to development stream number - 1.1.0
* Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com>
- [1.0.0-01]
- Change to stable stream version number - 1.0.0
* Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com>
- [0.0.1-05]
- Use create-system-user to create cvmlog user. [charlieb 6033]
* Fri Apr 18 2003 Charlie Brady <charlieb@e-smith.com>
- [0.0.1-04]
- Move socket to a private directory, and change its
pathname. [charlieb 587]
* Wed Apr 16 2003 Charlie Brady <charlieb@e-smith.com>
- [0.0.1-03]
- Change cvmlog userid to 1003, and change error exit to warning.
[charlieb 6033]
* Fri Mar 21 2003 Charlie Brady <charlieb@e-smith.com>
- [0.0.1-02]
- Add cvmlog user and cvm log directory [charlieb 587]
* Wed Mar 19 2003 Charlie Brady <charlieb@e-smith.com>
- [0.0.1-01]
- Initial
%prep
%setup
rm -rf root/var/service
%build
perl createlinks
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
mkdir -p $RPM_BUILD_ROOT/var/lib/cvm
mkdir -p $RPM_BUILD_ROOT/var/log/cvm
mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/sme-server.target.wants
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
--file /sbin/e-smith/systemd/cvm-unix-pre 'attr(0554,root,root)' \
--dir /var/lib/cvm 'attr(0755,root,root)' \
--dir /var/log/cvm 'attr(0750,cvmlog,cvmlog)' \
> %{name}-%{version}-%{release}-filelist
%pre
/sbin/e-smith/create-system-user cvmlog 1003 'cvm output log user' /var/log/imap /bin/false
if [ $1 -gt 1 ] ; then
if [ -e /var/service/cvm-unix-local/run ] ; then
/usr/bin/sv d cvm-unix-local
/usr/bin/sv d cvm-unix-local/log
fi
fi
%preun
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}-%{version}-%{release}-filelist
%defattr(-,root,root)