Rework net-tools and inetutils to properly set permissions after install.

This commit is contained in:
Mid Favila 2022-02-19 18:01:48 +00:00
parent 28376427f5
commit 156dc3b741
9 changed files with 24 additions and 20 deletions

View File

@ -8,8 +8,3 @@ sed -i 's/\/sbin/\/usr\/bin/' Makefile
make make
make DESTDIR="$1" install make DESTDIR="$1" install
for bin in route
do chmod 6770 "$1/usr/bin/$bin"
chgrp network "$1/usr/bin/$bin"
done

View File

@ -0,0 +1,6 @@
#!/bin/sh -e
for bin in ypdomainname route rarp nisdomainname netstat nameif mii-tool iptunnel ipmaddr ifconfig hostname domainname dnsdomainname arp
do chgrp network "/usr/bin/$bin"
chmod 6550 "/usr/bin/$bin"
done

View File

@ -1,4 +1,4 @@
628770a9b0d2ccab618d3d5b9bec85e2c2180169dd94449c67ba69283c43cbf7 628770a9b0d2ccab618d3d5b9bec85e2c2180169dd94449c67ba69283c43cbf7
714715936ff5e8a3574a41031cfbf05d4b061f19fcc07175e717f5db70b7f8e4 714715936ff5e8a3574a41031cfbf05d4b061f19fcc07175e717f5db70b7f8e4
4b2932a50164230b0defd4de008e423babf053bac823930258378b0efee64065 4b2932a50164230b0defd4de008e423babf053bac823930258378b0efee64065
0fba4476fd5cdf9d6b5d1c5847c6ff65e462c6dcec849c795b25c45cdcb1b002 b4254c3b1f36a0967f6217849680937782261798c5b41e6e4b03cd8c3d073445

View File

@ -54,8 +54,6 @@ BIN = \
last \ last \
mesg \ mesg \
mkswap \ mkswap \
mount \
mountpoint \
pagesize \ pagesize \
pivot_root \ pivot_root \
readahead \ readahead \
@ -64,11 +62,8 @@ BIN = \
swapoff \ swapoff \
swapon \ swapon \
switch_root \ switch_root \
sysctl \
truncate \ truncate \
umount \
unshare \ unshare \
uptime \
vtallow \ vtallow \
who who
@ -85,7 +80,6 @@ MAN1 = \
stat.1 \ stat.1 \
truncate.1 \ truncate.1 \
unshare.1 \ unshare.1 \
uptime.1 \
vtallow.1 \ vtallow.1 \
who.1 who.1
@ -98,15 +92,12 @@ MAN8 = \
hwclock.8 \ hwclock.8 \
killall5.8 \ killall5.8 \
mkswap.8 \ mkswap.8 \
mount.8 \
pivot_root.8 \ pivot_root.8 \
readahead.8 \ readahead.8 \
swaplabel.8 \ swaplabel.8 \
swapoff.8 \ swapoff.8 \
swapon.8 \ swapon.8 \
switch_root.8 \ switch_root.8
sysctl.8 \
umount.8
LIBUTILOBJ = $(LIBUTILSRC:.c=.o) LIBUTILOBJ = $(LIBUTILSRC:.c=.o)
OBJ = $(BIN:=.o) $(LIBUTILOBJ) OBJ = $(BIN:=.o) $(LIBUTILOBJ)

View File

@ -1 +1 @@
10af8e8dd6ed0ab1f5caba93c7eb74983fdd9d958edacb6ce8d869ce4cc9373c 786b375ce3c2f4cb5530ebb33af966610987146d1257a53483665e66c98e712b

View File

@ -5,9 +5,7 @@ include config.mk
SUBDIRS = lib9\ SUBDIRS = lib9\
yacc\ yacc\
ascii\ ascii\
bc\
cleanname\ cleanname\
dc\
factor\ factor\
fortune\ fortune\
fmt\ fmt\

View File

@ -16,7 +16,8 @@
--disable-ping6 \ --disable-ping6 \
--disable-dnsdomainname \ --disable-dnsdomainname \
--disable-hostname \ --disable-hostname \
--disable-readline --disable-readline \
--disable-ifconfig
make make
make DESTDIR="$1" install make DESTDIR="$1" install

View File

@ -0,0 +1,8 @@
#!/bin/sh -e
for i in whois traceroute tftp telnet ping ifconfig ftp
do
chgrp network "/usr/bin/$i"
chmod 4550 "$1/usr/bin/$i"
done

View File

@ -1,3 +1,8 @@
#!/bin/sh -e #!/bin/sh -e
make prefix=/usr DESTDIR="$1" install make prefix=/usr DESTDIR="$1" install
for i in /usr/share/man/man1/time.1 /usr/share/man/man3/getspnam.3 /usr/share/man/man5/passwd.5 /usr/share/man/man5/tzfile.5 /usr/share/man/man7/man.7 /usr/share/man/man8/tzselect.8 /usr/share/man/man8/zdump.8 /usr/share/man/man8/zic.8
do
rm "$1$i"
done