diff --git a/misc/flag/Makefile b/misc/flag/Makefile index 1e0b83cfc884..136003f441e0 100644 --- a/misc/flag/Makefile +++ b/misc/flag/Makefile @@ -1,35 +1,39 @@ PORTNAME= flag -PORTVERSION= 1.0.5 +DISTVERSION= 1.0.6 CATEGORIES= misc -MASTER_SITES= http://git.cyberleo.net/releases/${PORTNAME}/ -EXTRACT_SUFX= .tgz +MASTER_SITES= https://git.cyberleo.net/releases/${PORTNAME}/ MAINTAINER= cyberleo@cyberleo.net COMMENT= Turn the hostname into a colourful and visually distinctive ansi flag WWW= https://git.cyberleo.net/CDN/flag.git +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/README.md + +USES= tar:tgz + NO_BUILD= yes +PLIST_FILES= bin/flag + OPTIONS_DEFINE= BASH -BASH_DESC= Install include for Bash prompt OPTIONS_DEFAULT=BASH - -PLIST_FILES= bin/flag +BASH_DESC= Install include for Bash prompt .include .if ${PORT_OPTIONS:MBASH} PLIST_FILES+= share/flag/bash_prompt.sh .endif post-extract: ${REINPLACE_CMD} -e 's@"/etc/flag"@"${PREFIX}/etc/flag"@' ${WRKSRC}/flag do-install: ${INSTALL_SCRIPT} ${WRKSRC}/flag ${STAGEDIR}${PREFIX}/bin/flag -.if ${PORT_OPTIONS:MBASH} + +do-install-BASH-on: ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/bash_prompt.sh ${STAGEDIR}${DATADIR} -.endif .include diff --git a/misc/flag/distinfo b/misc/flag/distinfo index 0b12c8b68be2..4d8a63772b65 100644 --- a/misc/flag/distinfo +++ b/misc/flag/distinfo @@ -1,2 +1,3 @@ -SHA256 (flag-1.0.5.tgz) = 8db0d4a40a9c119689275cbf00508c4af96553c3a7e035e9836d533d22f8d98f -SIZE (flag-1.0.5.tgz) = 5683 +TIMESTAMP = 1665136291 +SHA256 (flag-1.0.6.tgz) = 6eb9ad34fb4edc46a235de0bb066d859a7edecefd3fcfd81a0d8b17534af1e47 +SIZE (flag-1.0.6.tgz) = 5769 diff --git a/misc/flag/pkg-descr b/misc/flag/pkg-descr index 2dc0ecefc469..5b2820d9c535 100644 --- a/misc/flag/pkg-descr +++ b/misc/flag/pkg-descr @@ -1,6 +1,4 @@ -flag - Produces a cute little ansi colour 'flag' based off a hash of the machine's hostname (or settable via ~/.flag or /etc/flag) which can uniquely visually identify a machine, at a glance. Useful for placing into /etc/issue or your bash prompt, so that you don't send stupid commands to the wrong machine.