diff options
author | ad <ad> | 2001-09-26 07:28:49 +0000 |
---|---|---|
committer | ad <ad> | 2001-09-26 07:28:49 +0000 |
commit | 74ede53a627819621bc3640286bc093fb507d776 (patch) | |
tree | dfc43325b0e44578caad45fddbf1a036eef3417e /sysutils | |
parent | 6f67e7eb8aacbc8f35f4672079769442f62a7004 (diff) | |
download | pkgsrc-74ede53a627819621bc3640286bc093fb507d776.tar.gz |
Adaptec Storage Manager, event logger and associated tools. For use with DPT
and Adaptec I2O SCSI & IDE RAID adapters.
Prepared by myself and lukem.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/storage-manager/Makefile | 89 | ||||
-rw-r--r-- | sysutils/storage-manager/distinfo | 4 | ||||
-rwxr-xr-x | sysutils/storage-manager/files/dptelog | 30 | ||||
-rwxr-xr-x | sysutils/storage-manager/files/dpteng | 33 | ||||
-rw-r--r-- | sysutils/storage-manager/files/dptmgr.sh | 8 | ||||
-rw-r--r-- | sysutils/storage-manager/files/dptsig.sh | 8 | ||||
-rw-r--r-- | sysutils/storage-manager/files/raidutil.sh | 8 | ||||
-rw-r--r-- | sysutils/storage-manager/pkg/DESCR | 2 | ||||
-rw-r--r-- | sysutils/storage-manager/pkg/PLIST | 29 |
9 files changed, 211 insertions, 0 deletions
diff --git a/sysutils/storage-manager/Makefile b/sysutils/storage-manager/Makefile new file mode 100644 index 00000000000..630f6c6c737 --- /dev/null +++ b/sysutils/storage-manager/Makefile @@ -0,0 +1,89 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ + +DISTNAME= sm_linux_v314_install +PKGNAME= storage-manager-3.14 +WRKSRC= ${WRKDIR}/sm_linux_v314_install +CATEGORIES= sysutils +MASTER_SITES= # empty +EXTRACT_SUFX= .rpm + +MAINTAINER= ad@netbsd.org +HOMEPAGE= http://opensource.adaptec.com/ +COMMENT= Adaptec Storage Management software + +DEPENDS+= suse_x11>=6.1:../../emulators/suse_x11 +BUILD_DEPENDS+= rpm2pkg>=1.2:../../pkgtools/rpm2pkg + +ONLY_FOR_PLATFORM= NetBSD-*-i386 + +RESTRICTED= "Redistribution not permitted" +NO_SRC_ON_FTP= ${RESTRICTED} +NO_SRC_ON_CDROM= ${RESTRICTED} +NO_BIN_ON_FTP= ${RESTRICTED} +NO_BIN_ON_CDROM= ${RESTRICTED} + +CHECK_SHLIBS= NO +STRIPFLAG= # defined +NO_CONFIGURE= # defined +NO_BUILD= # defined + +DOWNLOAD= http://www.adaptec.com/worldwide/support/driverdetail.html?cat=%2fOperating+System%2fLinux&filekey=sm_linux_v314_install.rpm + +do-fetch: + @if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \ + ${ECHO_MSG} "==============================================================="; \ + ${ECHO_MSG} " Adaptec Storage Manager 3.14 for RedHat Linux must be fetched"; \ + ${ECHO_MSG} " into ${DISTDIR} from"; \ + ${ECHO_MSG} " ${DOWNLOAD}."; \ + ${ECHO_MSG} "==============================================================="; \ + ${FALSE}; \ + fi + +do-extract: + ${MKDIR} ${WRKSRC} + cd ${WRKSRC}; rpm2cpio ${DISTDIR}/${DISTNAME}.rpm > ${DISTNAME}.cpio + cd ${WRKSRC}; ${PAX} -rd -f ${DISTNAME}.cpio + +do-patch: + ${SED} -e "s,@PREFIX@,${PREFIX},g" \ + ${FILESDIR}/dptmgr.sh > ${WRKDIR}/dptmgr.sh + ${SED} -e "s,@PREFIX@,${PREFIX},g" \ + ${FILESDIR}/dptsig.sh > ${WRKDIR}/dptsig.sh + ${SED} -e "s,@PREFIX@,${PREFIX},g" \ + ${FILESDIR}/raidutil.sh > ${WRKDIR}/raidutil.sh + ${SED} -e "s,@PREFIX@,${PREFIX},g" \ + ${FILESDIR}/dpteng > ${WRKDIR}/dpteng + ${SED} -e "s,@PREFIX@,${PREFIX},g" \ + ${FILESDIR}/dptelog > ${WRKDIR}/dptelog + +do-install: + ${INSTALL_PROGRAM_DIR} ${PREFIX}/lib/dpt + ${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptcom ${PREFIX}/lib/dpt + ${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptelog ${PREFIX}/lib/dpt + ${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dpteng ${PREFIX}/lib/dpt + ${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptmgr ${PREFIX}/lib/dpt + ${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptscom ${PREFIX}/lib/dpt + ${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptsig ${PREFIX}/lib/dpt + ${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/raidutil ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptcom.chk ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptelog.ini ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptmgr.hlp ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptmgr.rsc ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptmgr.ini ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/dpt/read.me ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libMrm.la ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libMrm.so ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libMrm.so.1 ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libMrm.so.1.0.2 ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libXm.la ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libXm.so ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libXm.so.1 ${PREFIX}/lib/dpt + ${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libXm.so.1.0.2 ${PREFIX}/lib/dpt + ${INSTALL_MAN} ${WRKSRC}/usr/local/man/man8/raidutil.8 ${PREFIX}/man/man8 + ${INSTALL_SCRIPT} ${WRKDIR}/dptmgr.sh ${PREFIX}/sbin/dptmgr + ${INSTALL_SCRIPT} ${WRKDIR}/dptsig.sh ${PREFIX}/sbin/dptsig + ${INSTALL_SCRIPT} ${WRKDIR}/raidutil.sh ${PREFIX}/sbin/raidutil + ${INSTALL_SCRIPT} ${WRKDIR}/dpteng ${PREFIX}/etc/rc.d/dpteng + ${INSTALL_SCRIPT} ${WRKDIR}/dptelog ${PREFIX}/etc/rc.d/dptelog + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/storage-manager/distinfo b/sysutils/storage-manager/distinfo new file mode 100644 index 00000000000..3032bb849b9 --- /dev/null +++ b/sysutils/storage-manager/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ + +SHA1 (sm_linux_v314_install.rpm) = 85b6df94620deb11c8641b024b994e11872932b1 +Size (sm_linux_v314_install.rpm) = 1245715 bytes diff --git a/sysutils/storage-manager/files/dptelog b/sysutils/storage-manager/files/dptelog new file mode 100755 index 00000000000..10514dd88d1 --- /dev/null +++ b/sysutils/storage-manager/files/dptelog @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $NetBSD: dptelog,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# + +# PROVIDE: dptelog +# REQUIRE: DAEMON dpteng + +. /etc/rc.subr + +name="dptelog" +rcvar=$name +command="@PREFIX@/lib/dpt/${name}" +start_cmd="dptelog_start" + +dptelog_start() +{ + + echo Starting $name. + $command 2> /dev/null & +} + +dptelog_stop() +{ + + kill `ps ax | grep "lib/dpt/dptelog" | awk '{ print $1 }'` +} + +load_rc_config $name +run_rc_command "$1" diff --git a/sysutils/storage-manager/files/dpteng b/sysutils/storage-manager/files/dpteng new file mode 100755 index 00000000000..6ad44dc341b --- /dev/null +++ b/sysutils/storage-manager/files/dpteng @@ -0,0 +1,33 @@ +#!/bin/sh +# +# $NetBSD: dpteng,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# + +# PROVIDE: dpteng +# REQUIRE: DAEMON + +. /etc/rc.subr + +name="dpteng" +rcvar=$name +command="@PREFIX@/lib/dpt/${name}" +pidfile="/tmp/dpteng.LOCK" +start_cmd="dpteng_start" +stop_cmd="dpteng_stop" + +dpteng_start() +{ + + echo Starting $name. + $command 2> /dev/null & +} + +dpteng_stop() +{ + + echo Stopping $name. + kill -9 `cat $pidfile` +} + +load_rc_config $name +run_rc_command "$1" diff --git a/sysutils/storage-manager/files/dptmgr.sh b/sysutils/storage-manager/files/dptmgr.sh new file mode 100644 index 00000000000..fc8818796dc --- /dev/null +++ b/sysutils/storage-manager/files/dptmgr.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# $NetBSD: dptmgr.sh,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# +DPTMGR_HOME=@PREFIX@/lib/dpt +LD_LIBRARY_PATH=$DPTMGR_HOME:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH +exec ${DPTMGR_HOME}/dptmgr "$@" diff --git a/sysutils/storage-manager/files/dptsig.sh b/sysutils/storage-manager/files/dptsig.sh new file mode 100644 index 00000000000..b51fec03e1b --- /dev/null +++ b/sysutils/storage-manager/files/dptsig.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# $NetBSD: dptsig.sh,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# +DPTMGR_HOME=@PREFIX@/lib/dpt +LD_LIBRARY_PATH=$DPTMGR_HOME:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH +exec ${DPTMGR_HOME}/dptsig "$@" diff --git a/sysutils/storage-manager/files/raidutil.sh b/sysutils/storage-manager/files/raidutil.sh new file mode 100644 index 00000000000..978a7870f7c --- /dev/null +++ b/sysutils/storage-manager/files/raidutil.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# $NetBSD: raidutil.sh,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# +DPTMGR_HOME=@PREFIX@/lib/dpt +LD_LIBRARY_PATH=$DPTMGR_HOME:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH +exec ${DPTMGR_HOME}/raidutil "$@" diff --git a/sysutils/storage-manager/pkg/DESCR b/sysutils/storage-manager/pkg/DESCR new file mode 100644 index 00000000000..1081fe8e232 --- /dev/null +++ b/sysutils/storage-manager/pkg/DESCR @@ -0,0 +1,2 @@ +Adaptec Storage Manager, event logger and associated tools. +For use with DPT and Adaptec I2O SCSI & IDE RAID adapters. diff --git a/sysutils/storage-manager/pkg/PLIST b/sysutils/storage-manager/pkg/PLIST new file mode 100644 index 00000000000..9ad39c94cbc --- /dev/null +++ b/sysutils/storage-manager/pkg/PLIST @@ -0,0 +1,29 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/09/26 07:28:50 ad Exp $ +etc/rc.d/dptelog +etc/rc.d/dpteng +lib/dpt/dptcom +lib/dpt/dptcom.chk +lib/dpt/dptelog +lib/dpt/dptelog.ini +lib/dpt/dpteng +lib/dpt/dptmgr +lib/dpt/dptmgr.hlp +lib/dpt/dptmgr.ini +lib/dpt/dptmgr.rsc +lib/dpt/dptscom +lib/dpt/dptsig +lib/dpt/libMrm.la +lib/dpt/libMrm.so +lib/dpt/libMrm.so.1 +lib/dpt/libMrm.so.1.0.2 +lib/dpt/libXm.la +lib/dpt/libXm.so +lib/dpt/libXm.so.1 +lib/dpt/libXm.so.1.0.2 +lib/dpt/raidutil +lib/dpt/read.me +man/man8/raidutil.8 +sbin/dptmgr +sbin/dptsig +sbin/raidutil +@dirrm lib/dpt |