亂寫的rdesktop-cvs ebuild
Posted: Mon Jun 23, 2003 9:13 am
因為portage裡的rdesktop 1.2 無法以全彩顯示
但CVS裡的可以
所以自己亂寫了一個ebuild來作
先建/usr/local/portage/net-misc/rdesktop-cvs
把下列copy成 rdesktop-cvs-1.2.ebuild
ebuild rdesktop-cvs-1.2.ebuild digest
然後就可以emerge rdesktop-cvs-1.2.ebuild 了
但CVS裡的可以
所以自己亂寫了一個ebuild來作
先建/usr/local/portage/net-misc/rdesktop-cvs
把下列copy成 rdesktop-cvs-1.2.ebuild
ebuild rdesktop-cvs-1.2.ebuild digest
然後就可以emerge rdesktop-cvs-1.2.ebuild 了
Code: Select all
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-misc/rdesktop-cvs/rdesktop-cvs-1.2.ebuild,v 1.3 2003/06/03 18:12:46 robbat2 Exp $
ECVS_SERVER="cvs.sourceforge.net:/cvsroot/rdesktop"
ECVS_MODULE="rdesktop"
ECVS_USER="anonymous"
ECVS_PASS=""
ECVS_AUTH="pserver"
ECVS_BRANCH=""
inherit cvs eutils
MY_P=rdesktop-${PV}
S=${WORKDIR}/${ECVS_MODULE}
DESCRIPTION="Remote Desktop Protocol Client"
SRC_URI=""
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc"
DEPEND="x11-base/xfree
ssl? ( >=dev-libs/openssl-0.9.6b )"
src_unpack() {
cvs_src_unpack
cd ${S}
}
src_compile() {
local myconf
use ssl \
&& myconf="--with-openssl=/usr/include/openssl" \
|| myconf="--without-openssl"
[ "${DEBUG}" ] && myconf="${myconf} --with-debug"
sed -e "s:-O2:${CFLAGS}:g" Makefile > Makefile.tmp
mv Makefile.tmp Makefile
echo "CFLAGS += ${CXXFLAGS}" >> Makeconf
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--sharedir=/usr/share/${PN} \
${myconf} || die
emake || die
}
src_install () {
make DESTDIR=${D} install
dodoc COPYING doc/HACKING doc/TODO doc/keymapping.txt
}