Date: Sun, 25 May 2014 07:34:27 +0000 (UTC) From: Martin Wilke <miwi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r355136 - in head/misc: . flag Message-ID: <201405250734.s4P7YRuL093097@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: miwi Date: Sun May 25 07:34:26 2014 New Revision: 355136 URL: http://svnweb.freebsd.org/changeset/ports/355136 QAT: https://qat.redports.org/buildarchive/r355136/ Log: 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. WWW: http://git.cyberleo.net/CDN/flag.git PR: ports/183117 Submitted by: cyberleo@cyberleo.net Added: head/misc/flag/ head/misc/flag/Makefile (contents, props changed) head/misc/flag/distinfo (contents, props changed) head/misc/flag/pkg-descr (contents, props changed) Modified: head/misc/Makefile Modified: head/misc/Makefile ============================================================================== --- head/misc/Makefile Sun May 25 07:33:58 2014 (r355135) +++ head/misc/Makefile Sun May 25 07:34:26 2014 (r355136) @@ -91,6 +91,7 @@ SUBDIR += figlet-fonts SUBDIR += findutils SUBDIR += firestring + SUBDIR += flag SUBDIR += floatator SUBDIR += fortune-mod-bible SUBDIR += fortune-mod-bofh Added: head/misc/flag/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/flag/Makefile Sun May 25 07:34:26 2014 (r355136) @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= flag +PORTVERSION= 1.0.5 +CATEGORIES= misc +MASTER_SITES= http://git.cyberleo.net/releases/${PORTNAME}/ +EXTRACT_SUFX= .tgz + +MAINTAINER= cyberleo@cyberleo.net +COMMENT= Turn the hostname into a colourful and visually distinctive ansi flag + +NO_BUILD= yes + +OPTIONS_DEFINE= BASH +BASH_DESC= Install include for Bash prompt +OPTIONS_DEFAULT=BASH + +PLIST_FILES= bin/flag + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MBASH} +PLIST_FILES+= share/flag/bash_prompt.sh +PLIST_DIRS+= share/flag +.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} + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/bash_prompt.sh ${STAGEDIR}${DATADIR} +.endif + +.include <bsd.port.mk> Added: head/misc/flag/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/flag/distinfo Sun May 25 07:34:26 2014 (r355136) @@ -0,0 +1,2 @@ +SHA256 (flag-1.0.5.tgz) = 8db0d4a40a9c119689275cbf00508c4af96553c3a7e035e9836d533d22f8d98f +SIZE (flag-1.0.5.tgz) = 5683 Added: head/misc/flag/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/flag/pkg-descr Sun May 25 07:34:26 2014 (r355136) @@ -0,0 +1,8 @@ +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. + +WWW: http://git.cyberleo.net/CDN/flag.git
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405250734.s4P7YRuL093097>