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