freebsd-ports/security/ftimes/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

142 lines
4.4 KiB
Makefile

PORTNAME= ftimes
PORTVERSION= 3.11.0
PORTREVISION= 2
CATEGORIES= security sysutils
MASTER_SITES= SF
MAINTAINER= klm@uidzero.org
COMMENT= System baselining and evidence collection tool
WWW= http://ftimes.sourceforge.net/FTimes/
LICENSE= BSD3CLAUSE APACHE20 MIT
LICENSE_COMB= multi
BROKEN_aarch64= fails to build: aarch64 is not currently supported
BROKEN_mips64= fails to build: mips64 is not currently supported
BROKEN_riscv64= fails to build: riscv64 is not currently supported
GNU_CONFIGURE= yes
USES= perl5 shebangfix tar:tgz
USE_PERL5= run build
SHEBANG_FILES= \
${WRKSRC}/tools/dig/ftimes-crv2dbi.pl \
${WRKSRC}/tools/dig/ftimes-crv2raw.pl \
${WRKSRC}/tools/dig/ftimes-dig2ctx.pl \
${WRKSRC}/tools/dig/ftimes-dig2dbi.pl \
${WRKSRC}/tools/dig/hipdig.pl \
${WRKSRC}/tools/ftimes-bimvl/ftimes-bimvl \
${WRKSRC}/tools/ftimes-cmp2diff/ftimes-cmp2diff \
${WRKSRC}/tools/ftimes-dbm-bash/ftimes-dbm-bash \
${WRKSRC}/tools/ftimes-dbm-dump/ftimes-dbm-dump \
${WRKSRC}/tools/ftimes-dbm-find/ftimes-dbm-find \
${WRKSRC}/tools/ftimes-dbm-make/ftimes-dbm-make \
${WRKSRC}/tools/ftimes-dbm-reap/ftimes-dbm-reap \
${WRKSRC}/tools/ftimes-dbm-weed/ftimes-dbm-weed \
${WRKSRC}/tools/ftimes-encoder/ftimes-encoder \
${WRKSRC}/tools/ftimes-grabber/ftimes-grabber \
${WRKSRC}/tools/ftimes-proximo/ftimes-proximo \
${WRKSRC}/tools/ftimes-sizimus/ftimes-sizimus \
${WRKSRC}/tools/ftimes-sortini/ftimes-sortini \
${WRKSRC}/tools/ftimes-xformer/ftimes-xformer \
${WRKSRC}/tools/hashdig/hashdig-bash.pl \
${WRKSRC}/tools/hashdig/hashdig-bind.pl \
${WRKSRC}/tools/hashdig/hashdig-dump.pl \
${WRKSRC}/tools/hashdig/hashdig-filter.pl \
${WRKSRC}/tools/hashdig/hashdig-find.pl \
${WRKSRC}/tools/hashdig/hashdig-harvest-sunsolve.pl \
${WRKSRC}/tools/hashdig/hashdig-harvest.pl \
${WRKSRC}/tools/hashdig/hashdig-make.pl \
${WRKSRC}/tools/hashdig/hashdig-resolve-sunsolve.pl \
${WRKSRC}/tools/hashdig/hashdig-stat.pl \
${WRKSRC}/tools/hashdig/hashdig-weed.pl \
${WRKSRC}/tools/map/ftimes-cmp2dbi.pl \
${WRKSRC}/tools/map/ftimes-map2dbi.pl \
${WRKSRC}/tools/map/ftimes-map2mac.pl \
${WRKSRC}/tools/zipmap/zipmap
OPTIONS_DEFINE= DBM_TOOLS DIG_TOOLS FILE_HOOKS HASHDIG_TOOLS MAP_TOOLS SSL XMAGIC
OPTIONS_DEFAULT= DBM_TOOLS DIG_TOOLS FILE_HOOKS HASHDIG_TOOLS MAP_TOOLS XMAGIC
DBM_TOOLS_DESC= Install DBM tools
DIG_TOOLS_DESC= Install dig tools
FILE_HOOKS_DESC= Include file hooks support
HASHDIG_TOOLS_DESC= Install hashdig tools
MAP_TOOLS_DESC= Install map tools
XMAGIC_DESC= XMagic support
SSL_USES= ssl
.include <bsd.port.pre.mk>
LIB_DEPENDS+= libpcre.so:devel/pcre
CONFIGURE_ARGS+= --with-pcre=${LOCALBASE}
STRIP_FILES= ${STAGEDIR}${PREFIX}/bin/ftimes
INSTALL_PERL5_LIBS=
.if ${PORT_OPTIONS:MDBM_TOOLS}
PLIST_SUB+= DBM_TOOLS=""
CONFIGURE_ARGS+= --with-dbm-tools
.else
PLIST_SUB+= DBM_TOOLS="@comment "
.endif
.if ${PORT_OPTIONS:MDIG_TOOLS}
PLIST_SUB+= DIG_TOOLS=""
CONFIGURE_ARGS+= --with-dig-tools
RUN_DEPENDS+= p5-Digest-SHA1>=0:security/p5-Digest-SHA1
INSTALL_PERL5_LIBS= yes
.else
PLIST_SUB+= DIG_TOOLS="@comment "
.endif
.if ${PORT_OPTIONS:MFILE_HOOKS}
LIB_DEPENDS+= libklel.so:devel/libklel
CONFIGURE_ARGS+= --enable-file-hooks --with-klel=${LOCALBASE} --with-perl=${LOCALBASE}/bin/perl
.else
PLIST_SUB+= WITH_FILE_HOOKS="@comment "
.endif
.if ${PORT_OPTIONS:MHASHDIG_TOOLS}
PLIST_SUB+= HASHDIG_TOOLS=""
CONFIGURE_ARGS+= --with-hashdig-tools
.else
PLIST_SUB+= HASHDIG_TOOLS="@comment "
.endif
.if ${PORT_OPTIONS:MMAP_TOOLS}
PLIST_SUB+= MAP_TOOLS=""
CONFIGURE_ARGS+= --with-map-tools
STRIP_FILES+= ${STAGEDIR}${PREFIX}/bin/ftimes-cat ${STAGEDIR}${PREFIX}/bin/ftimes-xpa ${STAGEDIR}${PREFIX}/bin/hashcp ${STAGEDIR}${PREFIX}/bin/tarmap
INSTALL_PERL5_LIBS= yes
.else
PLIST_SUB+= MAP_TOOLS="@comment "
.endif
.if ${PORT_OPTIONS:MSSL}
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
.else
CONFIGURE_ARGS+= --without-ssl
.endif
.if ${PORT_OPTIONS:MXMAGIC}
PLIST_SUB+= XMAGIC=""
CONFIGURE_ARGS+= --enable-xmagic
.else
PLIST_SUB+= XMAGIC="@comment "
CONFIGURE_ARGS+= --disable-xmagic
.endif
.if ${INSTALL_PERL5_LIBS}
PLIST_SUB+= FTIMES_PERL5_LIBS=""
.else
PLIST_SUB+= FTIMES_PERL5_LIBS="@comment "
.endif
post-configure:
if [ "${INSTALL_PERL5_LIBS}" = "yes" ] ; then ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' ${WRKSRC}/lib/perl/Makefile ; fi
post-install:
${STRIP_CMD} ${STRIP_FILES}
.include <bsd.port.post.mk>