* [PATCH 09/11] pathfinder: Added pathfinder (X.509 path verification)
@ 2010-11-06 17:32 Camille Moncelier
2010-11-16 23:49 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Camille Moncelier @ 2010-11-06 17:32 UTC (permalink / raw)
To: openembedded-devel; +Cc: Camille Moncelier
* PathFinder is designed to provide a mechanism for any program to
perform RFC3280-compliant path validation of X509 certificates, even
when some of the intermediate certificates are not present on the
local machine.
* pathfinder can be used with opkg to provide verification of remote
ssl certificates
---
recipes/pathfinder/files/pathfinderd.conf | 21 +++++++++++++++++++
recipes/pathfinder/files/pathfinderd.init | 32 +++++++++++++++++++++++++++++
recipes/pathfinder/pathfinder.inc | 22 +++++++++++++++++++
recipes/pathfinder/pathfinder_1.1.3.bb | 11 ++++++++++
recipes/pathfinder/pathfinder_svn.bb | 11 ++++++++++
5 files changed, 97 insertions(+), 0 deletions(-)
create mode 100644 recipes/pathfinder/files/pathfinderd.conf
create mode 100644 recipes/pathfinder/files/pathfinderd.init
create mode 100644 recipes/pathfinder/pathfinder.inc
create mode 100644 recipes/pathfinder/pathfinder_1.1.3.bb
create mode 100644 recipes/pathfinder/pathfinder_svn.bb
diff --git a/recipes/pathfinder/files/pathfinderd.conf b/recipes/pathfinder/files/pathfinderd.conf
new file mode 100644
index 0000000..9c285a8
--- /dev/null
+++ b/recipes/pathfinder/files/pathfinderd.conf
@@ -0,0 +1,21 @@
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy user="root">
+ <allow own="ca.carillon.pathfinder"/>
+ <allow send_destination="ca.carillon.pathfinder"/>
+ </policy>
+
+ <!--
+ <policy user="pathfinderd">
+ <allow own="ca.carillon.pathfinder"/>
+ <allow send_destination="ca.carillon.pathfinder"/>
+ </policy>
+ -->
+
+ <policy context="default">
+ <deny own="ca.carillon.pathfinder"/>
+ <allow send_destination="ca.carillon.pathfinder"/>
+ </policy>
+</busconfig>
diff --git a/recipes/pathfinder/files/pathfinderd.init b/recipes/pathfinder/files/pathfinderd.init
new file mode 100644
index 0000000..a20b4c1
--- /dev/null
+++ b/recipes/pathfinder/files/pathfinderd.init
@@ -0,0 +1,32 @@
+#!/bin/sh
+DAEMON=/usr/sbin/pathfinderd
+NAME=pathfinderd
+DESC="pathfinderd: X509 Path Verification Daemon"
+PIDFILE=/var/run/pathfinderd/pathfinderd.pid
+ARGS="-d"
+
+test -f $DAEMON || exit 0
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: $NAME"
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $ARGS
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: $NAME"
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
+ echo "."
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/recipes/pathfinder/pathfinder.inc b/recipes/pathfinder/pathfinder.inc
new file mode 100644
index 0000000..ce1d832
--- /dev/null
+++ b/recipes/pathfinder/pathfinder.inc
@@ -0,0 +1,22 @@
+DESCRIPTION = "A tool to perform RFC3280-compliant path validation of X509 certificates"
+
+LICENSE = "LGPL"
+DEPENDS = "wvstreams openldap boost"
+RDEPENDS = "dbus"
+HOMEPAGE = "http://code.google.com/p/pathfinder-pki/"
+
+INC_PR = "0"
+
+inherit cmake pkgconfig update-rc.d
+
+INITSCRIPT_NAME = "pathfinderd"
+INITSCRIPT_PARAMS = "defaults"
+
+do_install_append() {
+ install -d ${D}/${sysconfdir}/init.d/
+ install -m 755 "${WORKDIR}/pathfinderd.init" "${D}/etc/init.d/pathfinderd"
+
+ install -d ${D}/${sysconfdir}/dbus-1/system.d/
+ install ${WORKDIR}/pathfinderd.conf ${D}/${sysconfdir}/dbus-1/system.d/
+
+}
diff --git a/recipes/pathfinder/pathfinder_1.1.3.bb b/recipes/pathfinder/pathfinder_1.1.3.bb
new file mode 100644
index 0000000..ab8aa65
--- /dev/null
+++ b/recipes/pathfinder/pathfinder_1.1.3.bb
@@ -0,0 +1,11 @@
+require pathfinder.inc
+
+SRC_URI = "http://pathfinder-pki.googlecode.com/files/${PN}-${PV}-Source.tar.gz \
+ file://pathfinderd.init \
+ file://pathfinderd.conf \
+"
+
+PR = "${INC_PR}.1"
+
+SRC_URI[md5sum] = "6985ea14da6dff30c3c4e5cfc8b3d0f7"
+SRC_URI[sha256sum] = "a81b09a306aa997980d76f2b6e9215e7b3a91ed4c5fb413b3c4d30513a5e1031"
diff --git a/recipes/pathfinder/pathfinder_svn.bb b/recipes/pathfinder/pathfinder_svn.bb
new file mode 100644
index 0000000..f17943e
--- /dev/null
+++ b/recipes/pathfinder/pathfinder_svn.bb
@@ -0,0 +1,11 @@
+require pathfinder.inc
+
+SRC_URI = "svn://pathfinder-pki.googlecode.com/svn/trunk;module=pathfinder;proto=http \
+ file://pathfinderd.init \
+ file://pathfinderd.conf \
+"
+
+SRCREV = "224"
+PV = "1.1.3+svnr${SRCPV}"
+PR = "${INC_PR}.0"
+S = "${WORKDIR}/${PN}"
--
1.7.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 09/11] pathfinder: Added pathfinder (X.509 path verification)
2010-11-06 17:32 [PATCH 09/11] pathfinder: Added pathfinder (X.509 path verification) Camille Moncelier
@ 2010-11-16 23:49 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2010-11-16 23:49 UTC (permalink / raw)
To: openembedded-devel; +Cc: Camille Moncelier
On Sat, Nov 6, 2010 at 10:32 AM, Camille Moncelier
<moncelier@devlife.org> wrote:
> * PathFinder is designed to provide a mechanism for any program to
> perform RFC3280-compliant path validation of X509 certificates, even
> when some of the intermediate certificates are not present on the
> local machine.
>
> * pathfinder can be used with opkg to provide verification of remote
> ssl certificates
> ---
> recipes/pathfinder/files/pathfinderd.conf | 21 +++++++++++++++++++
> recipes/pathfinder/files/pathfinderd.init | 32 +++++++++++++++++++++++++++++
> recipes/pathfinder/pathfinder.inc | 22 +++++++++++++++++++
> recipes/pathfinder/pathfinder_1.1.3.bb | 11 ++++++++++
> recipes/pathfinder/pathfinder_svn.bb | 11 ++++++++++
> 5 files changed, 97 insertions(+), 0 deletions(-)
> create mode 100644 recipes/pathfinder/files/pathfinderd.conf
> create mode 100644 recipes/pathfinder/files/pathfinderd.init
> create mode 100644 recipes/pathfinder/pathfinder.inc
> create mode 100644 recipes/pathfinder/pathfinder_1.1.3.bb
> create mode 100644 recipes/pathfinder/pathfinder_svn.bb
>
> diff --git a/recipes/pathfinder/files/pathfinderd.conf b/recipes/pathfinder/files/pathfinderd.conf
> new file mode 100644
> index 0000000..9c285a8
> --- /dev/null
> +++ b/recipes/pathfinder/files/pathfinderd.conf
> @@ -0,0 +1,21 @@
> +<!DOCTYPE busconfig PUBLIC
> + "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
> + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
> +<busconfig>
> + <policy user="root">
> + <allow own="ca.carillon.pathfinder"/>
> + <allow send_destination="ca.carillon.pathfinder"/>
> + </policy>
> +
> + <!--
> + <policy user="pathfinderd">
> + <allow own="ca.carillon.pathfinder"/>
> + <allow send_destination="ca.carillon.pathfinder"/>
> + </policy>
> + -->
> +
> + <policy context="default">
> + <deny own="ca.carillon.pathfinder"/>
> + <allow send_destination="ca.carillon.pathfinder"/>
> + </policy>
> +</busconfig>
> diff --git a/recipes/pathfinder/files/pathfinderd.init b/recipes/pathfinder/files/pathfinderd.init
> new file mode 100644
> index 0000000..a20b4c1
> --- /dev/null
> +++ b/recipes/pathfinder/files/pathfinderd.init
> @@ -0,0 +1,32 @@
> +#!/bin/sh
> +DAEMON=/usr/sbin/pathfinderd
> +NAME=pathfinderd
> +DESC="pathfinderd: X509 Path Verification Daemon"
> +PIDFILE=/var/run/pathfinderd/pathfinderd.pid
> +ARGS="-d"
> +
> +test -f $DAEMON || exit 0
> +
> +case "$1" in
> + start)
> + echo -n "Starting $DESC: $NAME"
> + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $ARGS
> + echo "."
> + ;;
> + stop)
> + echo -n "Stopping $DESC: $NAME"
> + start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
> + echo "."
> + ;;
> + restart)
> + $0 stop
> + sleep 1
> + $0 start
> + ;;
> + *)
> + echo "Usage: $0 {start|stop|restart}"
> + exit 1
> + ;;
> +esac
> +
> +exit 0
> diff --git a/recipes/pathfinder/pathfinder.inc b/recipes/pathfinder/pathfinder.inc
> new file mode 100644
> index 0000000..ce1d832
> --- /dev/null
> +++ b/recipes/pathfinder/pathfinder.inc
> @@ -0,0 +1,22 @@
> +DESCRIPTION = "A tool to perform RFC3280-compliant path validation of X509 certificates"
> +
> +LICENSE = "LGPL"
version please
> +DEPENDS = "wvstreams openldap boost"
> +RDEPENDS = "dbus"
> +HOMEPAGE = "http://code.google.com/p/pathfinder-pki/"
> +
> +INC_PR = "0"
should be r0
> +
> +inherit cmake pkgconfig update-rc.d
> +
> +INITSCRIPT_NAME = "pathfinderd"
> +INITSCRIPT_PARAMS = "defaults"
> +
> +do_install_append() {
> + install -d ${D}/${sysconfdir}/init.d/
> + install -m 755 "${WORKDIR}/pathfinderd.init" "${D}/etc/init.d/pathfinderd"
> +
> + install -d ${D}/${sysconfdir}/dbus-1/system.d/
> + install ${WORKDIR}/pathfinderd.conf ${D}/${sysconfdir}/dbus-1/system.d/
> +
> +}
> diff --git a/recipes/pathfinder/pathfinder_1.1.3.bb b/recipes/pathfinder/pathfinder_1.1.3.bb
> new file mode 100644
> index 0000000..ab8aa65
> --- /dev/null
> +++ b/recipes/pathfinder/pathfinder_1.1.3.bb
> @@ -0,0 +1,11 @@
> +require pathfinder.inc
> +
> +SRC_URI = "http://pathfinder-pki.googlecode.com/files/${PN}-${PV}-Source.tar.gz \
> + file://pathfinderd.init \
> + file://pathfinderd.conf \
> +"
> +
> +PR = "${INC_PR}.1"
> +
> +SRC_URI[md5sum] = "6985ea14da6dff30c3c4e5cfc8b3d0f7"
> +SRC_URI[sha256sum] = "a81b09a306aa997980d76f2b6e9215e7b3a91ed4c5fb413b3c4d30513a5e1031"
> diff --git a/recipes/pathfinder/pathfinder_svn.bb b/recipes/pathfinder/pathfinder_svn.bb
> new file mode 100644
> index 0000000..f17943e
> --- /dev/null
> +++ b/recipes/pathfinder/pathfinder_svn.bb
> @@ -0,0 +1,11 @@
> +require pathfinder.inc
> +
> +SRC_URI = "svn://pathfinder-pki.googlecode.com/svn/trunk;module=pathfinder;proto=http \
> + file://pathfinderd.init \
> + file://pathfinderd.conf \
> +"
> +
> +SRCREV = "224"
> +PV = "1.1.3+svnr${SRCPV}"
> +PR = "${INC_PR}.0"
> +S = "${WORKDIR}/${PN}"
> --
> 1.7.3.1
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-16 23:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-06 17:32 [PATCH 09/11] pathfinder: Added pathfinder (X.509 path verification) Camille Moncelier
2010-11-16 23:49 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.