1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/german/unix-connect/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

80 lines
2.2 KiB
Makefile

PORTNAME= unix-connect
PORTVERSION= 0.95
PORTREVISION= 3
CATEGORIES= german comms news mail
MASTER_SITES= ftp://ftp.dinoex.org/pub/unix-connect/ \
SF
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Mail and news gateway for Zconnect
WWW= https://www.dinoex.de/unix-connect.html
BUILD_DEPENDS= lrz:comms/lrzsz
LICENSE_COMB= multi
LICENSE= GPLv2 BSD3CLAUSE
MANUAL_PACKAGE_BUILD= needs hostname
USES= fakeroot gperf
WRKSRC= ${WRKDIR}/${DISTNAME}
GNU_CONFIGURE= yes
.if !defined(INSTALL_AS_USER)
CONFIGURE_ARGS+=--with-user=news
CONFIGURE_ARGS+=--with-group=dialer
.else
CONFIGURE_ARGS+=--with-user=`id -u -n`
CONFIGURE_ARGS+=--with-group=`id -g -n`
.endif
CONFIGURE_ARGS+=--with-execdir=${PREFIX}/libexec/uconnect
CONFIGURE_ARGS+=--with-confdir=${PREFIX}/etc/uconnect
CONFIGURE_ARGS+=--with-spooldir=/var/spool/uconnect
CONFIGURE_ARGS+=--enable-testing
CFLAGS+= -g
CFLAGS:= ${CFLAGS:S/-O[0-9]*//g} # gcc generates broken code in uwsmtp
DOC1= README INSTALL TODO ChangeLog ChangeLog.configure
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= MAIL NEWS
OPTIONS_SINGLE_MAIL= SENDMAIL POSTFIX QMAIL SMAIL NO_MAIL
OPTIONS_SINGLE_NEWS= CNEWS INN NO_NEWS
OPTIONS_DEFAULT=SENDMAIL CNEWS
NO_OPTIONS_SORT=yes
OPTIONS_SUB= yes
SENDMAIL_DESC= build mail scripts for sendmail
POSTFIX_DESC= build mail scripts for postfix
QMAIL_DESC= build mail scripts for qmail
SMAIL_DESC= build mail scripts for smail
NO_MAIL_DESC= no mail scripts
CNEWS_DESC= build news scripts for cnews
INN_DESC= build news scripts for inn
NO_NEWS_DESC= no news scripts
SENDMAIL_CONFIGURE_ON= --with-mail=sendmail
POSTFIX_CONFIGURE_ON= --with-mail=postfix
QMAIL_CONFIGURE_ON= --with-mail=qmail
SMAIL_CONFIGURE_ON= --with-mail=smail
NO_MAIL_CONFIGURE_ON= --with-mail=no
CNEWS_CONFIGURE_ON= --with-news=cnews
INN_CONFIGURE_ON= --with-news=inn
NO_NEWS_CONFIGURE_ON= --with-news=no
.include <bsd.port.options.mk>
pre-install:
${MKDIR} ${STAGEDIR}/var/spool
post-install:
.if ${PORT_OPTIONS:MCNEWS}
${INSTALL_SCRIPT} ${WRKSRC}/mail-and-news/cnews/viazconnect \
${STAGEDIR}${PREFIX}/libexec/uconnect/
.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC1:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf -
.endif
.include <bsd.port.mk>