All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ftplib: add initial version of recipe
@ 2011-12-10 20:10 Vitaly Perov
  2011-12-10 21:22 ` Paul Menzel
  0 siblings, 1 reply; 3+ messages in thread
From: Vitaly Perov @ 2011-12-10 20:10 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Vitaly Perov

From: Vitaly Perov <vit@vt-tech.eu>

---
 recipes/ftplib/ftplib_3.1.bb |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ftplib/ftplib_3.1.bb

diff --git a/recipes/ftplib/ftplib_3.1.bb b/recipes/ftplib/ftplib_3.1.bb
new file mode 100644
index 0000000..1dcdb3d
--- /dev/null
+++ b/recipes/ftplib/ftplib_3.1.bb
@@ -0,0 +1,38 @@
+#! /bin/sh
+
+DESCRIPTION = "A set of routines that implement the FTP protocol"
+HOMEPAGE = "http://nbpfaus.net/~pfau/ftplib/"
+LICENSE = "LGPLv2"
+
+PR = "r1"
+
+######################################################################################
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+SRC_URI = "http://nbpfaus.net/~pfau/ftplib/ftplib-${PV}-src.tar.gz"
+
+S = "${WORKDIR}/ftplib-${PV}"
+
+######################################################################################
+
+SRC_URI[md5sum] = "c6af758ccbf806b28f022a587a41d9c5"
+SRC_URI[sha256sum] = "be524e1086cfe9d86afa832e1413dde79a4e88ee8ea5325a87ffaaf6620a0a2b"
+
+######################################################################################
+do_compile() {
+    cd linux && make
+}
+
+do_install() {
+    install -d ${D}/${libdir}
+    install -d ${D}/${includedir}
+    install -d ${D}/${bindir}
+    install -m 755 ${S}/linux/libftp.so.3.1 ${D}/${libdir}
+    install -m 755 ${S}/linux/libftp.a ${D}/${libdir}
+    install -m 644 ${S}/linux/ftplib.h ${D}/${includedir}
+    install -m 755 ${S}/linux/qftp ${D}/${bindir}
+    (cd ${D}/${libdir} && \
+     ln -sf libftp.so.3.1 libftp.so.3 && \
+     ln -sf libftp.so.3 libftp.so)
+}
-- 
1.7.6




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ftplib: add initial version of recipe
  2011-12-10 20:10 [PATCH] ftplib: add initial version of recipe Vitaly Perov
@ 2011-12-10 21:22 ` Paul Menzel
  2011-12-11  4:50   ` Vit
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Menzel @ 2011-12-10 21:22 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 3001 bytes --]

Dear Vitaly,


thank you for your patch.

Am Sonntag, den 11.12.2011, 00:10 +0400 schrieb Vitaly Perov:
> From: Vitaly Perov <vit@vt-tech.eu>

Please add the recipe version to the commit summary (subject) and follow
our commit policy [1][2][3].

Especially your Signed-off-by line is missing. Please also add
information how you tested that recipe.

> ---
>  recipes/ftplib/ftplib_3.1.bb |   38 ++++++++++++++++++++++++++++++++++++++
>  1 files changed, 38 insertions(+), 0 deletions(-)
>  create mode 100644 recipes/ftplib/ftplib_3.1.bb
> 
> diff --git a/recipes/ftplib/ftplib_3.1.bb b/recipes/ftplib/ftplib_3.1.bb
> new file mode 100644
> index 0000000..1dcdb3d
> --- /dev/null
> +++ b/recipes/ftplib/ftplib_3.1.bb
> @@ -0,0 +1,38 @@
> +#! /bin/sh
> +

The shebang is not needed.

> +DESCRIPTION = "A set of routines that implement the FTP protocol"
> +HOMEPAGE = "http://nbpfaus.net/~pfau/ftplib/"
> +LICENSE = "LGPLv2"
> +
> +PR = "r1"

Please start with `r0` when submitting.

> +
> +######################################################################################

Please remove these “style” lines. They are not common. [4]

> +
> +TARGET_CC_ARCH += "${LDFLAGS}"

Why is that needed. Please add a comment and explain it in the commit
message.

> +
> +SRC_URI = "http://nbpfaus.net/~pfau/ftplib/ftplib-${PV}-src.tar.gz"

Can you talk with upstream, that they release versioned tarballs
otherwise that will become a mess when upgraded.

> +
> +S = "${WORKDIR}/ftplib-${PV}"
> +
> +######################################################################################
> +
> +SRC_URI[md5sum] = "c6af758ccbf806b28f022a587a41d9c5"
> +SRC_URI[sha256sum] = "be524e1086cfe9d86afa832e1413dde79a4e88ee8ea5325a87ffaaf6620a0a2b"
> +
> +######################################################################################
> +do_compile() {
> +    cd linux && make

Are you sure that works? At least `oe-runmake` should be used. This way
you should get not the correct target architecture since the build host
make is used. (I could be mistaken and maybe the Makefile figures it out
nevertheless.)

> +}
> +
> +do_install() {
> +    install -d ${D}/${libdir}
> +    install -d ${D}/${includedir}
> +    install -d ${D}/${bindir}
> +    install -m 755 ${S}/linux/libftp.so.3.1 ${D}/${libdir}
> +    install -m 755 ${S}/linux/libftp.a ${D}/${libdir}
> +    install -m 644 ${S}/linux/ftplib.h ${D}/${includedir}
> +    install -m 755 ${S}/linux/qftp ${D}/${bindir}
> +    (cd ${D}/${libdir} && \
> +     ln -sf libftp.so.3.1 libftp.so.3 && \
> +     ln -sf libftp.so.3 libftp.so)
> +}

I do not know if the last three lines are common. But if it works,
great!


Thanks,

Paul


[1] http://www.openembedded.org/wiki/Category:Policy
[2] http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
[3] http://www.openembedded.org/wiki/Commit_Policy
[4] http://www.openembedded.org/wiki/Styleguide

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ftplib: add initial version of recipe
  2011-12-10 21:22 ` Paul Menzel
