freebsd-ports/comms/qpage/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

74 lines
2.2 KiB
Makefile

PORTNAME= qpage
PORTVERSION= 3.3
PORTREVISION= 8
CATEGORIES= comms
MASTER_SITES= http://tomiii.com/qpage/qpage.org/download/
MAINTAINER= rand@iteris.com
COMMENT= SNPP client/server for sending messages to an alphanumeric pager
WWW= http://www.qpage.org/
USES=tar:Z
USE_RC_SUBR= qpage
GNU_CONFIGURE= yes
OPTIONS_DEFINE= IDENT_PATCH
IDENT_PATCH_DESC= Disable libwrap ident lookups
IDENT_PATCH_EXTRA_PATCHES=${FILESDIR}/libwrap_ident_patch-srvrsnpp.c
.if !defined(WITH_QPAGE_SYSLOG_FACILITY) || !defined(WITH_QPAGE_USER)
.if !defined(WITH_QPAGE_SYSLOG_FACILITY) && !defined(WITH_QPAGE_USER)
_QPAGE_MSG= You may set the following configuration options:
.else
_QPAGE_MSG= The following additional configuration options are available:
.endif
.if !defined(WITH_QPAGE_SYSLOG_FACILITY)
WITH_QPAGE_SYSLOG_FACILITY= LOG_DAEMON
_QPAGE_SYSLOG_MSG=1
.endif
.if !defined(WITH_QPAGE_USER)
WITH_QPAGE_USER= uucp
_QPAGE_USER_MSG=1
.endif
pre-patch:
@${ECHO_MSG} ""
@${ECHO_MSG} ${_QPAGE_MSG}
@if [ -n "${_QPAGE_SYSLOG_MSG}" ]; then \
${ECHO_MSG} ""; \
${ECHO_MSG} " WITH_QPAGE_SYSLOG_FACILITY=syslog_facility"; \
${ECHO_MSG} " Default is LOG_DAEMON"; \
fi
@if [ -n "${_QPAGE_USER_MSG}" ]; then \
${ECHO_MSG} ""; \
${ECHO_MSG} " WITH_QPAGE_USER=userid"; \
${ECHO_MSG} " Default is \"uucp\"; recommended that user be in group \"dialer\""; \
fi
@${ECHO_MSG} ""
@${ECHO_MSG} "Press ^C now to stop the build and set make options."
@${ECHO_MSG} "You may find it necessary to 'make clean' before restarting the build."
. if !(defined(PACKAGE_BUILDING) || defined(BATCH))
@sleep 2
. endif
.endif
post-patch:
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
${WRKSRC}/qpage.man \
${WRKSRC}/config.input \
${WRKSRC}/config.h.in
${REINPLACE_CMD} \
-e 's,%%WITH_QPAGE_SYSLOG_FACILITY%%,${WITH_QPAGE_SYSLOG_FACILITY},' \
-e 's,%%WITH_QPAGE_USER%%,${WITH_QPAGE_USER},' \
${WRKSRC}/config.input
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qpage ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/qpage.man \
${STAGEDIR}${MAN1PREFIX}/man/man1/qpage.1
${INSTALL_DATA} ${WRKSRC}/example.cf \
${STAGEDIR}${PREFIX}/etc/qpage.conf.sample
${MKDIR} ${STAGEDIR}/var/spool/qpage
.include <bsd.port.mk>