Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37563885
en ru br
ALT Linux repos
S:0.3-alt2.qa1
5.0: 0.3-alt2

Group :: System/Configuration/Other
RPM: condstopstart-web

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# vim: set ft=spec: -*- rpm-spec -*-

# %%branch_switch set %%branch_release use

#%%define branch_switch Mxx

Name: condstopstart-web
Version: 0.3
Release: %branch_release alt2.qa1

Summary: Condstopstart for web serwers
License: %gpl2plus
Group: System/Configuration/Other

Packager: Aleksey Avdeev <solo at altlinux.ru>
BuildArch: noarch

Source: web-command.sh
Source10: tmpfiles.conf

Requires: %condstopstart_subsysdir
Requires: %condstopstart_subsysrundir
Provides: %condstopstart_webdir
Provides: %condstopstart_webrundir

BuildRequires(pre): rpm-macros-branch
BuildRequires(pre): rpm-macros-condstopstart
BuildPreReq: rpm-build-licenses

%description
%summary

%install
install -d %buildroot%condstopstart_webdir/
install -d %buildroot%condstopstart_webrundir/

# Generate web-cond*

for condcommand in condstop condstart condstop-rpm condstart-rpm; do
condcommandfile="%buildroot%_sbindir/web-$condcommand"
install -m 755 -pD %SOURCE0 $condcommandfile
sed -ri "
s| at COMMAND at |$condcommand|g
s| at SCRIPTSDIR at |%condstopstart_webdir|g
s| at RUNDIR at |%condstopstart_webrundir|g
" $condcommandfile
done

install -pD -m 644 %SOURCE10 %buildroot%_tmpfilesdir/%name.conf
sed -i "
s| at RUNDIR at |%condstopstart_webrundir|g
" %buildroot%_tmpfilesdir/*

%files
%config %_tmpfilesdir/*
%attr(755,root,root) %dir %condstopstart_webdir/
%attr(755,root,root) %dir %condstopstart_webrundir/
%_sbindir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin