Репозиторий Sisyphus
Последнее обновление: 21 октября 2021 | Пакетов: 17367 | Посещений: 22127659
en ru br
Репозитории ALT
S:0.5.32-alt1
5.1: 0.5.19-alt2
4.1: 0.5.15-alt1
4.0: 0.5.14-alt1
3.0: 0.5.8-alt1
+backports:0.5.12-alt0.M30.1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: service

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# $Id: service.spec,v 1.37 2005/03/21 16:27:34 ldv Exp $

Name: service
Version: 0.5.8
Release: alt1

Summary: The service start/stop scripts
License: GPL
Group: System/Base
Packager: Dmitry V. Levin <ldv at altlinux.org>

Source: %name-%version.tar.bz2

Provides: /usr/sbin/post_service, /usr/sbin/preun_service, /sbin/start-stop-daemon
Requires: /bin/tput
# due to start-stop-daemon
Conflicts: SysVinit < 0:2.85-alt5
Conflicts: initscripts < 1:5.49.1-alt1
# due to RPM_INSTALL_ARG1 support:
Conflicts: rpm < 0:4.0.4-alt0.7
# due to %_sysconfdir/rc?.d and %_sysconfdir/rc.d/rc?.d
Conflicts: startup < 0.0.2-alt1
# due to run-parts
Conflicts: crontabs < 0:1.8-alt1
# due to start-stop-daemon.8
Conflicts: dpkg <= 0:1.6.15-alt3

# This is required for shell function provides autogeneration.

BuildPreReq: rpm-build >= 4.0.4-alt16

# Automatically added by buildreq on Mon Apr 21 2003

BuildRequires: libpopt-devel

%description
The %name package contains the basic system scripts used to
start and stop services.

%prep
%setup -q

%build
make -C src

%install
%make_install install -C src DESTDIR=$RPM_BUILD_ROOT
%__install -p -m755 service $RPM_BUILD_ROOT/sbin/
%__mkdir_p $RPM_BUILD_ROOT{%_bindir,%_sbindir}
%__install -p -m755 run-parts $RPM_BUILD_ROOT%_bindir/
%__install -p -m755 post_service preun_service $RPM_BUILD_ROOT%_sbindir/
%__install -p -m755 rc.d/init.d/* $RPM_BUILD_ROOT%_initdir/
chmod a-x $RPM_BUILD_ROOT%_initdir/template

# This is a LSB compatibility symlink.  We hope that some day

# the actual files will be here instead of symlinks.
%__ln_s rc.d/init.d $RPM_BUILD_ROOT%_sysconfdir/

# This is a LSB compatibility symlink.  We hope that some day

# the actual files will be here instead of symlinks.
for i in `seq 0 6`; do
%__ln_s rc.d/rc$i.d $RPM_BUILD_ROOT%_sysconfdir/rc$i.d
done

%__mkdir_p $RPM_BUILD_ROOT%_sysconfdir/rc.d/rc{0,1,2,3,4,5,6}.d

# Generate shell functions provides list.

(
echo '# shell functions provides list'
for f in $RPM_BUILD_ROOT%_initdir/*; do
[ -x "$f" ] || continue
sed -ne 's/^\([A-Za-z][A-Za-z_0-9]*[[:space:]]*\)()$/\1/pg' "$f"
done |LC_COLLATE=C sort -u
) >$RPM_BUILD_ROOT%_initdir/.provides.sh

%triggerpostun -- initscripts < 1:5.49.1-alt1
f=%_sysconfdir/initlog.conf
if [ ! -f "$f" ]; then
       if [ -f "$f".rpmsave ]; then
               %__cp -pf "$f".rpmsave "$f"
       elif [ -f "$f".rpmnew ]; then
               %__cp -pf "$f".rpmnew "$f"
       fi
fi

%files
/sbin/*
%_bindir/*
%_sbindir/*
%_mandir/man?/*
%_sysconfdir/init.d
%_sysconfdir/rc?.d
%defattr(644,root,root,755)
%config %_sysconfdir/rc.d
%config(noreplace) %_sysconfdir/initlog.conf

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin