Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37400953
en ru br
ALT Linux repositórios
S:9.4.0-alt2
D:4.0.0-alt0.1.rc4
5.0: 4.0.13-alt2
4.1: 3.0.17-alt4
4.0: 3.0.17-alt2.M40.1
3.0: 1.3.22pl4-alt3
+backports:3.0.17-alt3.M30

Group :: Sistema/Servidores
RPM: dhcpcd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%set_verify_elf_method strict

%define dbdir %_localstatedir/%name
%define _pseudouser_user     _dhcpcd
%define _pseudouser_group    _dhcpcd
%define _pseudouser_home     %_localstatedir/dhcpcd

Name: dhcpcd
Epoch: 1
Version: 9.4.0
Release: alt2

Summary: DHCP Client
License: BSD-2-Clause
Group: System/Servers

URL: https://roy.marples.name/projects/%name
Vcs: git://roy.marples.name/dhcpcd.git
Source: %name-%version.tar
Patch0: %name-%version-%release.patch

AutoReq: yes, noshell

Conflicts: etcnet < 0.9.20-alt1
Conflicts: NetworkManager-daemon < 1.28.0-alt1

# NetworkManager can use dhcpcd

Provides: nm-dhcp-client


%description
dhcpcd is an implementation of the DHCP client specified in RFC2131.

It gets the host information (IP address, netmask, broadcast address, etc.)
from a DHCP server and configures the network interface of the machine on
which it is running. It also tries to renew the lease time according to RFC2131.

%prep
%setup -q
%patch0 -p1

%build
%add_optflags -fpie
export LDFLAGS=-pie
%configure \
       --sbindir=/sbin \
--runstatedir=/run \
       --rundir=/run/dhcpcd \
       --libexecdir=/lib/%name \
       --dbdir=%dbdir \
       --serviceexists='[ -x %_initdir/"$1" ]' \
       --servicecmd='/sbin/service "$1" >/dev/null 2>&1' \
       --with-hook=ntp.conf \
       --with-hook=lookup-hostname \
       --enable-ipv4 \
       --enable-ipv6 \
--enable-dhcp6 \
--enable-auth \
--enable-ipv4ll \
--with-default-hostname='(none)' \
--enable-privsep \
--privsepuser=%_pseudouser_user \
       --without-udev
%make_build

%install
%makeinstall_std BINMODE=0755
mkdir -p %buildroot%dbdir

%pre
/usr/sbin/groupadd -r -f %_pseudouser_group ||:
/usr/sbin/useradd -g %_pseudouser_group -c 'dhcpcd user' \
       -d %_pseudouser_home -s /dev/null -r %_pseudouser_user >/dev/null 2>&1 ||:

# These files changed their name/location since 7.0.0.

# Don't move lease files, they can be used and often removed when dhcpcd
# is exited.
%triggerpostun -- %name < 1:7.0.0
for f in duid secret; do
if [ -e %_sysconfdir/dhcpcd.$f ] && [ ! -e %dbdir/$f ]; then
echo "%_sysconfdir/dhcpcd.$f found, moving to %dbdir/$f"
mv "%_sysconfdir/dhcpcd.$f" "%dbdir/$f"
fi
done
if [ ! -e %dbdir/rdm_monotonic ] && [ -e %dbdir/dhcpcd-rdm.monotonic ]; then
mv %dbdir/dhcpcd-rdm.monotonic %dbdir/rdm_monotonic
fi

%files
/sbin/*
%_man8dir/*
%_man5dir/*
%config(noreplace) %_sysconfdir/%name.conf
%dir %dbdir
%dir /lib/%name
%dir /lib/%name/%name-hooks
/lib/%name/%name-hooks/*
/lib/%name/%name-run-hooks

# Ingnore all additional hooks:

#   wpa_supplicant: wpa_supplicant should be handled by etcnet
#   tzupdate: it should use tzupdate but what about configuration files?
%exclude %_datadir/%name/

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009