@ 2011-12-11  4:50   ` Vit
  0 siblings, 0 replies; 3+ messages in thread
From: Vit @ 2011-12-11  4:50 UTC (permalink / raw)
  To: openembedded-devel

Dear Paul,

Thank you very much for your comments.


On Sun, Dec 11, 2011 at 1:22 AM, Paul Menzel
<paulepanter@users.sourceforge.net> wrote:
> Dear Vitaly,
>
>
> thank you for your patch.
>
> Am Sonntag, den 11.12.2011, 00:10 +0400 schrieb Vitaly Perov:
>> From: Vitaly Perov <vit@vt-tech.eu>
>
> Please add the recipe version to the commit summary (subject) and follow
> our commit policy [1][2][3].
>
> Especially your Signed-off-by line is missing. Please also add
> information how you tested that recipe.
>
>> ---
>>  recipes/ftplib/ftplib_3.1.bb |   38 ++++++++++++++++++++++++++++++++++++++
>>  1 files changed, 38 insertions(+), 0 deletions(-)
>>  create mode 100644 recipes/ftplib/ftplib_3.1.bb
>>
>> diff --git a/recipes/ftplib/ftplib_3.1.bb b/recipes/ftplib/ftplib_3.1.bb
>> new file mode 100644
>> index 0000000..1dcdb3d
>> --- /dev/null
>> +++ b/recipes/ftplib/ftplib_3.1.bb
>> @@ -0,0 +1,38 @@
>> +#! /bin/sh
>> +
>
> The shebang is not needed.
>
>> +DESCRIPTION = "A set of routines that implement the FTP protocol"
>> +HOMEPAGE = "http://nbpfaus.net/~pfau/ftplib/"
>> +LICENSE = "LGPLv2"
>> +
>> +PR = "r1"
>
> Please start with `r0` when submitting.
>
>> +
>> +######################################################################################
>
> Please remove these “style” lines. They are not common. [4]
>
>> +
>> +TARGET_CC_ARCH += "${LDFLAGS}"
>
> Why is that needed. Please add a comment and explain it in the commit
> message.
>
>> +
>> +SRC_URI = "http://nbpfaus.net/~pfau/ftplib/ftplib-${PV}-src.tar.gz"
>
> Can you talk with upstream, that they release versioned tarballs
> otherwise that will become a mess when upgraded.
>
>> +
>> +S = "${WORKDIR}/ftplib-${PV}"
>> +
>> +######################################################################################
>> +
>> +SRC_URI[md5sum] = "c6af758ccbf806b28f022a587a41d9c5"
>> +SRC_URI[sha256sum] = "be524e1086cfe9d86afa832e1413dde79a4e88ee8ea5325a87ffaaf6620a0a2b"
>> +
>> +######################################################################################
>> +do_compile() {
>> +    cd linux && make
>
> Are you sure that works? At least `oe-runmake` should be used. This way
> you should get not the correct target architecture since the build host
> make is used. (I could be mistaken and maybe the Makefile figures it out
> nevertheless.)
>
>> +}
>> +
>> +do_install() {
>> +    install -d ${D}/${libdir}
>> +    install -d ${D}/${includedir}
>> +    install -d ${D}/${bindir}
>> +    install -m 755 ${S}/linux/libftp.so.3.1 ${D}/${libdir}
>> +    install -m 755 ${S}/linux/libftp.a ${D}/${libdir}
>> +    install -m 644 ${S}/linux/ftplib.h ${D}/${includedir}
>> +    install -m 755 ${S}/linux/qftp ${D}/${bindir}
>> +    (cd ${D}/${libdir} && \
>> +     ln -sf libftp.so.3.1 libftp.so.3 && \
>> +     ln -sf libftp.so.3 libftp.so)
>> +}
>
> I do not know if the last three lines are common. But if it works,
> great!
>
>
> Thanks,
>
> Paul
>
>
> [1] http://www.openembedded.org/wiki/Category:Policy
> [2] http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> [3] http://www.openembedded.org/wiki/Commit_Policy
> [4] http://www.openembedded.org/wiki/Styleguide
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-11  4:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-10 20:10 [PATCH] ftplib: add initial version of recipe Vitaly Perov
2011-12-10 21:22 ` Paul Menzel
2011-12-11  4:50   ` Vit

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.