Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2012 02:43:32 GMT
From:      Devin Teske <dteske@vicor.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/169280: [Maintainer Update] Minor bug fix to sysutils/bsdconfig
Message-ID:  <201206210243.q5L2hWrM098731@red.freebsd.org>
Resent-Message-ID: <201206210250.q5L2o9Ho031028@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         169280
>Category:       ports
>Synopsis:       [Maintainer Update] Minor bug fix to sysutils/bsdconfig
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 21 02:50:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Devin Teske
>Release:        FreeBSD 9.0-RELEASE i386
>Organization:
FIS Global, Inc.
>Environment:
FreeBSD scribe9.vicor.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Vitaly Magerya <vmagerya@gmail.com> reported that "bsdconfig startup_rcvar" (Toggle Startup Services) was unable to toggle certain (seemingly random) services.

Attached is a new shar with new port Makefile and distinfo to bring in the latest version which fixes this bug.
>How-To-Repeat:
First, install the port sysutils/bsdconfig, and then execute "bsdconfig startup_rcvar" and try to toggle services that are ON, off. Though not consistent, some services refuse to be disabled.
>Fix:
Had to implement new API routines for supporting the "--item-help" instances of dialog(1) menus.

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	bsdconfig
#	bsdconfig/Makefile
#	bsdconfig/distinfo
#	bsdconfig/pkg-descr
#
echo c - bsdconfig
mkdir -p bsdconfig > /dev/null 2>&1
echo x - bsdconfig/Makefile
sed 's/^X//' >bsdconfig/Makefile << '8e66e36ffd6c63e8e4d02e5a708e5d81'
X# New ports collection makefile for:	bsdconfig
X# Date created:				19 June 2012
X# Whom:					Devin Teske <dteske@FreeBSD.org>
X#
X# $FreeBSD: ports/sysutils/bsdconfig/Makefile,v 1.1 2012/06/20 16:58:12 wxs Exp $
X#
X
XPORTNAME=	bsdconfig
XPORTVERSION=	0.7.0
XCATEGORIES=	sysutils
XMASTER_SITES=	http://druidbsd.sourceforge.net/download/bsdconfig/
XDISTNAME=	${PORTNAME}.120620
XEXTRACT_SUFX=	.txz
X
XPATCH_SITES=	${MASTER_SITES}
XPATCHFILES=	${DISTNAME}-${PORTVERSION}.diff.gz
X
XMAINTAINER=	dteske@FreeBSD.org
XCOMMENT=	Utility to configure various aspects of FreeBSD
X
XLICENSE=	BSD
X
XNO_WRKSUBDIR=	yes
X
XBSDCFG_LIBE=	libexec/${PORTNAME}
X
X# Default man(1) section path-prefix
XMANDIR?=	${MANPREFIX}/man/man
XMAN8=		${PORTNAME}.8
XMANCOMPRESSED=	yes
X
XPLIST_FILES=	\
X	sbin/${PORTNAME}                                                     \
X	share/examples/${PORTNAME}/bsdconfigrc                               \
X	${BSDCFG_LIBE}/020.docsinstall/INDEX                                 \
X	${BSDCFG_LIBE}/020.docsinstall/INDEX.EN_US.ISO8859-1                 \
X	${BSDCFG_LIBE}/020.docsinstall/USAGE                                 \
X	${BSDCFG_LIBE}/020.docsinstall/USAGE.EN_US.ISO8859-1                 \
X	${BSDCFG_LIBE}/020.docsinstall/docsinstall                           \
X	${BSDCFG_LIBE}/020.docsinstall/include/messages.subr                 \
X	${BSDCFG_LIBE}/020.docsinstall/include/messages.subr.EN_US.ISO8859-1 \
X	${BSDCFG_LIBE}/040.password/INDEX                                    \
X	${BSDCFG_LIBE}/040.password/INDEX.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/040.password/USAGE                                    \
X	${BSDCFG_LIBE}/040.password/USAGE.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/040.password/include/messages.subr                    \
X	${BSDCFG_LIBE}/040.password/include/messages.subr.EN_US.ISO8859-1    \
X	${BSDCFG_LIBE}/040.password/include/password.subr                    \
X	${BSDCFG_LIBE}/040.password/password                                 \
X	${BSDCFG_LIBE}/050.diskmgmt/INDEX                                    \
X	${BSDCFG_LIBE}/050.diskmgmt/INDEX.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/050.diskmgmt/USAGE                                    \
X	${BSDCFG_LIBE}/050.diskmgmt/USAGE.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/050.diskmgmt/diskmgmt                                 \
X	${BSDCFG_LIBE}/050.diskmgmt/include/messages.subr                    \
X	${BSDCFG_LIBE}/050.diskmgmt/include/messages.subr.EN_US.ISO8859-1    \
X	${BSDCFG_LIBE}/070.usermgmt/INDEX                                    \
X	${BSDCFG_LIBE}/070.usermgmt/INDEX.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/070.usermgmt/USAGE                                    \
X	${BSDCFG_LIBE}/070.usermgmt/USAGE.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/070.usermgmt/groupadd                                 \
X	${BSDCFG_LIBE}/070.usermgmt/groupdel                                 \
X	${BSDCFG_LIBE}/070.usermgmt/groupedit                                \
X	${BSDCFG_LIBE}/070.usermgmt/groupinput                               \
X	${BSDCFG_LIBE}/070.usermgmt/include/group_input.subr                 \
X	${BSDCFG_LIBE}/070.usermgmt/include/messages.subr                    \
X	${BSDCFG_LIBE}/070.usermgmt/include/messages.subr.EN_US.ISO8859-1    \
X	${BSDCFG_LIBE}/070.usermgmt/include/user_input.subr                  \
X	${BSDCFG_LIBE}/070.usermgmt/useradd                                  \
X	${BSDCFG_LIBE}/070.usermgmt/userdel                                  \
X	${BSDCFG_LIBE}/070.usermgmt/useredit                                 \
X	${BSDCFG_LIBE}/070.usermgmt/userinput                                \
X	${BSDCFG_LIBE}/070.usermgmt/usermgmt                                 \
X	${BSDCFG_LIBE}/080.console/INDEX                                     \
X	${BSDCFG_LIBE}/080.console/INDEX.EN_US.ISO8859-1                     \
X	${BSDCFG_LIBE}/080.console/USAGE                                     \
X	${BSDCFG_LIBE}/080.console/USAGE.EN_US.ISO8859-1                     \
X	${BSDCFG_LIBE}/080.console/console                                   \
X	${BSDCFG_LIBE}/080.console/font                                      \
X	${BSDCFG_LIBE}/080.console/include/messages.subr                     \
X	${BSDCFG_LIBE}/080.console/include/messages.subr.EN_US.ISO8859-1     \
X	${BSDCFG_LIBE}/080.console/keymap                                    \
X	${BSDCFG_LIBE}/080.console/repeat                                    \
X	${BSDCFG_LIBE}/080.console/saver                                     \
X	${BSDCFG_LIBE}/080.console/screenmap                                 \
X	${BSDCFG_LIBE}/080.console/ttys                                      \
X	${BSDCFG_LIBE}/090.timezone/INDEX                                    \
X	${BSDCFG_LIBE}/090.timezone/INDEX.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/090.timezone/USAGE                                    \
X	${BSDCFG_LIBE}/090.timezone/USAGE.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/090.timezone/include/continents.subr                  \
X	${BSDCFG_LIBE}/090.timezone/include/countries.subr                   \
X	${BSDCFG_LIBE}/090.timezone/include/iso3166.subr                     \
X	${BSDCFG_LIBE}/090.timezone/include/menus.subr                       \
X	${BSDCFG_LIBE}/090.timezone/include/messages.subr                    \
X	${BSDCFG_LIBE}/090.timezone/include/messages.subr.EN_US.ISO8859-1    \
X	${BSDCFG_LIBE}/090.timezone/include/zones.subr                       \
X	${BSDCFG_LIBE}/090.timezone/timezone                                 \
X	${BSDCFG_LIBE}/110.mouse/INDEX                                       \
X	${BSDCFG_LIBE}/110.mouse/INDEX.EN_US.ISO8859-1                       \
X	${BSDCFG_LIBE}/110.mouse/USAGE                                       \
X	${BSDCFG_LIBE}/110.mouse/USAGE.EN_US.ISO8859-1                       \
X	${BSDCFG_LIBE}/110.mouse/disable                                     \
X	${BSDCFG_LIBE}/110.mouse/enable                                      \
X	${BSDCFG_LIBE}/110.mouse/flags                                       \
X	${BSDCFG_LIBE}/110.mouse/include/messages.subr                       \
X	${BSDCFG_LIBE}/110.mouse/include/messages.subr.EN_US.ISO8859-1       \
X	${BSDCFG_LIBE}/110.mouse/mouse                                       \
X	${BSDCFG_LIBE}/110.mouse/port                                        \
X	${BSDCFG_LIBE}/110.mouse/type                                        \
X	${BSDCFG_LIBE}/120.networking/INDEX                                  \
X	${BSDCFG_LIBE}/120.networking/INDEX.EN_US.ISO8859-1                  \
X	${BSDCFG_LIBE}/120.networking/USAGE                                  \
X	${BSDCFG_LIBE}/120.networking/USAGE.EN_US.ISO8859-1                  \
X	${BSDCFG_LIBE}/120.networking/defaultrouter                          \
X	${BSDCFG_LIBE}/120.networking/devices                                \
X	${BSDCFG_LIBE}/120.networking/hostname                               \
X	${BSDCFG_LIBE}/120.networking/include/common.subr                    \
X	${BSDCFG_LIBE}/120.networking/include/device.subr                    \
X	${BSDCFG_LIBE}/120.networking/include/hostname.subr                  \
X	${BSDCFG_LIBE}/120.networking/include/ipaddr.subr                    \
X	${BSDCFG_LIBE}/120.networking/include/media.subr                     \
X	${BSDCFG_LIBE}/120.networking/include/messages.subr                  \
X	${BSDCFG_LIBE}/120.networking/include/messages.subr.EN_US.ISO8859-1  \
X	${BSDCFG_LIBE}/120.networking/include/netmask.subr                   \
X	${BSDCFG_LIBE}/120.networking/include/resolv.subr                    \
X	${BSDCFG_LIBE}/120.networking/include/routing.subr                   \
X	${BSDCFG_LIBE}/120.networking/nameservers                            \
X	${BSDCFG_LIBE}/120.networking/networking                             \
X	${BSDCFG_LIBE}/130.security/INDEX                                    \
X	${BSDCFG_LIBE}/130.security/INDEX.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/130.security/USAGE                                    \
X	${BSDCFG_LIBE}/130.security/USAGE.EN_US.ISO8859-1                    \
X	${BSDCFG_LIBE}/130.security/include/messages.subr                    \
X	${BSDCFG_LIBE}/130.security/include/messages.subr.EN_US.ISO8859-1    \
X	${BSDCFG_LIBE}/130.security/kern_securelevel                         \
X	${BSDCFG_LIBE}/130.security/security                                 \
X	${BSDCFG_LIBE}/140.startup/INDEX                                     \
X	${BSDCFG_LIBE}/140.startup/INDEX.EN_US.ISO8859-1                     \
X	${BSDCFG_LIBE}/140.startup/USAGE                                     \
X	${BSDCFG_LIBE}/140.startup/USAGE.EN_US.ISO8859-1                     \
X	${BSDCFG_LIBE}/140.startup/include/messages.subr                     \
X	${BSDCFG_LIBE}/140.startup/include/messages.subr.EN_US.ISO8859-1     \
X	${BSDCFG_LIBE}/140.startup/include/rcconf.subr                       \
X	${BSDCFG_LIBE}/140.startup/include/rcedit.subr                       \
X	${BSDCFG_LIBE}/140.startup/include/rcvar.subr                        \
X	${BSDCFG_LIBE}/140.startup/misc                                      \
X	${BSDCFG_LIBE}/140.startup/rcadd                                     \
X	${BSDCFG_LIBE}/140.startup/rcconf                                    \
X	${BSDCFG_LIBE}/140.startup/rcdelete                                  \
X	${BSDCFG_LIBE}/140.startup/rcedit                                    \
X	${BSDCFG_LIBE}/140.startup/rcvar                                     \
X	${BSDCFG_LIBE}/140.startup/startup                                   \
X	${BSDCFG_LIBE}/150.ttys/INDEX                                        \
X	${BSDCFG_LIBE}/150.ttys/INDEX.EN_US.ISO8859-1                        \
X	${BSDCFG_LIBE}/150.ttys/USAGE                                        \
X	${BSDCFG_LIBE}/150.ttys/USAGE.EN_US.ISO8859-1                        \
X	${BSDCFG_LIBE}/150.ttys/include/messages.subr                        \
X	${BSDCFG_LIBE}/150.ttys/include/messages.subr.EN_US.ISO8859-1        \
X	${BSDCFG_LIBE}/150.ttys/ttys                                         \
X	${BSDCFG_LIBE}/USAGE                                                 \
X	${BSDCFG_LIBE}/USAGE.EN_US.ISO8859-1                                 \
X	${BSDCFG_LIBE}/dot/INDEX                                             \
X	${BSDCFG_LIBE}/dot/INDEX.EN_US.ISO8859-1                             \
X	${BSDCFG_LIBE}/dot/USAGE                                             \
X	${BSDCFG_LIBE}/dot/USAGE.EN_US.ISO8859-1                             \
X	${BSDCFG_LIBE}/dot/dot                                               \
X	${BSDCFG_LIBE}/dot/include/messages.subr                             \
X	${BSDCFG_LIBE}/dot/include/messages.subr.EN_US.ISO8859-1             \
X	${BSDCFG_LIBE}/include/common.subr                                   \
X	${BSDCFG_LIBE}/include/dialog.subr                                   \
X	${BSDCFG_LIBE}/include/messages.subr                                 \
X	${BSDCFG_LIBE}/include/messages.subr.EN_US.ISO8859-1                 \
X	${BSDCFG_LIBE}/include/mustberoot.subr                               \
X	${BSDCFG_LIBE}/include/strings.subr                                  \
X	${BSDCFG_LIBE}/include/sysrc.subr
X
XPLIST_DIRS=	${BSDCFG_LIBE}/020.docsinstall/include \
X		${BSDCFG_LIBE}/020.docsinstall         \
X		${BSDCFG_LIBE}/040.password/include    \
X		${BSDCFG_LIBE}/040.password            \
X		${BSDCFG_LIBE}/050.diskmgmt/include    \
X		${BSDCFG_LIBE}/050.diskmgmt            \
X		${BSDCFG_LIBE}/070.usermgmt/include    \
X		${BSDCFG_LIBE}/070.usermgmt            \
X		${BSDCFG_LIBE}/080.console/include     \
X		${BSDCFG_LIBE}/080.console             \
X		${BSDCFG_LIBE}/090.timezone/include    \
X		${BSDCFG_LIBE}/090.timezone            \
X		${BSDCFG_LIBE}/110.mouse/include       \
X		${BSDCFG_LIBE}/110.mouse               \
X		${BSDCFG_LIBE}/120.networking/include  \
X		${BSDCFG_LIBE}/120.networking          \
X		${BSDCFG_LIBE}/130.security/include    \
X		${BSDCFG_LIBE}/130.security            \
X		${BSDCFG_LIBE}/140.startup/include     \
X		${BSDCFG_LIBE}/140.startup             \
X		${BSDCFG_LIBE}/150.ttys/include        \
X		${BSDCFG_LIBE}/150.ttys                \
X		${BSDCFG_LIBE}/dot/include             \
X		${BSDCFG_LIBE}/dot                     \
X		${BSDCFG_LIBE}/include                 \
X		${BSDCFG_LIBE}                         \
X		share/examples/bsdconfig
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 900030
XBROKEN=		libdialog 20100428 or newer required.
X.endif
X
Xpost-patch:
X	@${GREP} -Ilrs '^BSDCFG_LIBE=' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
X		-e 's|^\(BSDCFG_LIBE=\).*|\1"${PREFIX}/libexec/${PORTNAME}"|'
X	@${REINPLACE_CMD} \
X		-e 's|^\(BSDCONFIG=\).*|\1${PREFIX}/sbin/${PORTNAME}|' \
X		${WRKSRC}/dot/dot
X
Xdo-install:
X	@( cd ${WRKSRC} && make \
X		LIBEXECDIR="${PREFIX}/libexec" \
X		MANDIR="${MANDIR}"             \
X		SBINDIR="${PREFIX}/sbin"       \
X		SHAREDIR="${PREFIX}/share"     \
X		install                        )
X
X.include <bsd.port.post.mk>
8e66e36ffd6c63e8e4d02e5a708e5d81
echo x - bsdconfig/distinfo
sed 's/^X//' >bsdconfig/distinfo << '2525dd21496cc9c8e5c79f5efa1428b1'
XSHA256 (bsdconfig.120620.txz) = 5bc4c60250a7d3c817239d8f7a0e567cfe8fbec1cd0abaa8ca8d9fdaa0d6b601
XSIZE (bsdconfig.120620.txz) = 87924
XSHA256 (bsdconfig.120620-0.7.0.diff.gz) = 9291ef7094069d7c34ff7647fbd05004f17dec4405f9e6e5acff024a2840245f
XSIZE (bsdconfig.120620-0.7.0.diff.gz) = 451
2525dd21496cc9c8e5c79f5efa1428b1
echo x - bsdconfig/pkg-descr
sed 's/^X//' >bsdconfig/pkg-descr << 'ad56c62fcbd139054224c1bc69933cb0'
Xbsdconfig is a robust utility for configuring/managing various aspects of the
XFreeBSD Operating System. Feature-highlights include (but are not limited to):
X  - Modular, stable, efficient and i18n-compatible.
X  - Easily maintained/extendable sh(1) source/syntax.
X  - Works with both dialog(1) in base and Xdialog(1) from ports (x11/xdialog).
X  - rc.conf(5) configuration/management based on sysutils/sysrc
X  - Timezone configuration based on sysutils/tzdialog
X  - Networking management based on sysutils/host-setup
X
XWWW: http://druidbsd.sourceforge.net/
ad56c62fcbd139054224c1bc69933cb0
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206210243.q5L2hWrM098731>