Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37037802
en ru br
Репозитории ALT
S:0.4.1-alt1
5.1: 0.4-alt1
4.1: 0.4-alt1
4.0: 0.4-alt1
3.0: 0.4-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libnoch

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

Name: libnoch
Version: 0.4.1
Release: alt1

Summary: Stab wrappers for chmod and chown calls
License: GPL
Group: System/Libraries

Source0: noch.c
Source1: chtest.c

%description
Stab wrappers for *chmod and *chown calls.

%prep
%setup -qcT
install -pm644 %SOURCE0 %SOURCE1 .

%build
readelf -Ws /%_lib/libc.so.6 | awk '
$4 == "FUNC" && $6 == "DEFAULT" && $8 ~ / at  at / {
sym=$8;
name=gensub(" at  at .*", "", 1, sym);
vers=gensub("^[^ at ]* at  at ", "", 1, sym);
printf("#define %%s_vers \"%%s\"\n", name, vers);
}' >vers.h
gcc %optflags %optflags_shared noch.c -ldl -shared -o libnoch.so
gcc %optflags chtest.c -o chtest
LD_PRELOAD=./libnoch.so ./chtest

%install
install -pDm755 libnoch.so %buildroot%_libdir/libnoch.so

%files
%_libdir/libnoch.so

%changelog

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

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