summaryrefslogtreecommitdiff
path: root/sysutils/pdsh
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/pdsh')
-rw-r--r--sysutils/pdsh/Makefile26
1 files changed, 11 insertions, 15 deletions
diff --git a/sysutils/pdsh/Makefile b/sysutils/pdsh/Makefile
index 4270fdd8dd59..bb6a40ce5a32 100644
--- a/sysutils/pdsh/Makefile
+++ b/sysutils/pdsh/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: sysutils/pdsh
-# Date created: 2010-03-09
-# Whom: Mykola Dzham <i@levsha.me>
-#
+# Created by: Mykola Dzham <i@levsha.me>
# $FreeBSD$
-#
PORTNAME= pdsh
PORTVERSION= 2.28
@@ -19,15 +15,15 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_PERL5_BUILD=yes
-OPTIONS= SSH "Enable SSH support" On \
- DSHGROUPS "Enable DSH groups" On \
- NETGROUP "Enable NIS Netgroup support" Off \
- READLINE "Enable GNU readline support" Off \
- RSH "Enable RSH support" Off
+OPTIONS_DEFINE= SSH DSHGROUPS NETGROUP READLINE RSH
+OPTIONS_DEFAULT= SSH DSHGROUPS
+DSHGROUPS_DESC= DSH groups supprt
+NETGROUP_DESC= NIS Netgroup support
+RSH_DESC= RSH support
.include <bsd.port.options.mk>
-.if defined(WITH_SSH)
+.if ${PORT_OPTIONS:MSSH}
CONFIGURE_ARGS+= --with-ssh
PLIST_SUB+= SSH=""
.else
@@ -35,7 +31,7 @@ CONFIGURE_ARGS+= --without-ssh
PLIST_SUB+= SSH="@comment "
.endif
-.if defined(WITH_DSHGROUPS)
+.if ${PORT_OPTIONS:MDSHGROUPS}
CONFIGURE_ARGS+= --with-dshgroups
PLIST_SUB+= DSH=""
.else
@@ -43,7 +39,7 @@ CONFIGURE_ARGS+= --without-dshgroups
PLIST_SUB+= DSH="@comment "
.endif
-.if defined(WITH_NETGROUP)
+.if ${PORT_OPTIONS:MNETGROUP}
CONFIGURE_ARGS+= --with-netgroup
PLIST_SUB+= NETGROUP=""
.else
@@ -51,14 +47,14 @@ CONFIGURE_ARGS+= --without-netgroup
PLIST_SUB+= NETGROUP="@comment "
.endif
-.if defined(WITH_READLINE)
+.if ${PORT_OPTIONS:MREADLINE}
CONFIGURE_ARGS+= --with-readline
LIB_DEPENDS+= readline:${PORTSDIR}/devel/readline
.else
CONFIGURE_ARGS+= --without-readline
.endif
-.if defined(WITH_RSH)
+.if ${PORT_OPTIONS:MRSH}
CONFIGURE_ARGS+= --with-rsh
PLIST_SUB+= RSH=""
.else