Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5584 - Make openssh install and use gnome-ssh-askpass
Summary: Make openssh install and use gnome-ssh-askpass
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
: 24785 215134 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-25 16:28 UTC by Eivind Tagseth
Modified: 2023-01-03 06:36 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The new ebuild file. (openssh-3.4_p1-r4.ebuild,3.14 KB, text/plain)
2002-07-25 16:31 UTC, Eivind Tagseth
Details
Environment file for openssh. (15openssh,117 bytes, text/plain)
2002-07-25 16:32 UTC, Eivind Tagseth
Details
new gnome-ssh-askpass ebuild (gnome-ssh-askpass-3.4_p1.ebuild,1.24 KB, text/plain)
2002-08-19 09:19 UTC, Alastair Tse (RETIRED)
Details
gnome-ssh-askpass-3.5_p1-r1.ebuild (gnome-ssh-askpass-3.5_p1-r1.ebuild,1.54 KB, text/plain)
2003-01-24 03:01 UTC, Eivind Tagseth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eivind Tagseth 2002-07-25 16:28:08 UTC
The contrib-directory of openssh contains gnome-ssh-askpass.c.

This ebuild-script will build and install this if `use gnome` is set.
Also adds an environment-file for using gnome-ssh-askpass.

I use this by having
ssh-add < /dev/null
in my .xession-file.
Comment 1 Eivind Tagseth 2002-07-25 16:31:29 UTC
Created attachment 2589 [details]
The new ebuild file.  

Diff between 3.4_p1-r3 and 3.4_p1-r4:

--- openssh-3.4_p1-r3.ebuild	2002-07-25 14:57:35.000000000 +0200
+++ openssh-3.4_p1-r4.ebuild	2002-07-25 23:31:05.000000000 +0200
@@ -54,6 +54,14 @@
	fi
 
	make || die " compile problem"
+
+	if [ "`use gnome`" ]
+	then
+		cd contrib
+		cc `gnome-config --cflags gnome gnomeui` \
+			 gnome-ssh-askpass.c -o gnome-ssh-askpass \
+			 `gnome-config --libs gnome gnomeui`
+	fi
 }
 
 src_install() {			       
@@ -61,6 +69,13 @@
	dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config
	insinto /etc/pam.d  ; newins ${FILESDIR}/sshd.pam sshd
	exeinto /etc/init.d ; newexe ${FILESDIR}/sshd.rc6 sshd
+	if [ `use gnome` ] 
+	then 
+		exeinto /usr/lib/misc 
+		doexe contrib/gnome-ssh-askpass 
+		insinto /etc/env.d
+		doins ${FILESDIR}/15openssh
+	fi
	touch ${D}/var/empty/.keep
 }
Comment 2 Eivind Tagseth 2002-07-25 16:32:52 UTC
Created attachment 2590 [details]
Environment file for openssh.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2002-08-19 09:17:48 UTC
Hi,

I don't agree that gnome-ssh-askpass should be built as a part of the openssh
ebuild, since openssh is a pretty basic tool/service, we don't want it depending
on gnome-libs. I propose that we should have a seperate ebuild like x11-ssh-askpass.

I've built something just that, which is attached below. You can build it for
both gtk and gtk2 (or more correctly, gnome and gnome2) using the USE variables.

Hopefully someone will find this a little less intrusive than adding it to openssh.

Cheers,

Alastair

Comment 4 Alastair Tse (RETIRED) gentoo-dev 2002-08-19 09:19:30 UTC
Created attachment 3209 [details]
new gnome-ssh-askpass ebuild

uses attachment 2590 [details] (/etc/env.d/15openssh).
Comment 5 Eivind Tagseth 2003-01-24 03:01:33 UTC
Created attachment 7597 [details]
gnome-ssh-askpass-3.5_p1-r1.ebuild

Was this forgotten?

Anyway, here is an updated working version.  Don't know how you guys manage
without it...  ;)
Comment 6 Mike Gardiner (RETIRED) gentoo-dev 2003-06-09 20:55:22 UTC
I'm curious as to why creating a seperate ebuild for this might be necessary, quoting from the ebuild howto, 

'Let's say you're a GNOME fan, and you'd like any ebuild that has the option of compiling-in optional GNOME support to do so. In this case, you'd add gnome to the USE variable in /etc/make.conf, and then Portage will automatically add optional GNOME functionality to packages if it is available'

I would've thought, even though openssh is really a base package, that this might be a case for including the USE variable?

However, I'll readily accept if my thinking here is wrong, and instead say that, if this is the way to go, should gnome-ssh-askpass be included in portage and this bug closed? or are there more issues to resolve here?
Comment 7 SpanKY gentoo-dev 2003-07-18 15:17:14 UTC
i'd agree with Mike on this one ... after all you can currently emerge BitchX and 
have it pull in X11 ... seemingly unrelated ... 
Comment 8 Alastair Tse (RETIRED) gentoo-dev 2003-07-18 16:05:03 UTC
true, i was young and naive when i made that comment, heh, august 2002 .. 
Comment 9 SpanKY gentoo-dev 2003-07-19 13:37:05 UTC
*** Bug 24785 has been marked as a duplicate of this bug. ***
Comment 10 Alastair Tse (RETIRED) gentoo-dev 2004-02-04 15:38:52 UTC
there are some better ask passes (eg. gtk2-ssh-askpass) than the gnome-ssh-askpass in openssh. i feel this is not really worth the effort, so i'm closing this bug for now.
Comment 11 Eivind Tagseth 2004-02-04 22:57:25 UTC
Agreed, fortunately, things have changed during the last 1.5 years.  ;)



Eivind
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2008-03-28 08:55:36 UTC
*** Bug 215134 has been marked as a duplicate of this bug. ***