diff options
Diffstat (limited to 'recipes-networking/netns')
-rw-r--r-- | recipes-networking/netns/netns_git.bb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/recipes-networking/netns/netns_git.bb b/recipes-networking/netns/netns_git.bb index 641d55fc..8e771f5b 100644 --- a/recipes-networking/netns/netns_git.bb +++ b/recipes-networking/netns/netns_git.bb | |||
@@ -1,11 +1,12 @@ | |||
1 | HOMEPAGE = "https://github.com/jfrazelle/netns" | 1 | HOMEPAGE = "https://github.com/jfrazelle/netns" |
2 | SUMMARY = "Runc hook for setting up default bridge networking." | 2 | SUMMARY = "Runc hook for setting up default bridge networking." |
3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=20ce4c6a4f32d6ee4a68e3a7506db3f1" | 4 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=20ce4c6a4f32d6ee4a68e3a7506db3f1" |
5 | 5 | ||
6 | SRC_URI = "git://github.com/jessfraz/netns;branch=master" | 6 | SRC_URI = "git://github.com/jessfraz/netns;branch=master" |
7 | SRCREV = "85b1ab9fcccbaa404a2636b52a48bbde02437cf7" | 7 | SRCREV = "85b1ab9fcccbaa404a2636b52a48bbde02437cf7" |
8 | PV = "0.1.0+git${SRCPV}" | 8 | PV = "0.1.0+git${SRCPV}" |
9 | GO_IMPORT = "import" | ||
9 | 10 | ||
10 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
11 | 12 | ||
@@ -22,10 +23,10 @@ do_compile() { | |||
22 | # | 23 | # |
23 | # We also need to link in the ipallocator directory as that is not under | 24 | # We also need to link in the ipallocator directory as that is not under |
24 | # a src directory. | 25 | # a src directory. |
25 | ln -sfn . "${S}/vendor/src" | 26 | ln -sfn . "${S}/src/import/vendor/src" |
26 | mkdir -p "${S}/vendor/src/github.com/jessfraz/netns" | 27 | mkdir -p "${S}/src/import/vendor/src/github.com/jessfraz/netns" |
27 | ln -sfn "${S}/ipallocator" "${S}/vendor/src/github.com/jessfraz/netns/ipallocator" | 28 | ln -sfn "${S}/src/import/ipallocator" "${S}/src/import/vendor/src/github.com/jessfraz/netns/ipallocator" |
28 | export GOPATH="${S}/vendor" | 29 | export GOPATH="${S}/src/import/vendor" |
29 | 30 | ||
30 | # Pass the needed cflags/ldflags so that cgo | 31 | # Pass the needed cflags/ldflags so that cgo |
31 | # can find the needed headers files and libraries | 32 | # can find the needed headers files and libraries |
@@ -35,10 +36,11 @@ do_compile() { | |||
35 | export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}" | 36 | export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}" |
36 | export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" | 37 | export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" |
37 | 38 | ||
39 | cd ${S}/src/import | ||
38 | oe_runmake static | 40 | oe_runmake static |
39 | } | 41 | } |
40 | 42 | ||
41 | do_install() { | 43 | do_install() { |
42 | install -d ${D}/${sbindir} | 44 | install -d ${D}/${sbindir} |
43 | install ${S}/netns ${D}/${sbindir}/netns | 45 | install ${S}/src/import/netns ${D}/${sbindir}/netns |
44 | } | 46 | } |