]> git.ipfire.org Git - ipfire-3.x.git/blame - net-tools/net-tools.nm
binutils: Update to 2.32
[ipfire-3.x.git] / net-tools / net-tools.nm
CommitLineData
236898d6 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
236898d6
MT
4###############################################################################
5
802ea3af 6name = net-tools
44f64d91
SS
7version = 2.0
8git_rev = e5f1be13
6ef6281c 9release = 2.%{git_rev}
236898d6 10
3f3af884 11groups = System/Base
802ea3af
MT
12url = http://net-tools.berlios.de/
13license = GPL+
14summary = Basic networking tools.
236898d6 15
802ea3af
MT
16description
17 The net-tools package contains basic networking tools,
236898d6 18 including ifconfig, netstat, route, and others.
802ea3af 19end
236898d6 20
802ea3af 21source_dl =
44f64d91 22sources = %{thisapp}-%{git_rev}.tar.xz
802ea3af
MT
23
24build
25 requires
26 gettext
802ea3af
MT
27 end
28
29 prepare_cmds
30 # Copy config files
31 cp %{DIR_SOURCE}/config.h %{DIR_APP}
32 cp %{DIR_SOURCE}/config.make %{DIR_APP}
33
34 # Copy additional man pages
44f64d91 35 mkdir -pv %{DIR_APP}/man/en_US
802ea3af
MT
36 cp %{DIR_SOURCE}/*.8 %{DIR_APP}/man/en_US
37
44f64d91 38 # Copy source for mii-diag
802ea3af
MT
39 cp %{DIR_SOURCE}/mii-diag.c %{DIR_APP}
40 end
41
42 make_build_targets += \
43 CC=gcc
44
722a2ade
MT
45 # Compiling in parallel mode is unsafe for this pkg.
46 PARALLELISMFLAGS =
47
802ea3af 48 build_cmds
802ea3af 49 # Compile mii-diag
44f64d91 50 make mii-diag
802ea3af
MT
51 end
52
53 install
54 mv man/de_DE man/de
55 mv man/fr_FR man/fr
56 mv man/pt_BR man/pt
57
44f64d91
SS
58 make BASEDIR=%{BUILDROOT} BINDIR=%{bindir} \
59 SBINDIR=%{sbindir} mandir=%{mandir} install
802ea3af 60
44f64d91
SS
61 # Install mii-diag
62 install -m 755 %{DIR_APP}/mii-diag %{BUILDROOT}%{sbindir}
802ea3af
MT
63
64 # Remove tools we do not want
65 rm -rvf \
44f64d91
SS
66 %{BUILDROOT}%{prefix}/{,*}/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}* \
67 %{BUILDROOT}%{mandir}/{,*}/man*/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}*
68
69 # Remove hostname (has its own package)
70 rm -rvf \
71 %{BUILDROOT}%{bindir}/{dnsdomainname,domainname,hostname,nisdomainname,ypdomainname}* \
72 %{BUILDROOT}%{mandir}/{,*}/man*/{dnsdomainname,domainname,hostname,nisdomainname,ypdomainname}*
802ea3af
MT
73 end
74end
75
76packages
77 package %{name}
3f3af884
MT
78 groups += Base
79 end
1f9bc2f0
MT
80
81 package %{name}-debuginfo
82 template DEBUGINFO
83 end
802ea3af 84end