ports/security/secpanel/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

72 lines
2.1 KiB
Makefile

PORTNAME= secpanel
PORTVERSION= 0.6.1
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= security tcl tk
MASTER_SITES= SF/${PORTNAME} \
SF/nemysisfreebsdp/security/:icons
DISTFILES= ${DISTNAME}.tgz \
${PORTNAME}.png:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${DISTNAME}.tgz
MAINTAINER= portmaster@BSDforge.com
COMMENT= GUI for managing and running ssh and related utilities
WWW= http://themediahost.de/secpanel/
LICENSE= GPLv2
RUN_DEPENDS= ssh-askpass:security/openssh-askpass
USES= tk:wrapper
OPTIONS_RADIO= TERMINAL
OPTIONS_RADIO_TERMINAL= GNOMETERMINAL MATETERMINAL XTERM
OPTIONS_DEFAULT= GNOMETERMINAL
GNOMETERMINAL_DESC= build with gnome-terminal
MATETERMINAL_DESC= build with mate-terminal (you need mate-desktop)
XTERM_DESC= build with xterm
GNOMETERMINAL_RUN_DEPENDS= gnome-terminal>=3.0.0:x11/gnome-terminal
MATETERMINAL_RUN_DEPENDS= mate-terminal:x11/mate-terminal
XTERM_RUN_DEPENDS= xterm:x11/xterm
WRKSRC= ${WRKDIR}/${PREFIX}
NO_BUILD= yes
SUB_FILES= pkg-message
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMATETERMINAL}
USES+= mate
USE_MATE= desktop
.endif
DESKTOP_ENTRIES="SecPanel" "${COMMENT}" "${PORTNAME}" "${PORTNAME}" "" ${FALSE}
post-patch:
@${REINPLACE_CMD} \
-e 's|\[file dirname \[info script\]\]/../lib/secpanel|${DATADIR}|' \
${WRKSRC}/bin/secpanel
do-install:
.if ${PORT_OPTIONS:MMATETERMINAL}
${REINPLACE_CMD} 's|set configs(termver) "Xterm"|set configs(termver) "MATE-Terminal"|' \
${WRKSRC}/bin/secpanel
${REINPLACE_CMD} 's|Xterm|MATE-Terminal|' \
${WRKSRC}/lib/secpanel/default.config
.elif ${PORT_OPTIONS:MGNOMETERMINAL}
${REINPLACE_CMD} 's|set configs(termver) "Xterm"|set configs(termver) "GNOME-Terminal"|' \
${WRKSRC}/bin/secpanel
${REINPLACE_CMD} 's|Xterm|GNOME-Terminal|' \
${WRKSRC}/lib/secpanel/default.config
.endif
${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@(cd ${WRKSRC}/lib/secpanel && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
@${CHMOD} u+rw ${STAGEDIR}${DATADIR}/default.config
${MV} ${STAGEDIR}${DATADIR}/default.config ${STAGEDIR}${DATADIR}/default.config.sample
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>