aboutsummaryrefslogtreecommitdiff
path: root/security/vlock/Makefile
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-03-31 06:04:43 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-03-31 06:04:43 +0000
commit38e0ca0a61566a2df5a1b1675d273e94e1dd4b48 (patch)
treea385b107c1934fb04f5486412cbeb33ae3cc784c /security/vlock/Makefile
parent51289d08a844058af4dad721a6190384519966db (diff)
downloadports-38e0ca0a61566a2df5a1b1675d273e94e1dd4b48.tar.gz
ports-38e0ca0a61566a2df5a1b1675d273e94e1dd4b48.zip
Notes
Diffstat (limited to 'security/vlock/Makefile')
-rw-r--r--security/vlock/Makefile60
1 files changed, 56 insertions, 4 deletions
diff --git a/security/vlock/Makefile b/security/vlock/Makefile
index e3b039257250..559fad7f07ba 100644
--- a/security/vlock/Makefile
+++ b/security/vlock/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= vlock
-PORTVERSION= 2.1
+PORTVERSION= 2.2.1
CATEGORIES= security
MASTER_SITES= http://cthulhu.c3d2.de/~toidinamai/vlock/archive/
@@ -14,10 +14,62 @@ 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"
+CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
+
+OPTIONS= VLOCKSCRIPTS "Install sample hook scripts" off \
+ CACASAVER "Enable libcaca screensaver" off
MANLANG= ""
MAN1= vlock.1
-MAN8= vlock-current.8 vlock-all.8 vlock-new.8 vlock-nosysrq.8
-PLIST_FILES= bin/vlock sbin/vlock-current sbin/vlock-all sbin/vlock-nosysrq sbin/vlock-new
+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_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
+
+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.mk>
+.include <bsd.port.post.mk>