1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
12 url = http://net-tools.berlios.de/
14 summary = Basic networking tools.
17 The net-tools package contains basic networking tools,
18 including ifconfig, netstat, route, and others.
22 sources = %{thisapp}-%{git_rev}.tar.xz
32 cp %{DIR_SOURCE}/config.h %{DIR_APP}
33 cp %{DIR_SOURCE}/config.make %{DIR_APP}
35 # Copy additional man pages
36 mkdir -pv %{DIR_APP}/man/en_US
37 cp %{DIR_SOURCE}/*.8 %{DIR_APP}/man/en_US
39 # Copy source for mii-diag
40 cp %{DIR_SOURCE}/mii-diag.c %{DIR_APP}
43 make_build_targets += \
46 # Compiling in parallel mode is unsafe for this pkg.
59 make BASEDIR=%{BUILDROOT} BINDIR=%{bindir} \
60 SBINDIR=%{sbindir} mandir=%{mandir} install
63 install -m 755 %{DIR_APP}/mii-diag %{BUILDROOT}%{sbindir}
65 # Remove tools we do not want
67 %{BUILDROOT}%{prefix}/{,*}/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}* \
68 %{BUILDROOT}%{mandir}/{,*}/man*/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}*
70 # Remove hostname (has its own package)
72 %{BUILDROOT}%{bindir}/{dnsdomainname,domainname,hostname,nisdomainname,ypdomainname}* \
73 %{BUILDROOT}%{mandir}/{,*}/man*/{dnsdomainname,domainname,hostname,nisdomainname,ypdomainname}*
82 package %{name}-debuginfo