mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
eee58d187e
Before, we had: site_perl : lib/perl5/site_perl/5.18 site_perl/perl_arch : lib/perl5/site_perl/5.18/mach perl_man3 : lib/perl5/5.18/man/man3 Now we have: site_perl : lib/perl5/site_perl site_arch : lib/perl5/site_perl/mach/5.18 perl_man3 : lib/perl5/site_perl/man/man3 Modules without any .so will be installed at the same place regardless of the Perl version, minimizing the upgrade when the major Perl version is changed. It uses a version dependent directory for modules with compiled bits. As PERL_ARCH is no longer needed in plists, it has been removed from PLIST_SUB. The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now always removed, as is perllocal.pod. The old site_perl and site_perl/arch directories have been kept in the default Perl @INC for all Perl ports, and will be phased out as these old Perl versions expire. PR: 194969 Differential Revision: https://reviews.freebsd.org/D1019 Exp-run by: antoine Reviewed by: perl@ Approved by: portmgr
48 lines
1.6 KiB
Makefile
48 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:${PORTSDIR}/devel/p5-AppConfig \
|
|
p5-Net-SNMP>=0:${PORTSDIR}/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
|
|
|
|
post-install:
|
|
.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>
|