Репозиторий Sisyphus
Последнее обновление: 2 июля 2022 | Пакетов: 17502 | Посещений: 24492012
en ru br
Репозитории ALT
5.1: 0.5.19-alt2
4.1: 0.5.15-alt1
4.0: 0.5.14-alt1
3.0: 0.5.8-alt1

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

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

Name: service
Version: 0.5.33
Release: alt1

Summary: The service start/stop scripts
License: GPLv2+
Group: System/Base
Url: http://git.altlinux.org/people/ldv/packages/service.git

Source: %name-%version.tar
Source1: list.functions-compat

Requires: /bin/tput
# due to start-stop-daemon (Conflicts: SysVinit < 0:2.85-alt5)
Requires: sysvinit-utils
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

%global __find_provides_filter fgrep -x -v -e "$(/usr/lib/rpm/shell.prov %buildroot%_initdir/.provides.sh.compat)"

# This is required for shell function provides autogeneration.

BuildPreReq: rpm-build >= 4.0.4-alt16

BuildRequires: help2man, libpopt-devel, libshell

This package contains the basic system scripts used to
start and stop services.


make -C src VERSION=%version

%makeinstall_std -C src
install -p -m755 service %buildroot/sbin/
install -p -m644 service.8 %buildroot%_man8dir/
mkdir -p %buildroot{/bin,%_sbindir}
install -p -m755 run-parts %buildroot/bin/
install -p -m755 post_service pre_service preun_service %buildroot%_sbindir/
ln -s post_service %buildroot%_sbindir/post_service_postponed
install -p -m755 rc.d/init.d/* %buildroot%_initdir/
chmod a-x %buildroot%_initdir/template
mkdir -p %buildroot%_rpmlibdir
install -p -m755 service.filetrigger %buildroot%_rpmlibdir/

# 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

mkdir -p %buildroot%_sysconfdir/rc.d/rc{0,1,2,3,4,5,6}.d
mkdir -p %buildroot%_sysconfdir/sysconfig/limits.d
mkdir -p %buildroot/usr/libexec/service/legacy-actions

# Generate shell functions provides list.


       sed -ne 's/^\([A-Za-z][A-Za-z_0-9]*[[:space:]]*\)()$/\1/pg' "$1"

for f in %buildroot%_initdir/*; do
       [ -x "$f" ] || continue
       print_function_names "$f"
done | sort -u \

       echo '# shell functions provides list'
       comm -1 -3 \
       %buildroot%_initdir/.list.functions \
) >%buildroot%_initdir/.provides.sh.compat

       echo '# shell functions provides list'
       sort -u \
       %buildroot%_initdir/.list.functions \
) >%buildroot%_initdir/.provides.sh
# In other pkgs, Requires will be generated for all functions listed here.

%triggerpostun -- initscripts < 1:5.49.1-alt1
if [ ! -f "$f" ]; then
       if [ -f "$f".rpmsave ]; then
               cp -pf "$f".rpmsave "$f"
       elif [ -f "$f".rpmnew ]; then
               cp -pf "$f".rpmnew "$f"

%exclude %_initdir/.provides.sh.compat
%config %_sysconfdir/rc.d
%config(noreplace) %_sysconfdir/initlog.conf
%config(noreplace) %_sysconfdir/sysconfig/limits


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

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