Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2007 16:04:54 GMT
From:      Tony Shadwick<tshadwick@oss-solutions.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/110035: Port fix for sysutils/be_agent
Message-ID:  <200703071604.l27G4svG077304@www.freebsd.org>
Resent-Message-ID: <200703071610.l27GAARK003726@freefall.freebsd.org>

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

>Number:         110035
>Category:       ports
>Synopsis:       Port fix for sysutils/be_agent
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 07 16:10:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Tony Shadwick
>Release:        6.1
>Organization:
OSS Solutions
>Environment:
FreeBSD moogle.hksilver.net 6.0-RELEASE-p6 FreeBSD 6.0-RELEASE-p6 #1: Thu Mar 30 11:04:22 CST 2006     root@moogle.shadwick.home:/usr/obj/usr/src/sys/SMP  i386
>Description:
Old version retrieved via anonymous FTP.  Veritas no longer allows this.
>How-To-Repeat:
make
>Fix:
# 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:
#
#       /usr/ports/sysutils/be_agent
#       /usr/ports/sysutils/be_agent/files
#       /usr/ports/sysutils/be_agent/files/be-agent.sh.in
#       /usr/ports/sysutils/be_agent/files/config_example
#       /usr/ports/sysutils/be_agent/files/pkg-message.in
#       /usr/ports/sysutils/be_agent/Makefile
#       /usr/ports/sysutils/be_agent/distinfo
#       /usr/ports/sysutils/be_agent/pkg-descr
#
echo c - /usr/ports/sysutils/be_agent
mkdir -p /usr/ports/sysutils/be_agent > /dev/null 2>&1
echo c - /usr/ports/sysutils/be_agent/files
mkdir -p /usr/ports/sysutils/be_agent/files > /dev/null 2>&1
echo x - /usr/ports/sysutils/be_agent/files/be-agent.sh.in
sed 's/^X//' >/usr/ports/sysutils/be_agent/files/be-agent.sh.in << 'END-of-/usr/ports/sysutils/be_agent/files/be-agent.sh.in'
X#!/bin/sh
X#
X# PROVIDE: be-agent
X# REQUIRE: LOGIN
X# BEFORE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable be-agent:
X#
X#be_agent_enable="YES"
X#
X
X. %%RC_SUBR%%
X
Xname=be_agent
Xrcvar=`set_rcvar`
X
Xcommand="%%PREFIX%%/bin/agent.be"
X
X# set defaults
X
Xbe_agent_enable=${be_agent_enable:-"NO"}
Xbe_agent_cfg=${be_agent_cfg:-"%%PREFIX%%/etc/be-agent.cfg"}
Xbe_agent_flags=${be_agent_flags:-"-c ${be_agent_cfg} &"}
X
Xload_rc_config ${name}
Xrun_rc_command "$1"
END-of-/usr/ports/sysutils/be_agent/files/be-agent.sh.in
echo x - /usr/ports/sysutils/be_agent/files/config_example
sed 's/^X//' >/usr/ports/sysutils/be_agent/files/config_example << 'END-of-/usr/ports/sysutils/be_agent/files/config_example'
X#
X#
X# Below is an example configuration.  Please use your real hostname.  The 
X# field 'force_address' is only needed if your machine has multiple 
X# network interfaces and you wish to force it to use a specific one.
X#
X# name myhostname.mydomainname.com
X# force_address 192.168.1.2
X# export /home/myusername as myhome
X# tell my_backup_exec_server_hostname
X# tell_interval 30
X#
X#
X# The following are directories tht are excluded from all backups.
Xexclude_dir /dev
Xexclude_dir /proc
END-of-/usr/ports/sysutils/be_agent/files/config_example
echo x - /usr/ports/sysutils/be_agent/files/pkg-message.in
sed 's/^X//' >/usr/ports/sysutils/be_agent/files/pkg-message.in << 'END-of-/usr/ports/sysutils/be_agent/files/pkg-message.in'
X# This port requires 3 steps in order to enable it.
X#
X# 1. Edit the config file located at %%PREFIX%%/etc/be-agent.cfg.sample.  Be 
X# sure  to enter the hostname of your Backup Exec server, and then make a 
X#  matching entry for it in /etc/hosts:
X#
X# be-agent.cfg.sample:
X# tell my_backup_exec_server_hostname
X#
X# /etc/hosts:
X# 192.168.1.3  my_backup_exec_server_hostname
X#
X#  Save your config file as %%PREFIX%%/etc/be-agent.cfg
X#
X# 2. Add the following line to your /etc/services:
X#
X# grfs 6101/tcp # Backup Exec Agent
X#
X# 3. Add the following lines to /etc/rc.conf
X#
X# be_agent_enable="YES"
X# linux_enable="YES"
X#
X#
END-of-/usr/ports/sysutils/be_agent/files/pkg-message.in
echo x - /usr/ports/sysutils/be_agent/Makefile
sed 's/^X//' >/usr/ports/sysutils/be_agent/Makefile << 'END-of-/usr/ports/sysutils/be_agent/Makefile'
X# New ports collection Makefile for:   be_agent
X# Date created:        20 May 2005
X# Whom:                Tony Shadwick <numbski@hksilver.net>
X#
X# $FreeBSD: ports/sysutils/be_agent/Makefile,v 1.4 2006/09/15 06:04:23 vd Exp $X#
X
XPORTNAME=      be_agent
XPORTVERSION=   5.046
XCATEGORIES=    sysutils
XMASTER_SITES=  #
XDISTNAME=      nls_agnt_262592
XEXTRACT_SUFX=  .tar
X
XMAINTAINER=    numbski@hksilver.net
XCOMMENT=       VERITAS Backup Exec (tm) UNIX Agent
XDOWNLOAD_URL= http://seer.support.veritas.com/docs/262592.htm
XUSE_LINUX=     yes
X
XNO_BUILD=      yes
XONLY_FOR_ARCHS=        i386
XNO_INSTALL_MANPAGES=   yes
XSUB_FILES=     pkg-message
XUSE_RC_SUBR=   be-agent.sh
XPLIST_FILES=   bin/agent.be \
X               etc/be-agent.cfg.sample
X
X.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
XECHO_MSG=/usr/bin/printf
XIGNORE= :\n\
XBecause of licensing restrictions, you must fetch the distribution\n\
Xmanually.  Please access\n\
X\n\
X  ${DOWNLOAD_URL}\n\
X\n\
XClick \"Download Now\"\, and agree to the license agreement.  Please place\n\
Xthe downloaded ${DISTNAME}${EXTRACT_SUFX} in ${DISTDIR}.\n
X.endif
X
Xdo-install:
X       @${INSTALL_PROGRAM} ${WRKDIR}/common/agent.linux24 ${PREFIX}/bin/agent.be
X       @${CAT} ${PKGMESSAGE} ${WRKDIR}/english/agent.cfg \
X               ${FILESDIR}/config_example >> ${WRKDIR}/be-agent.cfg.sample
X       @${INSTALL_DATA} ${WRKDIR}/be-agent.cfg.sample ${PREFIX}/etc
X
Xpost-install:
X       @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-/usr/ports/sysutils/be_agent/Makefile
echo x - /usr/ports/sysutils/be_agent/distinfo
sed 's/^X//' >/usr/ports/sysutils/be_agent/distinfo << 'END-of-/usr/ports/sysutils/be_agent/distinfo'
XMD5 (nls_agnt_262592.tar) = e785997a44f9ec562e2aa90f0132a738
XSHA256 (nls_agnt_262592.tar) = 8ba8816b9199ee428da8e8cb44d2e451117e9f3689fbdeea8016a9e3257f9b3e
XSIZE (nls_agnt_262592.tar) = 1092608
END-of-/usr/ports/sysutils/be_agent/distinfo
echo x - /usr/ports/sysutils/be_agent/pkg-descr
sed 's/^X//' >/usr/ports/sysutils/be_agent/pkg-descr << 'END-of-/usr/ports/sysutils/be_agent/pkg-descr'
XThis is a port of the VERITAS Backup Exec (tm) UNIX Agent.
X
XThis agent can be applied to the following versions of Backup Exec:
X
XBackup Exec 8.x for Windows NT and Windows 2000 (All Revisions)
XBackup Exec 9.0 for Windows Servers (All Revisions)
XBackup Exec 9.1 for Windows Servers (All Revisions)
XBackup Exec 8.5 for NetWare
XBackup Exec 9.0 for NetWare
XBackup Exec 9.1 for NetWare 
X
X
XWWW: http://seer.support.veritas.com/docs/262592.htm
X
X- Tony Shadwick
Xnumbski@hksilver.net
END-of-/usr/ports/sysutils/be_agent/pkg-descr
>Release-Note:
>Audit-Trail:
>Unformatted:



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