summaryrefslogtreecommitdiff
path: root/sysutils/pdsh
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-03-14 11:20:54 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-03-14 11:20:54 +0000
commit5f7fb24f401e3ed3fbe6bac932faf28d80b3dc36 (patch)
treea9204b90cc101be547e527fde78de45217b69fc4 /sysutils/pdsh
parent- Fix crash in pkg-update (diff)
- Convert to Optionsng
- While here trim header
Notes
Notes: svn path=/head/; revision=314144
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