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

Группа :: Система/Настройка/Сеть
Пакет: hostinfo

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

Name: hostinfo
Version: 2.2
Release: alt2

Summary: Utility for looking up hostnames and IP addresses
License: BSD-like
Group: System/Configuration/Networking
Url: http://www.jmknoble.net/software/%name

# due to resolve(1).

Conflicts: net-tools < 0:1.60-alt10

BuildRequires: help2man

Source: %url/%name-%version.tar.gz
Source1: resolve.c
Source2: resolve.1.inc
Patch: %name-2.2-alt-fixes.patch

%description
hostinfo is an utility for looking up hostnames and IP addresses.  It
is a simple wrapper around gethostbyname(3) and gethostbyaddr(3); thus,
it uses a combination of the local system's "host database" (/etc/hosts
and/or NIS/NIS+) and the DNS resolver.

%prep
%setup -q
%patch -p1
%__install -pm644 %SOURCE1 %SOURCE2 .

%build
make OPTFLAGS="$RPM_OPT_FLAGS"
help2man -N -s1 -i %name.1.inc ./%name >%name.1
gcc $RPM_OPT_FLAGS -D_GNU_SOURCE resolve.c -o resolve
help2man -N -s1 -i resolve.1.inc ./resolve >resolve.1


%install
%make_install install \
prefix="%prefix" \
DESTDIR="%buildroot" \
#
%__install -pD -m644 %name.1 %buildroot%_man1dir/%name.1

%__install -pm755 resolve %buildroot%_bindir/
%__install -pm644 resolve.1 %buildroot%_man1dir/

%files
%_bindir/*
%_man1dir/*
%doc ChangeLog

%changelog

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

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