# New ports collection makefile for:	vlock
# Date created:		08 Oct 2000
# Whom:			George Reid <services@nevernet.net>
#
# $FreeBSD$
#

PORTNAME=	vlock
PORTVERSION=	2.2.2
CATEGORIES=	security
MASTER_SITES=	http://cthulhu.c3d2.de/~toidinamai/vlock/archive/

MAINTAINER=	ganael.laplanche@martymac.com
COMMENT=	Locks a terminal

USE_GMAKE=	yes
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-plugins --enable-pam \
		--prefix=${PREFIX} \
		--mandir=${MANPREFIX}/man \
		--with-modules="${VLOCKMODULES}" \
		--with-scripts="${VLOCKSCRIPTS}" \
		VLOCK_GROUP="${VLOCKGRP}" \
		VLOCK_MODE="0750" \
		EXTRA_CFLAGS="-I${LOCALBASE}/include" \
		EXTRA_LDFLAGS="-L${LOCALBASE}/lib"

OPTIONS=	ROOTPWD "Enable unlock using root password" on \
		VLOCKSCRIPTS "Install sample hook scripts" off \
		CACASAVER "Enable libcaca screensaver" off

MANLANG=	""
MAN1=		vlock.1
MAN5=		vlock-plugins.5
MAN8=		vlock-main.8

# Default scripts/modules
VLOCKSCRIPTS=
VLOCKMODULES=	all.so new.so

# Vlock group = vlock:*:129:
VLOCKGRP=	vlock
VLOCKGID=	129

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_ROOTPWD)
CONFIGURE_ARGS+=	--enable-root-password
.else
CONFIGURE_ARGS+=	--disable-root-password
.endif

.if !defined(WITHOUT_VLOCKSCRIPTS)
VLOCKSCRIPTS+=	amarok.sh example_script.sh mplayer.sh
PLIST_SUB+=	PL_VLOCKSCRIPTS=""
.else
PLIST_SUB+=	PL_VLOCKSCRIPTS="@comment "
.endif

.if !defined(WITHOUT_CACASAVER)
BUILD_DEPENDS+=	${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca
VLOCKMODULES+=	caca.so
PLIST_SUB+=	PL_CACASAVER=""
.else
PLIST_SUB+=	PL_CACASAVER="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|-lncurses|-lm|' ${WRKSRC}/modules/Makefile

pre-install:
	if ! pw groupshow ${VLOCKGRP}; then pw groupadd ${VLOCKGRP} -g ${VLOCKGID}; fi

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/PLUGINS ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.X11 ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/SECURITY ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
.endif

.include <bsd.port.post.mk>
abot/npm_and_yarn/devel/electron4/files/lodash-4.17.19</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron4/files/lodash.merge-4.6.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.3'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.3</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2'>dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8'>dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19'>dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2</option>
<option value='gnome-3.22'>gnome-3.22</option>
<option value='gnome-3.24' selected='selected'>gnome-3.24</option>
<option value='gnome-3.26'>gnome-3.26</option>
<option value='gnome-3.28'>gnome-3.28</option>
<option value='gnome-3.32'>gnome-3.32</option>
<option value='gnome-3.36'>gnome-3.36</option>
<option value='gstreamer'>gstreamer</option>
<option value='gstreamer-1.16'>gstreamer-1.16</option>
<option value='gstreamer0.10-removal'>gstreamer0.10-removal</option>
<option value='main'>main</option>
<option value='master'>master</option>
<option value='mate-1.16'>mate-1.16</option>
<option value='mate-1.18'>mate-1.18</option>
<option value='mate-1.20'>mate-1.20</option>
<option value='mate-1.22'>mate-1.22</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/about/?h=gnome-3.24'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/?h=gnome-3.24'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/refs/?h=gnome-3.24&amp;id=e8ba5264cf6a1f9618c6eece1ddb78fbadbd00bd'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/japanese/ngraph-fonts?h=gnome-3.24'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/tree/japanese/ngraph-fonts?h=gnome-3.24&amp;id=e8ba5264cf6a1f9618c6eece1ddb78fbadbd00bd'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=e8ba5264cf6a1f9618c6eece1ddb78fbadbd00bd'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/diff/japanese/ngraph-fonts?h=gnome-3.24&amp;id=e8ba5264cf6a1f9618c6eece1ddb78fbadbd00bd'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/stats/japanese/ngraph-fonts?h=gnome-3.24'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/japanese/ngraph-fonts'>
<input type='hidden' name='h' value='gnome-3.24'/><input type='hidden' name='id' value='e8ba5264cf6a1f9618c6eece1ddb78fbadbd00bd'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/?h=gnome-3.24&amp;id=e8ba5264cf6a1f9618c6eece1ddb78fbadbd00bd'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/japanese?h=gnome-3.24&amp;id=e8ba5264cf6a1f9618c6eece1ddb78fbadbd00bd'>japanese</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/japanese/ngraph-fonts?h=gnome-3.24&amp;id=e8ba5264cf6a1f9618c6eece1ddb78fbadbd00bd'>ngraph-fonts</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/japanese/ngraph-fonts?h=gnome-3.24&amp;id=e8ba5264cf6a1f9618c6eece1ddb78fbadbd00bd&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=3c76fd7fad82c9f137407348028fde08754f2866'>- Add the X_WINDOW_SYSTEM={xorg,xfree86-4,xfree86-3} variable to bsd.port.mk,</a></td><td>anholt</td><td><span title='2004-07-24 03:10:32 +0800'>2004-07-24</span></td><td>1</td><td><span class='deletions'>-8</span>/<span class='insertions'>+3</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=58229314f77c387653bf93ef7f16207b8a171698'>de-pkg-comment.</a></td><td>sanpei</td><td><span title='2003-02-22 21:24:09 +0800'>2003-02-22</span></td><td>2</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=30e1547a6734e4d6b22fb31924fa12c27ddcecd1'>Style review in ports/japanese.</a></td><td>olgeni</td><td><span title='2001-02-06 21:22:00 +0800'>2001-02-06</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=d167f264fd1ff27ff6920f609af4fed241faa109'>Change RUN_DEPENDS= to RUN_DEPENDS+= so we won't override previous entry.</a></td><td>asami</td><td><span title='2000-09-19 15:55:56 +0800'>2000-09-19</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=6e012c844b936e05d0eec98fd0c653828d56d9ef'>Add dependency to mkfontdir:XFree86-4-clients when XFREE86_VERSION=4.</a></td><td>asami</td><td><span title='2000-09-12 19:08:05 +0800'>2000-09-12</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+8</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=fb957f3fae38ca845f002f5194942953198f9ed5'>change my e-mail address</a></td><td>sanpei</td><td><span title='2000-08-03 22:28:33 +0800'>2000-08-03</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=cb7becadc61e857f97ea40ad5721e698238cc417'>Change maintainer's mail address.</a></td><td>sanpei</td><td><span title='2000-07-02 22:14:04 +0800'>2000-07-02</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=eb17e2576779f2d3cec7d048b850a15abdbcbd54'>Update with the new PORT{NAME,VERSION}/PKGNAME{PRE,SUF}FIX variables.</a></td><td>knu</td><td><span title='2000-04-11 22:15:53 +0800'>2000-04-11</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+2</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese/ngraph-fonts?h=gnome-3.24&amp;id=7581a219f3b4e9d1cdedee3216bbeb4aba40c7f3'>Modify pkg/DESCR</a></td><td>taoka</td><td><span title='2000-02-17 13:21:50 +0800'>2000-02-17</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+10</span></td></tr>