Skip to contentSkip to conversation

openntpd: Add recipe for building OpenNTPD

PATCH Superseded Sam Nelson 2 participants 2 messages Feb 7, 2014 – Feb 12, 2014

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 openntpd: Add recipe for building OpenNTPD

- OpenNTPD is a open source implementation of Network time protocol

---
 .../recipes-bsp/openntpd/openntpd_3.9p1.bb         |   27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes-bsp/openntpd/openntpd_3.9p1.bb new file +27 -0
new file mode 100755
index 0000000..b4e3402
@@ -0,0 +1,27 @@
+DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation of the \
+Network Time Protocol."
+HOMEPAGE = "http://www.openntpd.org/"
+SECTION = "console/network"
+LICENSE = "BSD ISC"
+LIC_FILES_CHKSUM = "file://LICENCE;md5=4b4f5158007cc97e6b0e2325bb99854a"
+
+DEPENDS += "virtual/kernel"
+PR = "r0"
+
+SRC_URI = "http://mirror.ece.vt.edu/pub/OpenBSD/OpenNTPD/${P}.tar.gz"
+
+S = "${WORKDIR}/openntpd-${PV}"
+EXTRA_OECONF = "--disable-strip"
+inherit autotools
+
+LDFLAGS += "-lrt"
+CFLAGS += "-DTI_ADD_SUPPORT_HW_TIMESTAMPING"
+STAGING_KERNEL_DIR = "${STAGING_DIR}/${MACHINE_ARCH}${TARGET_VENDOR}-${TARGET_OS}/kernel"
+CPPFLAGS = "-I${STAGING_KERNEL_DIR}/include"
+CPPFLAGS += "-I${STAGING_KERNEL_DIR}/arch/arm/include"
+
+EXTRA_OECONF += "CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" \
+                 --with-privsep-user=root --with-privsep-path=/${prefix}"
+
+SRC_URI[md5sum] = "afc34175f38d08867c1403d9008600b3"
+SRC_URI[sha256sum] = "83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49"
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 7 lines · Sam Nelson

- OpenNTPD is a open source implementation of Network time protocol

---
 .../recipes-bsp/openntpd/openntpd_3.9p1.bb         |   27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/openntpd/openntpd_3.9p1.bb

Same comment - recipes-connectivity seems better fit for networking tools/daemons.

Quoted 15 lines
meta-arago-extras/recipes-bsp/openntpd/openntpd_3.9p1.bb new file +9 -0
new file mode 100755
index 0000000..b4e3402
@@ -0,0 +1,27 @@
+DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation of the \
+Network Time Protocol."
+HOMEPAGE = "http://www.openntpd.org/"
+SECTION = "console/network"
+LICENSE = "BSD ISC"
+LIC_FILES_CHKSUM = "file://LICENCE;md5=4b4f5158007cc97e6b0e2325bb99854a"
+
+DEPENDS += "virtual/kernel"
+PR = "r0"

meta-arago-extras/recipes-bsp/openntpd/openntpd_3.9p1.bb line 19

Quoted 10 lines
meta-arago-extras/recipes-bsp/openntpd/openntpd_3.9p1.bb new file +10 -0
+
+SRC_URI = "http://mirror.ece.vt.edu/pub/OpenBSD/OpenNTPD/${P}.tar.gz"
+
+S = "${WORKDIR}/openntpd-${PV}"
+EXTRA_OECONF = "--disable-strip"
+inherit autotools
+
+LDFLAGS += "-lrt"
+CFLAGS += "-DTI_ADD_SUPPORT_HW_TIMESTAMPING"
+STAGING_KERNEL_DIR = "${STAGING_DIR}/${MACHINE_ARCH}${TARGET_VENDOR}-${TARGET_OS}/kernel"

^^^ I don't think the above variable is correct any longer.

Plus, it's already properly defined for you, so why redefine it?

Quoted 15 lines
meta-arago-extras/recipes-bsp/openntpd/openntpd_3.9p1.bb new file +8 -0
+CPPFLAGS = "-I${STAGING_KERNEL_DIR}/include"
+CPPFLAGS += "-I${STAGING_KERNEL_DIR}/arch/arm/include"
+
+EXTRA_OECONF += "CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" \
+                 --with-privsep-user=root --with-privsep-path=/${prefix}"
+
+SRC_URI[md5sum] = "afc34175f38d08867c1403d9008600b3"
+SRC_URI[sha256sum] = "83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49"
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago