You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/sys-apps/calculate-client/calculate-client-2.2.9999.e...

64 lines
1.6 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit distutils git-2
EGIT_REPO_URI="git://git.calculate.ru/calculate-client.git"
DESCRIPTION="The program of setting and storing the user account in the domain"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="kde xfce gnome"
DEPEND="~sys-apps/calculate-desktop-2.2.9999
~sys-apps/calculate-lib-2.2.9999
>=dev-python/python-ldap-2.0[ssl]
>=sys-auth/pam_ldap-180[ssl]
>=sys-auth/nss_ldap-239
>=sys-apps/keyexec-0.1.2
sys-apps/keyutils
sys-auth/pam_keystore
xfce? ( x11-misc/xdialog )
gnome? ( x11-misc/xdialog )
kde? ( kde-base/kdialog )"
RDEPEND="${DEPEND}"
ISUPDATE=/tmp/${PN}.ebuild.update
# for fixing bug of ebuild calculate-client-2.0.17
OLDISUPDATEPATH="${PORTAGE_TMPDIR}/portage/${CATEGORY}/${PN}-2.0.17/temp/"
OLDISUPDATE="${OLDISUPDATEPATH}/${PN}.update"
pkg_preinst() {
touch ${ISUPDATE}
rm -f /etc/init.d/client
# for fixing bug of ebuild calculate-client-2.0.17
mkdir -p ${OLDISUPDATEPATH}
touch ${OLDISUPDATE}
}
pkg_postinst() {
#/usr/lib/calculate-2.2/calculate-client/bin/install
rm ${ISUPDATE}
# for fixing bug of ebuild calculate-client-2.0.17
rm -rf ${PORTAGE_TMPDIR}/portage/${CATEGORY}/${PN}-2.0.17
rmdir ${PORTAGE_TMPDIR}/portage/${CATEGORY} &>/dev/null
}
pkg_prerm() {
# for fixing bug of ebuild calculate-client-2.0.17 (|| -e ${OLDISUPDATE} )
if ! [[ -e ${ISUPDATE} || -e ${OLDISUPDATE} ]];
then
:
#/usr/lib/calculate-2.2/calculate-client/bin/uninstall
fi
}