mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Install sample startup script
- Add support for multiple interfaces - Add ECHO_MSG for startup script - Bump PORTREVISION PR: 54575 58717 Submitted by: Volker Stolz, Gleb Smirnoff
This commit is contained in:
parent
f17af4e1d4
commit
ddf0976484
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92955
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= arpwatch
|
||||
PORTVERSION= 2.1.a11
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.Awfulhak.org/arpwatch/ \
|
||||
ftp://ftp.ee.lbl.gov/
|
||||
@ -31,9 +31,12 @@ post-install:
|
||||
${TOUCH} ${PREFIX}/arpwatch/arp.dat
|
||||
${CHMOD} 644 ${PREFIX}/arpwatch/arp.dat
|
||||
for file in ethercodes.dat d.awk e.awk p.awk; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch/.; \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch; \
|
||||
done
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch/.
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/.
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/arpwatch.sh.sample
|
||||
@${ECHO_MSG} "#####################################################################"
|
||||
@${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/arpwatch.sh.sample file."
|
||||
@${ECHO_MSG} "#####################################################################"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -35,7 +35,8 @@ start)
|
||||
;;
|
||||
*)
|
||||
for interface in ${arpwatch_interfaces}; do
|
||||
"$PREFIX"/sbin/arpwatch -i "${interface}" && echo -n " arpwatch(${interface})"
|
||||
touch "$PREFIX"/arpwatch/arp.${interface}.dat
|
||||
"$PREFIX"/sbin/arpwatch -i "${interface}" -f arp.${interface}.dat && echo -n " arpwatch(${interface})"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
@ -5,7 +5,7 @@ arpwatch/ethercodes.dat
|
||||
arpwatch/d.awk
|
||||
arpwatch/e.awk
|
||||
arpwatch/p.awk
|
||||
etc/rc.d/arpwatch.sh
|
||||
etc/rc.d/arpwatch.sh.sample
|
||||
@unexec test -f %D/arpwatch/arp.dat && test -s %D/arpwatch/arp.dat || rm -f %D/arpwatch/arp.dat
|
||||
@exec test -f %D/arpwatch/arp.dat || touch %D/arpwatch/arp.dat
|
||||
@dirrm arpwatch
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= arpwatch
|
||||
PORTVERSION= 2.1.a11
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.Awfulhak.org/arpwatch/ \
|
||||
ftp://ftp.ee.lbl.gov/
|
||||
@ -31,9 +31,12 @@ post-install:
|
||||
${TOUCH} ${PREFIX}/arpwatch/arp.dat
|
||||
${CHMOD} 644 ${PREFIX}/arpwatch/arp.dat
|
||||
for file in ethercodes.dat d.awk e.awk p.awk; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch/.; \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch; \
|
||||
done
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch/.
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/.
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/arpwatch.sh.sample
|
||||
@${ECHO_MSG} "#####################################################################"
|
||||
@${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/arpwatch.sh.sample file."
|
||||
@${ECHO_MSG} "#####################################################################"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -35,7 +35,8 @@ start)
|
||||
;;
|
||||
*)
|
||||
for interface in ${arpwatch_interfaces}; do
|
||||
"$PREFIX"/sbin/arpwatch -i "${interface}" && echo -n " arpwatch(${interface})"
|
||||
touch "$PREFIX"/arpwatch/arp.${interface}.dat
|
||||
"$PREFIX"/sbin/arpwatch -i "${interface}" -f arp.${interface}.dat && echo -n " arpwatch(${interface})"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
@ -5,7 +5,7 @@ arpwatch/ethercodes.dat
|
||||
arpwatch/d.awk
|
||||
arpwatch/e.awk
|
||||
arpwatch/p.awk
|
||||
etc/rc.d/arpwatch.sh
|
||||
etc/rc.d/arpwatch.sh.sample
|
||||
@unexec test -f %D/arpwatch/arp.dat && test -s %D/arpwatch/arp.dat || rm -f %D/arpwatch/arp.dat
|
||||
@exec test -f %D/arpwatch/arp.dat || touch %D/arpwatch/arp.dat
|
||||
@dirrm arpwatch
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= arpwatch
|
||||
PORTVERSION= 2.1.a11
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.Awfulhak.org/arpwatch/ \
|
||||
ftp://ftp.ee.lbl.gov/
|
||||
@ -31,9 +31,12 @@ post-install:
|
||||
${TOUCH} ${PREFIX}/arpwatch/arp.dat
|
||||
${CHMOD} 644 ${PREFIX}/arpwatch/arp.dat
|
||||
for file in ethercodes.dat d.awk e.awk p.awk; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch/.; \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch; \
|
||||
done
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch/.
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/.
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/arpwatch.sh.sample
|
||||
@${ECHO_MSG} "#####################################################################"
|
||||
@${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/arpwatch.sh.sample file."
|
||||
@${ECHO_MSG} "#####################################################################"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -35,7 +35,8 @@ start)
|
||||
;;
|
||||
*)
|
||||
for interface in ${arpwatch_interfaces}; do
|
||||
"$PREFIX"/sbin/arpwatch -i "${interface}" && echo -n " arpwatch(${interface})"
|
||||
touch "$PREFIX"/arpwatch/arp.${interface}.dat
|
||||
"$PREFIX"/sbin/arpwatch -i "${interface}" -f arp.${interface}.dat && echo -n " arpwatch(${interface})"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
@ -5,7 +5,7 @@ arpwatch/ethercodes.dat
|
||||
arpwatch/d.awk
|
||||
arpwatch/e.awk
|
||||
arpwatch/p.awk
|
||||
etc/rc.d/arpwatch.sh
|
||||
etc/rc.d/arpwatch.sh.sample
|
||||
@unexec test -f %D/arpwatch/arp.dat && test -s %D/arpwatch/arp.dat || rm -f %D/arpwatch/arp.dat
|
||||
@exec test -f %D/arpwatch/arp.dat || touch %D/arpwatch/arp.dat
|
||||
@dirrm arpwatch
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= arpwatch
|
||||
PORTVERSION= 2.1.a11
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.Awfulhak.org/arpwatch/ \
|
||||
ftp://ftp.ee.lbl.gov/
|
||||
@ -31,9 +31,12 @@ post-install:
|
||||
${TOUCH} ${PREFIX}/arpwatch/arp.dat
|
||||
${CHMOD} 644 ${PREFIX}/arpwatch/arp.dat
|
||||
for file in ethercodes.dat d.awk e.awk p.awk; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch/.; \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch; \
|
||||
done
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch/.
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/.
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/arpwatch.sh.sample
|
||||
@${ECHO_MSG} "#####################################################################"
|
||||
@${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/arpwatch.sh.sample file."
|
||||
@${ECHO_MSG} "#####################################################################"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -35,7 +35,8 @@ start)
|
||||
;;
|
||||
*)
|
||||
for interface in ${arpwatch_interfaces}; do
|
||||
"$PREFIX"/sbin/arpwatch -i "${interface}" && echo -n " arpwatch(${interface})"
|
||||
touch "$PREFIX"/arpwatch/arp.${interface}.dat
|
||||
"$PREFIX"/sbin/arpwatch -i "${interface}" -f arp.${interface}.dat && echo -n " arpwatch(${interface})"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
@ -5,7 +5,7 @@ arpwatch/ethercodes.dat
|
||||
arpwatch/d.awk
|
||||
arpwatch/e.awk
|
||||
arpwatch/p.awk
|
||||
etc/rc.d/arpwatch.sh
|
||||
etc/rc.d/arpwatch.sh.sample
|
||||
@unexec test -f %D/arpwatch/arp.dat && test -s %D/arpwatch/arp.dat || rm -f %D/arpwatch/arp.dat
|
||||
@exec test -f %D/arpwatch/arp.dat || touch %D/arpwatch/arp.dat
|
||||
@dirrm arpwatch
|
||||
|
Loading…
Reference in New Issue
Block a user