Date: Mon, 23 May 2005 21:31:23 GMT From: Tony Shadwick <numbski@hksilver.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/81420: New port: sysutils/be-agent Veritas Backup Exec (tm) UNIX Agent Message-ID: <200505232131.j4NLVNjf040030@www.freebsd.org> Resent-Message-ID: <200505232140.j4NLe333091878@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 81420 >Category: ports >Synopsis: New port: sysutils/be-agent Veritas Backup Exec (tm) UNIX Agent >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 23 21:40:03 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Tony Shadwick >Release: 5.4 >Organization: >Environment: FreeBSD test.testbeta.com 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE-p1 #0: Tue May 17 16:54:11 UTC 2005 numbski@test.testbeta.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: This is a port of the VERITAS Backup Exec (tm) UNIX Agent. This agent can be applied to the following versions of Backup Exec: Backup Exec 8.x for Windows NT and Windows 2000 (All Revisions) Backup Exec 9.0 for Windows Servers (All Revisions) Backup Exec 9.1 for Windows Servers (All Revisions) Backup Exec 8.5 for NetWare Backup Exec 9.0 for NetWare Backup Exec 9.1 for NetWare WWW: http://seer.support.veritas.com/docs/262592.htm - Tony Shadwick numbski@hksilver.net >How-To-Repeat: >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/Makefile # /usr/ports/sysutils/be-agent/distinfo # /usr/ports/sysutils/be-agent/files # /usr/ports/sysutils/be-agent/files/config_example # /usr/ports/sysutils/be-agent/files/be-agent.sh # /usr/ports/sysutils/be-agent/pkg-descr # /usr/ports/sysutils/be-agent/pkg-message # echo c - /usr/ports/sysutils/be-agent mkdir -p /usr/ports/sysutils/be-agent > /dev/null 2>&1 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$ X# X XPORTNAME= be-agent XPORTVERSION= 5.046 XCATEGORIES= sysutils XMASTER_SITES= ftp://ftp.support.veritas.com/pub/support/products/Backup_Exec_for_WindowsNT/ \ X http://www.numbski.net/downloads/ XDISTNAME= nls_agnt_262592 XEXTRACT_SUFX= .tar X XMAINTAINER= numbski@hksilver.net XCOMMENT= VERITAS Backup Exec (tm) UNIX Agent X XRUN_DEPENDS= ${LINUXBASE}/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base X XNO_BUILD= yes XONLY_FOR_ARCHS= i386 XNO_INSTALL_MANPAGES= yes XUSE_REINPLACE= yes XUSE_RC_SUBR= yes XRC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} XPLIST_FILES= bin/agent.be \ X etc/be-agent.cfg.sample \ X etc/rc.d/be-agent.sh X X.include <bsd.port.pre.mk> X Xpost-extract: X @${RM} ${WRKDIR}/BE_IDENT X @${RM} ${WRKDIR}/INSTALL X @${RM} -rf ${WRKDIR}/french/ X @${RM} -rf ${WRKDIR}/german/ X @${RM} -rf ${WRKDIR}/spanish/ X @${CP} ${WRKDIR}/common/agent.linux24 ${WRKDIR}/agent.be X @${RM} -rf ${WRKDIR}/common/ X @${CP} ${WRKDIR}/english/agent.cfg ${WRKDIR}/be-agent.cfg.sample X @${RM} -rf ${WRKDIR}/english/ X @${CAT} ${FILESDIR}/config_example >> ${WRKDIR}/be-agent.cfg.sample X @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \ X ${MASTERDIR}/pkg-message > ${WRKDIR}/pkg-message X @${CP} ${WRKDIR}/pkg-message ${WRKDIR}/be-agent.cfg.sample.new X @${CAT} ${WRKDIR}/be-agent.cfg.sample >> ${WRKDIR}/be-agent.cfg.sample.new X @${RM} ${WRKDIR}/be-agent.cfg.sample X @${MV} ${WRKDIR}/be-agent.cfg.sample.new ${WRKDIR}/be-agent.cfg.sample X Xdo-install: X @${INSTALL_DATA} ${WRKDIR}/agent.be ${PREFIX}/bin/agent.be X @${CHMOD} 0755 ${PREFIX}/bin/agent.be X @${INSTALL_DATA} ${WRKDIR}/be-agent.cfg.sample ${PREFIX}/etc X Xpost-install: X @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ X ${FILESDIR}/be-agent.sh > ${WRKDIR}/be-agent.sh X @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ X ${WRKDIR}/be-agent.sh X @${INSTALL_SCRIPT} ${WRKDIR}/be-agent.sh ${PREFIX}/etc/rc.d/be-agent.sh X @${ECHO_CMD} "" X @${CAT} ${WRKDIR}/pkg-message X X.include <bsd.port.post.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 XSIZE (nls_agnt_262592.tar) = 1092608 END-of-/usr/ports/sysutils/be-agent/distinfo 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/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 that 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/be-agent.sh sed 's/^X//' >/usr/ports/sysutils/be-agent/files/be-agent.sh << 'END-of-/usr/ports/sysutils/be-agent/files/be-agent.sh' X#!/bin/sh X# X# PROVIDE: be-agent X# REQUIRE: LOGIN X# BEFORE: DAEMON X# KEYWORD: FreeBSD 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 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 echo x - /usr/ports/sysutils/be-agent/pkg-message sed 's/^X//' >/usr/ports/sysutils/be-agent/pkg-message << 'END-of-/usr/ports/sysutils/be-agent/pkg-message' 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/pkg-message exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505232131.j4NLVNjf040030>