Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37046303
en ru br
Репозитории ALT
S:0.5.33-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 

Name: service
Version: 0.5.12
Release: alt0.M30.1

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

Source: %name-%version.tar

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=%buildroot
install -p -m755 service %buildroot/sbin/
mkdir -p %buildroot{%_bindir,%_sbindir}
install -p -m755 run-parts %buildroot%_bindir/
install -p -m755 post_service preun_service %buildroot%_sbindir/
install -p -m755 rc.d/init.d/* %buildroot%_initdir/
chmod a-x %buildroot%_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 %buildroot%_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 %buildroot%_sysconfdir/rc$i.d
done

mkdir -p %buildroot%_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 %buildroot%_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
) >%buildroot%_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