Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250574 - [ebuild request] SKS OpenPGP Key Server in Gentoo?
Summary: [ebuild request] SKS OpenPGP Key Server in Gentoo?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-10 23:44 UTC by Sebastian Wieseler
Modified: 2014-05-20 20:34 UTC (History)
3 users (show)

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


Attachments
try to write an ebuild for sks (sks-1.1.0.ebuild,420 bytes, text/plain)
2008-12-11 08:02 UTC, Sebastian Wieseler
Details
rework of dependencies and src_install (sks-1.1.0.ebuild.diff,312 bytes, patch)
2008-12-18 22:50 UTC, Sebastian Wieseler
Details | Diff
init script for sks (sks.rc,282 bytes, text/plain)
2008-12-18 22:52 UTC, Sebastian Wieseler
Details
s/killall/pidfile/ (sks.rc.diff,247 bytes, patch)
2008-12-31 14:48 UTC, Sebastian Wieseler
Details | Diff
Adoption of the old ebuild+patch for new version (sks-1.1.1.ebuild,702 bytes, text/plain)
2010-03-30 13:29 UTC, Bernd Wurst
Details
further improved ebuild (sks-1.1.1.ebuild,1.07 KB, text/plain)
2010-04-01 09:02 UTC, Bernd Wurst
Details
files/sks.initd (sks.initd,824 bytes, text/plain)
2010-04-01 09:02 UTC, Bernd Wurst
Details
files/sks.confd (sks.confd,195 bytes, text/plain)
2010-04-01 09:02 UTC, Bernd Wurst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Wieseler 2008-12-10 23:44:10 UTC
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
Comment 1 Sebastian Wieseler 2008-12-11 08:02:55 UTC
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.
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2008-12-15 09:12:57 UTC
(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
Comment 3 Sebastian Wieseler 2008-12-18 22:50:30 UTC
Created attachment 175814 [details, diff]
rework of dependencies and src_install
Comment 4 Sebastian Wieseler 2008-12-18 22:52:15 UTC
Created attachment 175815 [details]
init script for sks

Tried to write an init script...
Comment 5 Serkan Kaba (RETIRED) gentoo-dev 2008-12-19 05:19:01 UTC
(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
Comment 6 Sebastian Wieseler 2008-12-31 14:48:36 UTC
Created attachment 176959 [details, diff]
s/killall/pidfile/

This fixes the killall command -- uses pidfile instead.
Comment 7 Bernd Wurst 2010-03-30 13:29:44 UTC
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
Comment 8 Bernd Wurst 2010-04-01 09:02:02 UTC
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.
Comment 9 Bernd Wurst 2010-04-01 09:02:28 UTC
Created attachment 226079 [details]
files/sks.initd
Comment 10 Bernd Wurst 2010-04-01 09:02:45 UTC
Created attachment 226081 [details]
files/sks.confd
Comment 11 Hanno Böck gentoo-dev 2010-04-01 12:53:08 UTC
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.
Comment 12 Manuel Rüger (RETIRED) gentoo-dev 2014-05-20 20:34:16 UTC
* 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