Page MenuHomeFreeBSD

OpenIKED-1.0
ClosedPublic

Authored by marcel on Nov 1 2016, 7:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 6:56 AM
Unknown Object (File)
Fri, Nov 29, 6:56 AM
Unknown Object (File)
Fri, Nov 29, 6:56 AM
Unknown Object (File)
Fri, Nov 29, 6:56 AM
Unknown Object (File)
Fri, Nov 29, 6:56 AM
Unknown Object (File)
Fri, Nov 29, 6:56 AM
Unknown Object (File)
Fri, Nov 29, 6:56 AM
Unknown Object (File)
Fri, Nov 29, 6:44 AM
Subscribers

Details

Summary

Create new port for xcllnt's OpenIKED-1.0

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

marcel retitled this revision from to OpenIKED-1.0.
marcel updated this object.
marcel edited the test plan for this revision. (Show Details)
marcel added a reviewer: Ports Committers.
marcel set the repository for this revision to rP FreeBSD ports repository.

We can't use the required_files variable given that start_precmd creates files mentioned there. Manually check for having the required files in start_precmd.

Could you check if this has a web site, and if yes, add a WWW: line to pkg-descr ?
Could you generate the pkg-plist file with make makeplist ? The lines are out of order.
You seem to be missing USES=libtool, it doesn't pass the configure stage without it.
You seem to be missing USES=ssl.

security/openiked/Makefile
6 ↗(On Diff #21913)

This is not needed.

Incorporate review comments from mat@ (thanks!):

  • Add WWW line to pkg-descr.
  • Use make makeplist to generate pkg-plist. Manually edited to declare sample configuration with @sample
  • Added libtool and ssl to USES
  • Remove MASTER_SITES

If this is supposed to be a commit adding the port, it is missing the edit to security/Makefile hooking up the port to the build.

Could you also install devel/rclint, run it on the rc script and try to fix the errors it gives you ?

security/openiked/Makefile
30–31 ↗(On Diff #21952)

You are using GNU_CONFIGURE here, so maybe those lines could be removed and INSTALL_TARGET=install-strip could be added above.

security/openiked/pkg-plist
11 ↗(On Diff #21952)

In the rc script, I read this one should have a mode of 0700.

In that case, this should read:

​@dir(,,0700) etc/iked/private

but it will only be readable as root, so, maybe something more like

​@dir(%%USER%%,%%GROUP%%,0700) etc/iked/private

and add in the Makefile:

PLIST_SUB= USER=${USERS} GROUP=${GROUPS}

Great review! I very much appreciate your attention to detail!

I'll upload a new diff with the changes you suggested. Both portlint and rclint were used prior to the first submission to make sure the port and RC scripts were clean. I've ran them again for the upcoming submission.

security/openiked/Makefile
30–31 ↗(On Diff #21952)

Thanks for that!

security/openiked/pkg-plist
11 ↗(On Diff #21952)

Good catch!

Yes, the directory should be 0700. However it should remain owned by root. The daemon will read the private key (with EUID root) before lowering permissions (EUID _iked).

Incorporate review comments from Mathieu.

Changed all @dir entries to have explicit permissions for readability and just being explicit. But in particular fix the etc/iked/private entry to have mods 700. Note that the directories have to be owned by root/wheel.

security/openiked/pkg-plist
8–15 ↗(On Diff #21981)

You do not need to put 755, it is the default.

Is there anything that needs to be done, except committing this?
If finding a committer is a challenge, then I can do i myself.

mat added a reviewer: mat.

Please commit.

This revision is now accepted and ready to land.Nov 10 2016, 9:16 AM
This revision was automatically updated to reflect the committed changes.