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.
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 }
Created attachment 2590 [details] Environment file for openssh.
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
Created attachment 3209 [details] new gnome-ssh-askpass ebuild uses attachment 2590 [details] (/etc/env.d/15openssh).
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... ;)
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?
i'd agree with Mike on this one ... after all you can currently emerge BitchX and have it pull in X11 ... seemingly unrelated ...
true, i was young and naive when i made that comment, heh, august 2002 ..
*** Bug 24785 has been marked as a duplicate of this bug. ***
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.
Agreed, fortunately, things have changed during the last 1.5 years. ;) Eivind
*** Bug 215134 has been marked as a duplicate of this bug. ***