mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
f899c758a6
everything at once. Sometime, rename post-install into a options helper target. I did not fix ports that were such a mess that I could not figure out what they really wanted to do. I also did not change ports that had some version of an auto-plist code in post-install, for the same reason. With hat: portmgr Sponsored by: Absolight
47 lines
1.6 KiB
Makefile
47 lines
1.6 KiB
Makefile
# Created by: mich@freebsdcluster.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= remarp
|
|
PORTVERSION= 0.05
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://freebsdcluster.org/~mich/software/ \
|
|
http://www.raccoon.kiev.ua/projects/remarp/
|
|
|
|
MAINTAINER= mich@FreeBSD.org
|
|
COMMENT= SNMP-based ARP watcher
|
|
|
|
RUN_DEPENDS= p5-AppConfig>=0:devel/p5-AppConfig \
|
|
p5-Net-SNMP>=0:net-mgmt/p5-Net-SNMP
|
|
|
|
USES= perl5
|
|
NO_BUILD= YES
|
|
|
|
REMARP_SPOOL= /var/spool/remarp
|
|
|
|
pre-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|; \
|
|
s|use lib "\$$Bin/../lib";||' ${WRKSRC}/sbin/remarp.pl
|
|
@${REINPLACE_CMD} -e 's|\$$Bin/../etc/remarp.conf|${PREFIX}/etc/remarp.conf|; \
|
|
s|\$$Bin/../var/run/remarp.pid|/var/run/remarp.pid|; \
|
|
s|\$$Bin/../var/spool|${REMARP_SPOOL}|; \
|
|
s|use lib "\$$Bin/../lib";||' ${WRKSRC}/lib/remarp/configure.pm
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/remarp
|
|
${MKDIR} ${STAGEDIR}${REMARP_SPOOL}
|
|
${INSTALL_DATA} ${WRKSRC}/etc/remarp.conf ${STAGEDIR}${PREFIX}/etc/remarp.conf.sample
|
|
${INSTALL_DATA} ${WRKSRC}/lib/remarp/*.pm ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/remarp
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sbin/remarp.pl ${STAGEDIR}${PREFIX}/sbin/remarp
|
|
|
|
.if !defined(BATCH)
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "###############################################################################"
|
|
@${ECHO_MSG} "# Please create a remarp config file in ${PREFIX}/etc/ #"
|
|
@${ECHO_MSG} "# A sample configuration file is installed as remarp.conf.sample #"
|
|
@${ECHO_MSG} "###############################################################################"
|
|
@${ECHO_MSG}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|