freebsd-ports/ftp/bsdftpd-ssl/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

77 lines
2.3 KiB
Makefile

PORTNAME= bsdftpd-ssl
PORTVERSION= 1.1.0
PORTREVISION= 4
CATEGORIES= ftp
MASTER_SITES= http://www.sourcefiles.org/System/Daemons/FTP/ \
LOCAL/sunpoet
MAINTAINER= skynick@mail.sc.ru
COMMENT= Secure FTP client/server with TLS/SSL support
WWW= http://bsdftpd-ssl.sc.ru
USES= ssl
MAKE_ENV+= OBJFORMAT=elf
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= SERVER DOCS EXAMPLES
SERVER_DESC= Build/install FTP server as well
OPTIONS_SUB= yes
USE_RC_SUBR= ${PORTNAME}
# in case people still have CLIENT_ONLY defined...
.if !defined(CLIENT_ONLY)
OPTIONS_DEFAULT=SERVER
.endif
# explicitly link against libpam to support external toolchains.
LDFLAGS+= -lpam
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSERVER} && ${PORT_OPTIONS:MEXAMPLES}
SUB_FILES= pkg-message
.endif
post-patch:
${MV} ${WRKSRC}/docs/README ${WRKSRC}/docs/README-docs
do-configure:
(cd ${WRKSRC} && ./config.sh FreeBSD) || true
do-build:
${DO_MAKE_BUILD} -C ${WRKSRC}/port
${DO_MAKE_BUILD} -C ${WRKSRC}/ftp
.if ${PORT_OPTIONS:MSERVER}
${DO_MAKE_BUILD} -C ${WRKSRC}/ftpd
.endif
do-install:
# Client part
${INSTALL_PROGRAM} ${WRKSRC}/ftp/ftps ${STAGEDIR}${PREFIX}/bin/ftps
${INSTALL_MAN} ${WRKSRC}/ftp/ftps.1.gz ${STAGEDIR}${MANPREFIX}/man/man1/ftps.1.gz
# Server part
.if ${PORT_OPTIONS:MSERVER}
${INSTALL_PROGRAM} ${WRKSRC}/ftpd/ftpd ${STAGEDIR}${PREFIX}/libexec/ftpd
${INSTALL_MAN} ${WRKSRC}/ftpd/ftpchroot.5.gz ${STAGEDIR}${MANPREFIX}/man/man5/ftpchroot.5.gz
${INSTALL_MAN} ${WRKSRC}/ftpd/xferlog.5.gz ${STAGEDIR}${MANPREFIX}/man/man5/xferlog.5.gz
${INSTALL_MAN} ${WRKSRC}/ftpd/ftpd.8.gz ${STAGEDIR}${MANPREFIX}/man/man8/ftpd.8.gz
${LN} -s ftpchroot.5.gz ${STAGEDIR}${MANPREFIX}/man/man5/ftpchroot-ssl.5.gz
${LN} -s ftpd.8.gz ${STAGEDIR}${MANPREFIX}/man/man8/ftpd-ssl.8.gz
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
. for file in COPYRIGHT README INSTALL ChangeLog
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
. endfor
.if ${PORT_OPTIONS:MSERVER} && ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/cert
${INSTALL_SCRIPT} ${WRKSRC}/cert/* ${STAGEDIR}${EXAMPLESDIR}/cert
. for file in README.examples ftpchroot ftpusers rc_conf_d.bsdftpd_ssl
${INSTALL_DATA} ${FILESDIR}/${file} ${STAGEDIR}${EXAMPLESDIR}
. endfor
.endif
.include <bsd.port.mk>