aboutsummaryrefslogtreecommitdiff
path: root/security/vlock/Makefile
blob: 92c33f25c529d23fc1f47a0547087c4e094efa98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Created by: George Reid <services@nevernet.net>

PORTNAME=	vlock
PORTVERSION=	2.2.3
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	http://cthulhu.c3d2.de/~toidinamai/vlock/archive/ \
		LOCAL/martymac

MAINTAINER=	martymac@FreeBSD.org
COMMENT=	Locks a terminal

LICENSE=	GPLv2

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-plugins --enable-pam \
		--prefix=${PREFIX} \
		--mandir=${MANPREFIX}/man \
		--with-modules="${VLOCKMODULES}" \
		--with-scripts="${VLOCKSCRIPTS}" \
		VLOCK_GROUP="nobody" \
		EXTRA_CFLAGS="-I${LOCALBASE}/include" \
		EXTRA_LDFLAGS="-L${LOCALBASE}/lib"
USES=	gmake
USE_CSTD=	gnu99

OPTIONS_DEFINE=	ROOTPWD VLOCKSCRIPTS CACASAVER DOCS
OPTIONS_DEFAULT=	ROOTPWD
OPTIONS_SUB=	yes
ROOTPWD_DESC=	Enable unlock using root password
ROOTPWD_CONFIGURE_ENABLE=	root-password
VLOCKSCRIPTS_DESC=	Install sample hook scripts
CACASAVER_DESC=	Enable libcaca screensaver
CACASAVER_BUILD_DEPENDS=	${LOCALBASE}/lib/libcaca.a:graphics/libcaca

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

# Vlock special group
VLOCK_GRP=	vlock
GROUPS=	${VLOCK_GRP}
PLIST_SUB+=	VLOCK_GRP=${VLOCK_GRP}

PORTDOCS=	ChangeLog PLUGINS README README.X11 SECURITY TODO

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MVLOCKSCRIPTS}
VLOCKSCRIPTS+=	amarok.sh example_script.sh mplayer.sh
.endif

.if ${PORT_OPTIONS:MCACASAVER}
VLOCKMODULES+=	caca.so
.endif

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>