aboutsummaryrefslogtreecommitdiffstats
path: root/security/aimsniff
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-10-04 18:48:50 +0800
committerbapt <bapt@FreeBSD.org>2012-10-04 18:48:50 +0800
commitb2e3ee2711e47f42230af5362804ca314287e9b1 (patch)
treeaea79b8d9b683f52f70634531007aeb451f8f1ed /security/aimsniff
parent783ffa8c21937b71f5fcd2602eaecee0cbaab3a9 (diff)
downloadfreebsd-ports-gnome-b2e3ee2711e47f42230af5362804ca314287e9b1.tar.gz
freebsd-ports-gnome-b2e3ee2711e47f42230af5362804ca314287e9b1.tar.zst
freebsd-ports-gnome-b2e3ee2711e47f42230af5362804ca314287e9b1.zip
Convert to new options framework
Diffstat (limited to 'security/aimsniff')
-rw-r--r--security/aimsniff/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/security/aimsniff/Makefile b/security/aimsniff/Makefile
index 0a1cdbf93c5f..a359f1696f04 100644
--- a/security/aimsniff/Makefile
+++ b/security/aimsniff/Makefile
@@ -1,7 +1,4 @@
-# New ports collection makefile for: aimsniff
-# Date created: 4 December 2004
-# Whom: Andrew Marks (andrew@amrx.net)
-#
+# Created by: Andrew Marks <andrew@amrx.net>
# $FreeBSD$
PORTNAME= aimsniff
@@ -20,7 +17,8 @@ RUN_DEPENDS= p5-Net-Pcap>=0:${PORTSDIR}/net/p5-Net-Pcap\
p5-Proc-Simple>=0:${PORTSDIR}/devel/p5-Proc-Simple\
p5-Unix-Syslog>=0:${PORTSDIR}/sysutils/p5-Unix-Syslog
-OPTIONS= SUID_ROOT "Install aimsniff with set-uid bit" off
+OPTIONS_DEFINE= SUID_ROOT DOCS
+SUID_ROOT_DESC= Install aimsniff with set-uid bit
PORTDOCS= README table.struct rc.aimsniff
@@ -29,7 +27,7 @@ USE_PERL5= yes
PLIST_FILES= bin/aimsniff
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if !exists(${LOCALBASE}/lib/perl5/${PERL_VERSION}/${PERL_ARCH}/GDBM_File.pm)
#IGNORE= You need perl compiled with GDBM support
@@ -37,17 +35,17 @@ PLIST_FILES= bin/aimsniff
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/aimSniff.pl ${PREFIX}/bin/aimsniff
-.if defined(WITH_SUID_ROOT)
+.if ${PORT_OPTIONS:MSUID_ROOT}
${CHMOD} u+s ${PREFIX}/bin/aimsniff
.else
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>