Is it possible to add the SKS OpenPGP Key Server to the Gentoo distribution? It is hosted primary on http://www.nongnu.org/sks/ has got a Savannah page http://savannah.nongnu.org/projects/sks/ and you can download it from http://download.savannah.gnu.org/releases/sks/ The Debian GNU/Linux distribution has got this package, too. :-) Reproducible: Always
Created attachment 174934 [details] try to write an ebuild for sks I tried to write an ebuild on my own. Maybe it would be helpful.
(In reply to comment #1) > Created an attachment (id=174934) [edit] > try to write an ebuild for sks > > I tried to write an ebuild on my own. Maybe it would be helpful. > default src_unpack already does the work so no need to override it in the ebuild. Since this is a server/daemon it probably needs an initscript. See Initscripts part[1] for how to write initscripts. 1: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4
Created attachment 175814 [details, diff] rework of dependencies and src_install
Created attachment 175815 [details] init script for sks Tried to write an init script...
(In reply to comment #4) > Created an attachment (id=175815) [edit] > init script for sks > > Tried to write an init script... > You can use --pidfile option in start and stop (so stop uses start-stop-daemon as well, instead of killall
Created attachment 176959 [details, diff] s/killall/pidfile/ This fixes the killall command -- uses pidfile instead.
Created attachment 225821 [details] Adoption of the old ebuild+patch for new version I adapted the ebuild for 1.1.1 and changed the following: * append "-j1" to MAKEOPTS, because the build process fails with parallel make * change the install routine to use the correct PREFIX. DESTDIR is not evaluated by the Makefile * dev/libs/db:4.6 seems to be a hard requirement, did not build with 4.7
Created attachment 226077 [details] further improved ebuild Changed a few things on the new ebuild: * DB version 4.7 works if we set the appropriate option in Makefile.local. So find out installed DB version and set this option. * ocaml *must* be the specific version, newer one seems not to work Also, added a working init-script, the old one cannot work. I use this ebuild and init/conf-scripts on a production system on amd64 without problems.
Created attachment 226079 [details] files/sks.initd
Created attachment 226081 [details] files/sks.confd
Some things before this can make it's way into portage. - Hard dep on a specific version is a no-go, this will cause an up/downgrade-loop. Report it upstream. - The MAKEOPTS-thing is a workaround, not a fix. Please report this upstream and put a link into the ebuild to the upstream bug report. Also, MAKEOPTS should be set outside a function. - The sys-libs/db-workaround makes no sense, it's a hacky workaround for a non-problem. bdb/Makefile contains LIBDB=-ldb-4.6, patch this (just remove the version), send the patch upstream. - If the Makefile doesn't support DESTDIR, create a patch, send it upstream.
* net-misc/sks Available versions: ~1.1.5 {optimize test} Homepage: https://bitbucket.org/skskeyserver/sks-keyserver Description: An OpenPGP keyserver which is decentralized and provides highly reliable synchronization