# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header:$ MY_P=${PN}-server-linux-32bit-i386-${PV//./_} S="${WORKDIR}/${MY_P}" DESCRIPTION="SAP DB - The FREE Enterprise Open Source Database" SRC_URI="ftp://ftp.sap.com/pub/sapdb/bin/linux/${MY_P}.tgz" HOMEPAGE="http://www.sapdb.org" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" pkg_preinst() { einfo "Checking User and Groups now" if ! grep -q ^sapdb: /etc/group then groupadd sapdb || die "problem adding group sapdb" fi if ! grep -q ^sapdb: /etc/passwd then useradd -d /usr/sapdb -g sapdb -s /dev/null sapdb \ || die "problem adding user sapdb" fi } src_unpack() { unpack "${A}" cd "${S}" } pkg_postinst() { cd "${S}" ./SDBINST -b -g sapdb -o sapdb -i /usr/sapdb/indep_prog -I /usr/sapdb/indep_prog -d /usr/sapdb/depend echo "Performing post-installation routines for ${P}." }