diff options
author | Tavis Ormandy <taviso@gentoo.org> | 2003-10-30 12:26:34 +0000 |
---|---|---|
committer | Tavis Ormandy <taviso@gentoo.org> | 2003-10-30 12:26:34 +0000 |
commit | bf2a01bb82843cc696bfc32cbe83555a952c0bcd (patch) | |
tree | fd1084e328e89ac309ab2975c1795ec26c7cdb28 /net-misc/secpanel | |
parent | Added to ~ppc (diff) | |
download | gentoo-2-bf2a01bb82843cc696bfc32cbe83555a952c0bcd.tar.gz gentoo-2-bf2a01bb82843cc696bfc32cbe83555a952c0bcd.tar.bz2 gentoo-2-bf2a01bb82843cc696bfc32cbe83555a952c0bcd.zip |
optional gifs.
Diffstat (limited to 'net-misc/secpanel')
-rw-r--r-- | net-misc/secpanel/ChangeLog | 5 | ||||
-rw-r--r-- | net-misc/secpanel/Manifest | 4 | ||||
-rw-r--r-- | net-misc/secpanel/secpanel-0.41.ebuild | 43 |
3 files changed, 44 insertions, 8 deletions
diff --git a/net-misc/secpanel/ChangeLog b/net-misc/secpanel/ChangeLog index cd3958f138e4..90935ca43656 100644 --- a/net-misc/secpanel/ChangeLog +++ b/net-misc/secpanel/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-misc/secpanel # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/secpanel/ChangeLog,v 1.1 2003/10/30 11:19:57 taviso Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/secpanel/ChangeLog,v 1.2 2003/10/30 12:26:27 taviso Exp $ + + 30 Oct 2003; Tavis Ormandy <taviso@gentoo.org> secpanel-0.41.ebuild: + make gifs optional. *secpanel-0.41 (30 Oct 2003) diff --git a/net-misc/secpanel/Manifest b/net-misc/secpanel/Manifest index efbcecdff5bd..d642acfcbcd3 100644 --- a/net-misc/secpanel/Manifest +++ b/net-misc/secpanel/Manifest @@ -1,4 +1,4 @@ -MD5 5ce2277ff97c1679d032ddfcd182862f secpanel-0.41.ebuild 858 -MD5 7042fde0d6a956cd384af0903c3e797b ChangeLog 371 +MD5 7909106e2cb378e961cfdabe8458211d secpanel-0.41.ebuild 1470 +MD5 7d6becc2177b2958427f55de4a277bc7 ChangeLog 465 MD5 3dd1ad853d810ac676c577f655fa3853 metadata.xml 413 MD5 0729b4247ac2598e6cf9b3acbf69f2d7 files/digest-secpanel-0.41 64 diff --git a/net-misc/secpanel/secpanel-0.41.ebuild b/net-misc/secpanel/secpanel-0.41.ebuild index 2096dd6201d8..abc8edd059a5 100644 --- a/net-misc/secpanel/secpanel-0.41.ebuild +++ b/net-misc/secpanel/secpanel-0.41.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/secpanel/secpanel-0.41.ebuild,v 1.1 2003/10/30 11:19:57 taviso Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/secpanel/secpanel-0.41.ebuild,v 1.2 2003/10/30 12:26:27 taviso Exp $ -DESCRIPTION="X11 Frontend for OpenSSH" +DESCRIPTION="X11 frontend for managing SSH" HOMEPAGE="http://www.pingx.net/secpanel/" SRC_URI="http://www.pingx.net/secpanel/${P}.tar.gz" @@ -10,14 +10,42 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~alpha" -IUSE="" +IUSE="gif" -DEPEND="" +DEPEND="!gif? ( media-gfx/imagemagick )" RDEPEND="virtual/ssh dev-lang/tk" S=${WORKDIR}/${P} +src_unpack() { + unpack ${A} + + # optionally remove gifs... + if ! use gif; then + ebegin "Setting secpanel to use PPM images" + sed -i 's/\.gif/\.ppm/g' ${S}/src/bin/secpanel + eend $? + fi +} + +src_compile() { + if ! use gif; then + cd ${S}/src/lib/secpanel/images + einfo "Converting all GIF images to PPM format..." + for i in *.gif + do + ebegin " ${i} => ${i//.gif/.ppm}" + convert ${i} "ppm:${i//.gif/.ppm}" || { + eend $? + die "convert failed" + } + eend $? + done + einfo "done." + fi +} + src_install() { dobin ${S}/src/bin/secpanel dodir /usr/lib/secpanel /usr/lib/secpanel/images @@ -26,7 +54,12 @@ src_install() { doins ${S}/src/lib/secpanel/*.{tcl,config,profile,dist,wait} insinto /usr/lib/secpanel/images - doins ${S}/src/lib/secpanel/images/*.gif + + if ! use gif; then + doins ${S}/src/lib/secpanel/images/*.ppm + else + doins ${S}/src/lib/secpanel/images/*.gif + fi fperms 755 /usr/lib/secpanel/{listserver.tcl,secpanel.dist,secpanel.wait} |