mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-22 11:20:56 +00:00
- do not use a long deprecated resolver option - fix Makefile to use correct path for reading ethercodes.dat - fix hardcoded paths in update-ethercodes.sh so that it actually works - remind users to update their ethercodes.dat Thanks to Vladislav Mikhailikov <vmikhailikov@gmail.com> for initial work and inspiration. Closes: https://bugs.gentoo.org/783195 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/42386 Closes: https://github.com/gentoo/gentoo/pull/42386 Signed-off-by: Sam James <sam@gentoo.org>
30 lines
655 B
Diff
30 lines
655 B
Diff
Use correct paths in update-etherncodes.sh
|
|
Bug: https://bugs.gentoo.org/783195
|
|
|
|
--- a/update-ethercodes.sh.in
|
|
+++ b/update-ethercodes.sh.in
|
|
@@ -6,22 +6,19 @@
|
|
|
|
prog="`basename $0`"
|
|
|
|
-PATH=/usr/local/bin:${PATH}
|
|
-export PATH
|
|
-
|
|
t1=/tmp/${prog}.1.$$
|
|
|
|
trap 'rm -f ${t1}; exit 1' 1 2 3 15 EXIT
|
|
|
|
if [ ! -f arp.dat ]; then
|
|
- cd /usr/local/arpwatch || exit 1
|
|
+ cd @datarootdir@/arpwatch || exit 1
|
|
fi
|
|
|
|
fn=ethercodes.dat
|
|
url=https://standards-oui.ieee.org/oui/oui.csv
|
|
|
|
cmd1="curl --no-progress-meter ${url}"
|
|
-cmd2=./massagevendor
|
|
+cmd2=@sbindir@/massagevendor.py
|
|
|
|
# Emit exit status of first command in pipe
|
|
# https://unix.stackexchange.com/a/70675
|