freebsd-ports/security/vlock/Makefile
2012-06-11 07:20:07 +00:00

89 lines
2 KiB
Makefile

# New ports collection makefile for: vlock
# Date created: 08 Oct 2000
# Whom: George Reid <services@nevernet.net>
#
# $FreeBSD$
#
PORTNAME= vlock
PORTVERSION= 2.2.3
CATEGORIES= security
MASTER_SITES= http://cthulhu.c3d2.de/~toidinamai/vlock/archive/
MAINTAINER= martymac@FreeBSD.org
COMMENT= Locks a terminal
LICENSE= GPLv2
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"
USE_CSTD= gnu99
OPTIONS_DEFINE= ROOTPWD VLOCKSCRIPTS CACASAVER
OPTIONS_DEFAULT= ROOTPWD
ROOTPWD_DESC= Enable unlock using root password
VLOCKSCRIPTS_DESC= Install sample hook scripts
CACASAVER_DESC= Enable libcaca screensaver
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
PORTDOCS= ChangeLog PLUGINS README README.X11 SECURITY TODO
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MROOTPWD}
CONFIGURE_ARGS+= --enable-root-password
.else
CONFIGURE_ARGS+= --disable-root-password
.endif
.if ${PORT_OPTIONS:MVLOCKSCRIPTS}
VLOCKSCRIPTS+= amarok.sh example_script.sh mplayer.sh
PLIST_SUB+= PL_VLOCKSCRIPTS=""
.else
PLIST_SUB+= PL_VLOCKSCRIPTS="@comment "
.endif
.if ${PORT_OPTIONS:MCACASAVER}
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 ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>