diff options
author | krion <krion@FreeBSD.org> | 2003-11-03 19:15:55 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2003-11-03 19:15:55 +0800 |
commit | c46524261ae835018779d497e97057cea9fe9314 (patch) | |
tree | 710cfafb51594bb5821e4f5fb3637a2320d32ae2 | |
parent | 71d6a5e1e92f8b3364ad9a0ed915c97d9f6a8470 (diff) | |
download | freebsd-ports-gnome-c46524261ae835018779d497e97057cea9fe9314.tar.gz freebsd-ports-gnome-c46524261ae835018779d497e97057cea9fe9314.tar.zst freebsd-ports-gnome-c46524261ae835018779d497e97057cea9fe9314.zip |
- 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
-rw-r--r-- | net-mgmt/arpwatch-devel/Makefile | 11 | ||||
-rw-r--r-- | net-mgmt/arpwatch-devel/files/arpwatch.sh | 3 | ||||
-rw-r--r-- | net-mgmt/arpwatch-devel/pkg-plist | 2 | ||||
-rw-r--r-- | net-mgmt/arpwatch/Makefile | 11 | ||||
-rw-r--r-- | net-mgmt/arpwatch/files/arpwatch.sh | 3 | ||||
-rw-r--r-- | net-mgmt/arpwatch/pkg-plist | 2 | ||||
-rw-r--r-- | net/arpwatch-devel/Makefile | 11 | ||||
-rw-r--r-- | net/arpwatch-devel/files/arpwatch.sh | 3 | ||||
-rw-r--r-- | net/arpwatch-devel/pkg-plist | 2 | ||||
-rw-r--r-- | net/arpwatch/Makefile | 11 | ||||
-rw-r--r-- | net/arpwatch/files/arpwatch.sh | 3 | ||||
-rw-r--r-- | net/arpwatch/pkg-plist | 2 |
12 files changed, 40 insertions, 24 deletions
diff --git a/net-mgmt/arpwatch-devel/Makefile b/net-mgmt/arpwatch-devel/Makefile index 967b65dee71a..d98e7431bfd1 100644 --- a/net-mgmt/arpwatch-devel/Makefile +++ b/net-mgmt/arpwatch-devel/Makefile @@ -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> diff --git a/net-mgmt/arpwatch-devel/files/arpwatch.sh b/net-mgmt/arpwatch-devel/files/arpwatch.sh index 259a9cbdac1f..92035b9eb274 100644 --- a/net-mgmt/arpwatch-devel/files/arpwatch.sh +++ b/net-mgmt/arpwatch-devel/files/arpwatch.sh @@ -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 diff --git a/net-mgmt/arpwatch-devel/pkg-plist b/net-mgmt/arpwatch-devel/pkg-plist index d186c231e5fc..107115d3caf9 100644 --- a/net-mgmt/arpwatch-devel/pkg-plist +++ b/net-mgmt/arpwatch-devel/pkg-plist @@ -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 diff --git a/net-mgmt/arpwatch/Makefile b/net-mgmt/arpwatch/Makefile index 967b65dee71a..d98e7431bfd1 100644 --- a/net-mgmt/arpwatch/Makefile +++ b/net-mgmt/arpwatch/Makefile @@ -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> diff --git a/net-mgmt/arpwatch/files/arpwatch.sh b/net-mgmt/arpwatch/files/arpwatch.sh index 259a9cbdac1f..92035b9eb274 100644 --- a/net-mgmt/arpwatch/files/arpwatch.sh +++ b/net-mgmt/arpwatch/files/arpwatch.sh @@ -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 diff --git a/net-mgmt/arpwatch/pkg-plist b/net-mgmt/arpwatch/pkg-plist index d186c231e5fc..107115d3caf9 100644 --- a/net-mgmt/arpwatch/pkg-plist +++ b/net-mgmt/arpwatch/pkg-plist @@ -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 diff --git a/net/arpwatch-devel/Makefile b/net/arpwatch-devel/Makefile index 967b65dee71a..d98e7431bfd1 100644 --- a/net/arpwatch-devel/Makefile +++ b/net/arpwatch-devel/Makefile @@ -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> diff --git a/net/arpwatch-devel/files/arpwatch.sh b/net/arpwatch-devel/files/arpwatch.sh index 259a9cbdac1f..92035b9eb274 100644 --- a/net/arpwatch-devel/files/arpwatch.sh +++ b/net/arpwatch-devel/files/arpwatch.sh @@ -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 diff --git a/net/arpwatch-devel/pkg-plist b/net/arpwatch-devel/pkg-plist index d186c231e5fc..107115d3caf9 100644 --- a/net/arpwatch-devel/pkg-plist +++ b/net/arpwatch-devel/pkg-plist @@ -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 diff --git a/net/arpwatch/Makefile b/net/arpwatch/Makefile index 967b65dee71a..d98e7431bfd1 100644 --- a/net/arpwatch/Makefile +++ b/net/arpwatch/Makefile @@ -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> diff --git a/net/arpwatch/files/arpwatch.sh b/net/arpwatch/files/arpwatch.sh index 259a9cbdac1f..92035b9eb274 100644 --- a/net/arpwatch/files/arpwatch.sh +++ b/net/arpwatch/files/arpwatch.sh @@ -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 diff --git a/net/arpwatch/pkg-plist b/net/arpwatch/pkg-plist index d186c231e5fc..107115d3caf9 100644 --- a/net/arpwatch/pkg-plist +++ b/net/arpwatch/pkg-plist @@ -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 |