freebsd-ports/dns/opendnssec2/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

93 lines
2.8 KiB
Makefile

PORTNAME= opendnssec
DISTVERSION= 2.1.10
PORTREVISION= 2
CATEGORIES= dns
MASTER_SITES= http://dist.opendnssec.org/source/
PKGNAMESUFFIX= 2
MAINTAINER= jaap@NLnetLabs.nl
COMMENT= Tool suite for maintaining DNSSEC
WWW= https://www.opendnssec.org
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ldns>=1.6.16:dns/ldns
LIB_DEPENDS= libldns.so:dns/ldns \
libxml2.so:textproc/libxml2
USES= autoreconf cpe libtool ssl
USE_RC_SUBR= opendnssec
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir="${PREFIX}/var" \
--with-ssl=${OPENSSLBASE}
INSTALL_TARGET= install-strip
CONFLICTS= opendnssec-1.[0-4]*
SUB_FILES= pkg-message
USERS= opendnssec
GROUPS= opendnssec
PORTDOCS= MIGRATION NEWS README.md
MIGRATE= README.md find_problematic_zones.sql convert_mysql \
mysql_convert.sql convert_sqlite sqlite_convert.sql
CONVERT= convert_mysql_to_sqlite convert_sqlite_to_mysql
SCHEMAS= schema.mysql schema.sqlite
OPTIONS_DEFINE= DOCS SOFTHSM
OPTIONS_DEFAULT= SQLITE
OPTIONS_SINGLE= DB
OPTIONS_SINGLE_DB= MYSQL SQLITE
OPTIONS_SUB= yes
MYSQL_DESC= Use MYSQL backend
SOFTHSM_DESC= SoftHSM cryptographic store for PKCS \#11 interface
SQLITE_DESC= Use SQLite backend
MYSQL_USES= mysql
MYSQL_CONFIGURE_ON= --with-enforcer-database=mysql
SOFTHSM_RUN_DEPENDS= softhsm2>=2.5.0:security/softhsm2
SOFTHSM_CONFIGURE_ON= --with-pkcs11-softhsm=${LOCALBASE}/lib/softhsm/libsofthsm2.so
SQLITE_BUILD_DEPENDS= sqlite3>=3.3.9:databases/sqlite3
SQLITE_USES= sqlite
SQLITE_CONFIGURE_ON= --with-enforcer-database=sqlite3
pre-build:
${REINPLACE_CMD} -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \
${WRKSRC}/configure
pre-install-MYSQL-on:
${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| mysql|' ${WRKDIR}/opendnssec
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/1.4-2.0_db_convert
${INSTALL_DATA} \
${MIGRATE:S|^|${WRKSRC}/enforcer/utils/1.4-2.0_db_convert/|} \
${STAGEDIR}${DOCSDIR}/1.4-2.0_db_convert
${INSTALL_DATA} \
${CONVERT:S|^|${WRKSRC}/enforcer/utils/|} \
${STAGEDIR}${DOCSDIR}
${REINPLACE_CMD} -e 's|enforcer/utils/|${DOCSDIR}/|' \
${STAGEDIR}${DOCSDIR}/MIGRATION
${INSTALL_DATA} \
${SCHEMAS:S|^|${WRKSRC}/enforcer/src/db/|} \
${STAGEDIR}${DOCSDIR}
${REINPLACE_CMD} -e 's|../src/db/schema|${DOCSDIR}/schema|' \
-e 's|mysql_convert.sql|${DOCSDIR}/1.4-2.0_db_convert/&|' \
-e 's|sqlite_convert.sql|${DOCSDIR}/1.4-2.0_db_convert/&|' \
-e 's|find_problematic_zones.sql|${DOCSDIR}/1.4-2.0_db_convert/&|' \
${STAGEDIR}${DOCSDIR}/convert_*
${REINPLACE_CMD} -e 's|../../src/db/schema|${DOCSDIR}/schema|' \
-e 's|mysql_convert.sql|${DOCSDIR}/1.4-2.0_db_convert/&|' \
-e 's|sqlite_convert.sql|${DOCSDIR}/1.4-2.0_db_convert/&|' \
-e 's|find_problematic_zones.sql|${DOCSDIR}/1.4-2.0_db_convert/&|' \
${STAGEDIR}${DOCSDIR}/1.4-2.0_db_convert/convert_*
.include <bsd.port.mk>