-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinetutils.sh
More file actions
executable file
·35 lines (30 loc) · 875 Bytes
/
inetutils.sh
File metadata and controls
executable file
·35 lines (30 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# See LICENSE for license details.
#!/bin/bash
set -euo pipefail
unpack_src() {
tar xf inetutils-2.0.tar.xz
cd inetutils-2.0
return
}
configure() {
./configure --prefix=/usr \
--localstatedir=/var \
--disable-logger \
--disable-whois \
--disable-rcp \
--disable-rexec \
--disable-rlogin \
--disable-rsh \
--disable-servers
return
}
make_install() {
mkdir $TODD_FAKE_ROOT_DIR/{bin,sbin}
make
make check
make DESTDIR=$TODD_FAKE_ROOT_DIR -j1 install
mv -v $TODD_FAKE_ROOT_DIR/usr/bin/{hostname,ping,ping6,traceroute} $TODD_FAKE_ROOT_DIR/bin
mv -v $TODD_FAKE_ROOT_DIR/usr/bin/ifconfig $TODD_FAKE_ROOT_DIR/sbin
return
}
unpack_src && configure && make_install