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