forked from lunar-linux/moonbase-other
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
28 lines (21 loc) · 962 Bytes
/
BUILD
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
(
# move the package to /usr
sedit "s@\(PATH=.*\)@\1:/usr/bin@" bin/resolvconf &&
sedit "s@\(PATH=/sbin:/bin\)@\1:/usr/bin@" etc/resolvconf/update.d/libc &&
sedit "s@\(/lib/resolvconf/list-records\)@/usr\1@" etc/resolvconf/update.d/* &&
prepare_install &&
install -Dm0755 bin/resolvconf /usr/bin/ &&
install -Dm0755 bin/list-records /usr/lib/resolvconf/list-records &&
cp -rv etc/resolvconf /etc/ &&
ln -sf /var/run/resolvconf/ /etc/resolvconf/run &&
# backup original resolv.conf
if [ ! -e /etc/resolv.conf ] || [ ! -L /etc/resolv.conf ]; then
if [ -e /etc/resolv.conf ]; then
mv /etc/resolv.conf /etc/resolvconf/resolv.conf.d/original
fi &&
# /etc/resolv.conf is protected and will not be listed in install
ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
fi &&
install -m644 man/resolvconf.8 /usr/share/man/man8/ &&
install -m644 man/interface-order.5 /usr/share/man/man5/
) > $C_FIFO 2>&1