# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="3ware Disk Managment Web Utility" HOMEPAGE="http://www.3ware.com" LICENSE="3ware" SLOT="0" KEYWORDS="~x86 ~amd64" RESTRICT="fetch" IUSE="" HW_VARIANT="Escalade9690SA-Series" SRC_URI="http://www.3ware.com/nonexistent/${P}-${ARCH}.tar.gz" #MYARCH="${ARCH/amd64/x86_64}" DEPEND="virtual/libc virtual/logger virtual/mta" supportedcards() { einfo "This binary supports should support ALL cards, including, but not" einfo "limited to the following series:" einfo "" einfo "PATA: 6xxx, 72xx, 74xx, 78xx, 7000, 7500, 7506" einfo "SATA: 8006, 8500, 8506, 9500S, 9550SX, 9590SE" einfo " 9550SXU, 9650SE, 9690SA" } src_install() { dodir /etc/3dm2 insinto /etc/3dm2 doins etc/3dm2/3dm2.conf dodir /usr/share/3dm2 insinto /usr/share/3dm2 doins -r usr/share/3dm2/* insinto /usr/share/man/man8 doins usr/share/man/man8/3dm2.8.gz dosbin usr/sbin/3dm2 newinitd ${FILESDIR}/3dm2 3dm2 } pkg_setup() { supportedcards } pkg_nofetch() { einfo "" einfo "1. Please agree to the license at URL:" einfo "" einfo "\thttp://www.3ware.com/support/windows_agree.asp?path=/download/${HW_VARIANT}/${PV}/3DM2-Linux-${PV}.tgz" einfo "" einfo "2. Use the script from http://bugs.gentoo.org/show_bug.cgi?id=60690 to create the needed tarballs for this ebuild." einfo "" } pkg_preinst() { if [ -x "/etc/init.d/3dm2" ]; then /etc/init.d/3dm2 stop fi } pkg_postinst() { einfo "" einfo "Start 3dm2, then connect to the server port https://localhost:888" einfo "Login as administrator, password '3ware'" einfo "Change the settings from the GUI" einfo "Remote Access is disabled by default." einfo "" einfo "To change the ssl cert, place a file called 3dm2.pem in /etc/3dm2" einfo "It must contain the certificate and the key." einfo "Under normal circumstances you don't need to change it." einfo "" }