# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	remarp
#	remarp/Makefile
#	remarp/distinfo
#	remarp/pkg-descr
#	remarp/pkg-plist
#
echo c - remarp
mkdir -p remarp > /dev/null 2>&1
echo x - remarp/Makefile
sed 's/^X//' >remarp/Makefile << 'END-of-remarp/Makefile'
X# New ports collection makefile for:   remarp
X# Date created:        Tue Apr 1 14:02:35 GMT 2003
X# Whom:                mich@freebsdcluster.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	remarp
XPORTVERSION=	0.04
XCATEGORIES=	net
XMASTER_SITES=	http://www.raccoon.kiev.ua/projects/remarp/
X
XMAINTAINER=	mich@freebsdcluster.org
XCOMMENT=	An SNMP-based ARP watcher
X
XRUN_DEPENDS=	${SITE_PERL}/AppConfig.pm:${PORTSDIR}/devel/p5-AppConfig \
X		${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net/p5-Net-SNMP
X
XUSE_REINPLACE=	YES
XUSE_PERL5=	YES
XNO_BUILD=	YES
X
XREMARP_SPOOL=	/var/spool/remarp
X
Xpre-patch:
X	@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|; \
X	s|use lib "\$$Bin/../lib";||' ${WRKSRC}/sbin/remarp.pl
X	@${REINPLACE_CMD} -e 's|\$$Bin/../etc/remarp.conf|${PREFIX}/etc/remarp.conf|; \
X	s|\$$Bin/../var/run/remarp.pid|/var/run/remarp.pid|; \
X	s|\$$Bin/../var/spool|${REMARP_SPOOL}|; \
X	s|use lib "\$$Bin/../lib";||' ${WRKSRC}/lib/remarp/configure.pm
X
Xdo-install:
X	${MKDIR} ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/remarp
X	${MKDIR} ${REMARP_SPOOL}
X	${INSTALL_DATA} ${WRKSRC}/etc/remarp.conf ${PREFIX}/etc/remarp.conf.sample
X	${INSTALL_DATA} ${WRKSRC}/lib/remarp/*.pm ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/remarp
X	${INSTALL_SCRIPT} ${WRKSRC}/sbin/remarp.pl ${PREFIX}/sbin/remarp
X
Xpost-install:
X.if !defined(BATCH)
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "###############################################################################"
X	@${ECHO_MSG} "# Please create a remarp config file in ${PREFIX}/etc/                        #"
X	@${ECHO_MSG} "# A sample configuration file is installed as remarp.conf.sample              #"
X	@${ECHO_MSG} "###############################################################################"
X	@${ECHO_MSG}
X.endif
X
X.include <bsd.port.mk>
END-of-remarp/Makefile
echo x - remarp/distinfo
sed 's/^X//' >remarp/distinfo << 'END-of-remarp/distinfo'
XMD5 (remarp-0.04.tar.gz) = 26646fde963b7de98c3d43e3901e22d7
END-of-remarp/distinfo
echo x - remarp/pkg-descr
sed 's/^X//' >remarp/pkg-descr << 'END-of-remarp/pkg-descr'
XRemote Arpwatch collects ARP tables from  remote devices using SNMP and 
Xchecks them  for changes. It is very useful for detecting  problems and 
Xmalicious users in networks  with routers that don't support static 
XARP tables.  
X
XWWW:	http://www.raccoon.kiev.ua/projects/remarp/
XAUTHOR:	melnik <melnik@raccoon.kiev.ua>
X	
X- Michael L. Hostbaek
X   mich@freebsdcluster.org
END-of-remarp/pkg-descr
echo x - remarp/pkg-plist
sed 's/^X//' >remarp/pkg-plist << 'END-of-remarp/pkg-plist'
Xsbin/remarp
Xetc/remarp.conf.sample
Xlib/perl5/site_perl/%%PERL_VER%%/remarp/config.pm
Xlib/perl5/site_perl/%%PERL_VER%%/remarp/configure.pm
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/remarp
END-of-remarp/pkg-plist
exit