# $Id: e-smith-cvm-unix-local.spec,v 1.3 2021/01/09 04:55:33 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 3 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Networking/Daemons Source: %{name}-%{version}.tar.xz Patch: e-smith-cvm-unix-local-2.6.0-bz11314-bz11125-systemd-update.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot Requires: cvm 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 * Mon Jan 11 2021 Jean-Philipe Pialasse 2.6.0-3.sme - fix typo [SME: 11314] * Fri Jan 08 2021 Jean-Philipe Pialasse 2.6.0-2.sme - migrate to systemd [SME: 11314] - add update event [SME: 11125] * Fri Feb 5 2016 Daniel Berteaud 2.6.0-1.sme - Roll new stream for sme10 * Thu Feb 7 2013 Shad L. Lords 2.4.0-1.sme - Roll new stream for sme9 * Tue Oct 7 2008 Shad L. Lords 2.2.0-1.sme - Roll new stream to separate sme7/sme8 trees [SME: 4633] * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Thu Dec 07 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Thu Mar 16 2006 Gordon Rowell 1.2.0-01 - Roll stable stream version. [SME: 1016] * Mon Jan 2 2006 Gordon Rowell 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 1.1.0-03 - Bump release number only * Wed May 4 2005 Charlie Brady - [1.1.0-02] - Update cvm calling sequence, for later version of cvm. * Wed May 4 2005 Charlie Brady - [1.1.0-01] - Changing version to development stream number - 1.1.0 * Thu Jun 26 2003 Charlie Brady - [1.0.0-01] - Change to stable stream version number - 1.0.0 * Wed Jun 4 2003 Charlie Brady - [0.0.1-05] - Use create-system-user to create cvmlog user. [charlieb 6033] * Fri Apr 18 2003 Charlie Brady - [0.0.1-04] - Move socket to a private directory, and change its pathname. [charlieb 587] * Wed Apr 16 2003 Charlie Brady - [0.0.1-03] - Change cvmlog userid to 1003, and change error exit to warning. [charlieb 6033] * Fri Mar 21 2003 Charlie Brady - [0.0.1-02] - Add cvmlog user and cvm log directory [charlieb 587] * Wed Mar 19 2003 Charlie Brady - [0.0.1-01] - Initial %prep %setup %patch -p1 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 \ --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)