bugfix emerge type for slotted packages
Introduce __package_pkgng_freebsd type

Create __package_pkgng_freebsd type to handle package management via pkg-ng
Add requirement generation in __package/manifest
Add explorer inside __package to find if pkg-ng is installed on the target
Minor fixes

Fixed pkgng_exists explorer (can't reference $__global)
Fixed logic in __package/pkgng_freebsd/gencode-remote
   Wasn't installing package if it already exists, but after explorer execution
Implemented telmich's suggestions

Using $($__explorer/os), command -v directly
Fix spacing
Fix copyright year
complete rewrite

- add support for authorized_keys options see sshd(8)
- add support for explicit comment after key
- do not allow a key to exist more then once in an authorized_keys file
- remove all conflicting keys

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
new type to manage a single ssh authorized_key entry

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
fix that stupid stdin is truncated bug again

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
removing and adding keys must be atomic

If we delegate this to multiple seprarate objects (e.g. using __line) and the
config run is interrupted after applying only some of them we may leave the
target in some random state.
We may have even locked ourself out of the target.

So remove and add keys ourself so either none are all changes are
applied.

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
them files should end in newline stupid

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
maybe better define variable _before_ using it

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
++changes

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
workaround special case where the desired key was already present more then once in target file

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
implemented some sugestions from nico
Merge remote-tracking branch 'steven/issue/365'
++changes

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
Merge remote-tracking branch 'jake/__pkgng'
+__package_pkgng_freebsd

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
use mkaurball instead of makepkg

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
Cosmetic
Fix comment