stable/branches/experimental/sys-auth/CASA/CASA-1.7.1592-r1.ebuild

86 lines
1.9 KiB
Bash
Raw Normal View History

2010-01-19 09:24:54 +01:00
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils mono autotools
HOMEPAGE="http://www.novell.com"
SRC_URI="http://ftp.mars.arge.at/n4g/${P}.tar.bz2"
DESCRIPTION="Novell Common Authentication Service Adapter (CASA)"
KEYWORDS="~x86 ~amd64"
LICENSE="LGPL"
SLOT="0"
DEPEND="dev-lang/mono
dev-dotnet/glade-sharp
dev-dotnet/gtk-sharp
app-crypt/mit-krb5
gnome-base/gnome-keyring
gnome-base/gnome-vfs
virtual/jdk"
src_prepare() {
# epatch ${FILESDIR}/${PN}-1.6-glib-glade.patch
# epatch ${FILESDIR}/${PN}-1.6-gnome.patch
# epatch ${FILESDIR}/${PN}-1.6-qt.patch
eautoreconf
}
src_configure() {
econf || die econf failed
}
src_compile() {
emake || die emake failed
die
}
src_install() {
dodir /lib/security
mv lib/Release/pam_*.so ${D}/lib/security
insinto /usr/lib
doins lib/Release/*.dll
doins lib/Release/*.jar
doins lib/Release/*.so*
dosym /usr/lib/libad_ff.so.1.1.1 /usr/lib/libad_ff.so.1
dosym /usr/lib/libad_gk.so.1.1.1 /usr/lib/libad_gk.so.1
insinto /usr/bin
doins bin/Release/CASAManager.exe
doins c_gui/CASAManager.exe.config
exeinto /usr/bin
mv c_gui/CASAManager.sh c_gui/CASAManager
doexe c_gui/CASAManager
insinto /usr/bin
doins bin/Release/micasad.exe
exeinto /usr/sbin
mv c_micasad/startup/micasad.sh c_micasad/micasad
doexe c_micasad/micasad
newinitd ${FILESDIR}/micasad.rc micasad
insinto /usr/share/applications
doins c_gui/CASAManager.desktop
exeinto /usr/sbin
for x in casacfgpam casaucfgpam; do
doexe c_micasad/startup/$x
done
exeinto /usr/bin
for x in installcasa uninstallcasa iscasaconfiged; do
doexe ${FILESDIR}/$x
done
insinto /usr/include
doins include/*.h
doicon c_gui/images/*.png
insinto /usr/share/doc/${P}/help/en
doins c_gui/help/en/*
dosym /usr/share/doc/${P}/help /usr/share/doc/packages/CASA/help
dodir /usr/share/doc/packages/CASA/images
dodoc c_doc/*.doc
dodoc doc/CASA_Reference_Guide.pdf
}