/[gentoo-x86]/net-misc/secpanel/secpanel-0.6.1.ebuild
Gentoo

Contents of /net-misc/secpanel/secpanel-0.6.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Dec 6 15:39:52 2010 UTC (7 years, 9 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
alpha stable wrt #342829

(Portage version: 2.1.9.24/cvs/Linux ia64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/secpanel/secpanel-0.6.1.ebuild,v 1.4 2010/11/26 22:35:26 xmw Exp $
4
5 EAPI=2
6
7 DESCRIPTION="Graphical frontend for managing and running SSH and SCP connections"
8 HOMEPAGE="http://themediahost.de/secpanel/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 sparc x86"
14 IUSE="gif"
15
16 DEPEND="!gif? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) )"
17
18 RDEPEND="virtual/ssh dev-lang/tk"
19
20 S=${WORKDIR}/usr/local
21
22 src_prepare() {
23 # install arch indep stuff in /usr/share instead of /usr/lib*
24 sed -i -e '/set libdir/s:../lib:../share:' bin/secpanel || die
25
26 # fix the version
27 sed -i -e "/set spversion/s:0.6.0:${PV}:" bin/secpanel || die
28
29 # optionally remove gifs...
30 if ! use gif; then
31 einfo "Setting secpanel to use PPM images"
32 sed -i -e 's/\.gif/\.ppm/g' bin/secpanel || die
33
34 einfo "Converting all GIF images to PPM format..."
35 for i in $(find lib/secpanel/images -name "*.gif") ; do
36 einfo "convert ${i} => ${i//.gif/.ppm}"
37 convert "${i}" "ppm:${i//.gif/.ppm}" || die
38 rm -v "${i}" || die
39 done
40 fi
41 }
42
43 src_install() {
44 dobin bin/secpanel || die
45
46 insinto /usr/share/secpanel
47 doins -r lib/secpanel/{*.{tcl,config,profile,wait,txt,sh},images,spdistkey} || die
48 }

  ViewVC Help
Powered by ViewVC 1.1.20