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
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
# Created by: John D. "Trix" Farrar <trix@basement.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= logwatch
|
|
PORTVERSION= 7.4.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= trix@basement.net
|
|
COMMENT= Log file analysis program
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= p5-MIME-Base64>=0:${PORTSDIR}/converters/p5-MIME-Base64
|
|
|
|
USES= perl5 shebangfix
|
|
USE_PERL5= run
|
|
SHEBANG_FILES= scripts/logwatch.pl
|
|
PORTDOCS= HOWTO-Customize-LogWatch README
|
|
NO_BUILD= yes
|
|
MAKE_ENV+= SITE_PERL_REL=${SITE_PERL_REL}
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
pre-configure:
|
|
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -E \
|
|
-e "s,/usr/share/logwatch,${LOCALBASE}," \
|
|
-e "s,/etc/logwatch,${ETCDIR}," \
|
|
-e 's,^eval "use lib.*,,' \
|
|
-e "s,.BaseDir/lib,${LIBEXECDIR}," \
|
|
-e 's,BaseDir/dist.conf,ConfigDir/defaults,' \
|
|
-e 's,BaseDir/default.conf,ConfigDir/defaults,' \
|
|
-e 's,ConfigDir/conf,ConfigDir,' \
|
|
-e "s,BaseDir/scripts/([^/]*)/,BaseDir/libexec/${PORTNAME}/defaults/\1/," \
|
|
-e "s,ConfigDir/scripts/([^/]*)/,BaseDir/libexec/${PORTNAME}/\1/," \
|
|
${WRKSRC}/scripts/logwatch.pl
|
|
${REINPLACE_CMD} -E \
|
|
-e "s,/var/cache/logwatch,${LOCALBASE}/var/${PORTNAME}," \
|
|
${WRKSRC}/conf/logwatch.conf
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/HOWTO-Customize-LogWatch ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|