one more install gone.

This commit is contained in:
espie 2004-10-08 10:04:26 +00:00
parent 8825e43e35
commit 2dec5e9879
3 changed files with 11 additions and 58 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.17 2004/06/19 21:37:38 jakob Exp $
# $OpenBSD: Makefile,v 1.18 2004/10/08 10:04:26 espie Exp $
COMMENT= "monitor arp & rarp requests"
@ -31,6 +31,7 @@ do-install:
@for i in ethercodes.dat d.awk e.awk p.awk; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${EXAMPLESDIR}; \
done
@${INSTALL_DATA} /dev/null ${EXAMPLESDIR}/arp.dat
@${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -1,56 +0,0 @@
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.1 2001/06/01 23:36:32 jakob Exp $
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=/var/arpwatch
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/arpwatch
do_configs()
{
if [ -d $CONFIG_DIR ]; then
echo ""
echo "+---------------"
echo "| The existing $1 configuration files in $CONFIG_DIR,"
echo "| have NOT been changed. You may want to compare them to the"
echo "| current sample files, $SAMPLE_CONFIG_DIR,"
echo "| and update your configuration as needed."
echo "+---------------"
echo ""
else
install -d -o root -g wheel -m 755 $CONFIG_DIR
install -o root -g wheel -m 444 \
$SAMPLE_CONFIG_DIR/ethercodes.dat $CONFIG_DIR
install -o root -g wheel -m 644 \
/dev/null $CONFIG_DIR/arp.dat
echo ""
echo "+---------------"
echo "| The $1 configuration files in $CONFIG_DIR,"
echo "| have been installed. Please view these files and change"
echo "| the configuration to meet your needs."
echo "+---------------"
echo ""
fi
}
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
do_configs $1
;;
*)
echo "Usage: `basename $0` distname <PRE-INSTALL|POST-INSTALL>" >&2
exit 1
;;
esac
exit 0

View File

@ -1,11 +1,19 @@
@comment $OpenBSD: PLIST,v 1.7 2004/09/15 18:17:38 espie Exp $
@comment $OpenBSD: PLIST,v 1.8 2004/10/08 10:04:26 espie Exp $
@man man/man8/arpsnmp.8
@man man/man8/arpwatch.8
sbin/arpsnmp
sbin/arpwatch
@sample /var/arpwatch/
share/examples/arpwatch/
share/examples/arpwatch/arp2ethers
share/examples/arpwatch/d.awk
share/examples/arpwatch/e.awk
share/examples/arpwatch/ethercodes.dat
@mode 444
@sample /var/arpwatch/ethercodes.dat
@mode
share/examples/arpwatch/p.awk
share/examples/arpwatch/arp.dat
@mode 644
@sample /var/arpwatch/arp.dat
@mode