2010-01-19 09:24:54 +01:00
|
|
|
# Created by George Hron @ 2007.02.05
|
|
|
|
|
|
|
|
inherit eutils kde-functions mono autotools
|
|
|
|
|
|
|
|
LICENSE="LGPL"
|
|
|
|
MY_PN="CASA"
|
|
|
|
MY_VER="1.6"
|
|
|
|
HOMEPAGE="http://www.novell.com"
|
|
|
|
SRC_URI="http://forge.novell.com/modules/xfcontent/private.php/casa/CASA_1.6/CASA/downloads/source/${MY_PN}-${PV}.tar.bz2"
|
|
|
|
DESCRIPTION="Novell Common Authentication Service Adapter (CASA)"
|
2010-01-19 09:26:14 +01:00
|
|
|
SLOT="0"
|
2010-01-19 09:24:54 +01:00
|
|
|
|
|
|
|
DEPEND="dev-lang/mono
|
|
|
|
dev-dotnet/glade-sharp
|
|
|
|
dev-dotnet/gtk-sharp
|
|
|
|
app-crypt/mit-krb5
|
|
|
|
>=kde-base/kdelibs-3.5
|
|
|
|
<kde-base/kdelibs-3.6
|
|
|
|
gnome-base/gnome-keyring
|
|
|
|
gnome-base/gnome-vfs
|
|
|
|
virtual/jdk"
|
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_PN}-${PV}
|
|
|
|
KEYWORDS="~x86"
|
|
|
|
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
cd ${S}
|
|
|
|
eautoreconf
|
|
|
|
epatch ${FILESDIR}/${MY_PN}-${MY_VER}-glib-glade.patch
|
|
|
|
epatch ${FILESDIR}/${MY_PN}-${MY_VER}-gnome.patch
|
|
|
|
epatch ${FILESDIR}/${MY_PN}-${MY_VER}-qt.patch
|
|
|
|
set-kdedir 3.5
|
|
|
|
sed -i 's@/opt/kde3@${KDEDIR}@g' `grep -ril "/opt/kde3" .`
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
econf || die econf failed
|
|
|
|
emake || die emake failed
|
|
|
|
rm lib/Release/libad_ff.so.1
|
|
|
|
rm lib/Release/libad_gk.so.1
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|