Skip to contentSkip to conversation

rfkill: new package

PATCH Superseded Viacheslav Volkov 3 participants 5 messages Oct 27, 2015

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 rfkill: new package

Add rfkill package.

---
Changes v2 -> v3:
- wrapp comment to 72 characters length (suggested by Vincent.Riera at imgtec.com)

Changes v1 -> v2:
- correct Config.in (suggested by Vincent.Riera at imgtec.com)
- correct rfkill.mk

 package/Config.in          |  1 +
 package/rfkill/Config.in   |  7 +++++++
 package/rfkill/rfkill.hash |  2 ++
 package/rfkill/rfkill.mk   | 20 ++++++++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/rfkill/Config.in
 create mode 100644 package/rfkill/rfkill.hash
 create mode 100644 package/rfkill/rfkill.mk
package/Config.in +1 -0
index 10ff94e..9933514 100644
@@ -403,6 +403,7 @@ endif
 	source "package/pps-tools/Config.in"
 	source "package/pulseview/Config.in"
 	source "package/read-edid/Config.in"
+	source "package/rfkill/Config.in"
 	source "package/rng-tools/Config.in"
 	source "package/rpi-userland/Config.in"
 	source "package/rtl8188eu/Config.in"
package/rfkill/Config.in new file +7 -0
new file mode 100644
index 0000000..3cb7c18
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RFKILL
+	bool "rfkill"
+	help
+	  rfkill is a small userspace tool to query the state of the 
+	  rfkill switches.
+
+	  https://wireless.wiki.kernel.org/en/users/documentation/rfkill/
package/rfkill/rfkill.hash new file +2 -0
new file mode 100644
index 0000000..21be0a2
@@ -0,0 +1,2 @@
+# From: https://www.kernel.org/pub/software/network/rfkill/sha256sums.asc
+sha256	e0ae3004215e39a6c5c36e0726558740728d16f67ebdb8bea621250f6091d86a  rfkill-0.5.tar.xz
package/rfkill/rfkill.mk new file +20 -0
new file mode 100644
index 0000000..b377c03
@@ -0,0 +1,20 @@
+################################################################################
+#
+# rfkill
+#
+################################################################################
+
+RFKILL_VERSION = 0.5
+RFKILL_SOURCE = rfkill-$(RFKILL_VERSION).tar.xz
+RFKILL_SITE = https://www.kernel.org/pub/software/network/rfkill
+
+define RFKILL_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+		VERSION_SUFFIX="-br"
+endef
+
+define RFKILL_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 755 $(@D)/rfkill $(TARGET_DIR)/usr/bin/rfkill
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.6.1
#1 lore raw

PATCH v3 1/1 rfkill: new package

Viacheslav, All,

Thanks for this new iteration.

However, there are still a few issues with it, see below...

On 2015-10-27 17:55 +0300, Viacheslav Volkov spake thusly:

Quoted 3 lines

Add rfkill package.

[--SNIP--]

package/rfkill/Config.in line 4

Quoted 10 lines
package/rfkill/Config.in new file +4 -0
new file mode 100644
index 0000000..3cb7c18
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RFKILL
+	bool "rfkill"
+	help
+	  rfkill is a small userspace tool to query the state of the 

Trailing space.

package/rfkill/Config.in line 7

Quoted 3 lines
package/rfkill/Config.in new file +3 -0
+	  rfkill switches.
+
+	  https://wireless.wiki.kernel.org/en/users/documentation/rfkill/

That help text is much better. Thanks! :-)

However, the trailing slash in the URL should be removed (it's a WiKi page).

Quoted 14 lines
package/rfkill/rfkill.hash new file +2 -0
new file mode 100644
index 0000000..21be0a2
@@ -0,0 +1,2 @@
+# From: https://www.kernel.org/pub/software/network/rfkill/sha256sums.asc
+sha256	e0ae3004215e39a6c5c36e0726558740728d16f67ebdb8bea621250f6091d86a  rfkill-0.5.tar.xz
package/rfkill/rfkill.mk new file +0 -0
new file mode 100644
index 0000000..b377c03

package/rfkill/rfkill.mk line 9

Quoted 9 lines
package/rfkill/rfkill.mk new file +9 -0
@@ -0,0 +1,20 @@
+################################################################################
+#
+# rfkill
+#
+################################################################################
+
+RFKILL_VERSION = 0.5
+RFKILL_SOURCE = rfkill-$(RFKILL_VERSION).tar.xz
+RFKILL_SITE = https://www.kernel.org/pub/software/network/rfkill

Missing legal info. You must provide the license and the license files, like so;

RFKILL_LICENSE = blablabla RFKILL_LICENSE_FILES = relative/path/to/license-file(s)

(note: the paths are relative to the top-directory of the package source tree.)

package/rfkill/rfkill.mk line 18

Quoted 8 lines
package/rfkill/rfkill.mk new file +8 -0
+define RFKILL_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+		VERSION_SUFFIX="-br"
+endef
+
+define RFKILL_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 755 $(@D)/rfkill $(TARGET_DIR)/usr/bin/rfkill
+endef

Why don't you simply use:

    $(MAKE) DESTDIR=$(TARGET_DIR) install

It does basically the same install as your do, so I'd prefer we use the package provided install method, in case it changes when we later bump it.

You may also have noticed that it also installs the manpage, which we indeed o not want on the target, but Buildroot will clean it up anyway, so that's not too much of a concern.

Care to fix and resend, please?

(Note: wait a bit before you respin, in case someone else wants to provide more comments.)

Thanks! :-)

Regards,
Yann E. MORIN.

Quoted 8 lines
package/rfkill/rfkill.mk new file +1 -0
+$(eval $(generic-package))
Signature · 6 lines
2.6.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH v3 1/1 rfkill: new package

Exists questions with license information.

In the distributions exists file COPYING:

Copyright 2009 Johannes Berg <[email protected]> Copyright 2009 Marcel Holtmann <[email protected]> Copyright 2009 Tim Gardner <[email protected]>

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

RFKILL_LICENSE_FILES =
RFKILL_LICENSE = ?? icence not set ?

Thanks!

27.10.15 18:25, Yann E. MORIN ?????:

Quoted 101 lines

Viacheslav, All,

Thanks for this new iteration.

However, there are still a few issues with it, see below...

On 2015-10-27 17:55 +0300, Viacheslav Volkov spake thusly:

Quoted 3 lines

Add rfkill package.

[--SNIP--]

package/rfkill/Config.in line 4

Quoted 10 lines
package/rfkill/Config.in new file +4 -0
new file mode 100644
index 0000000..3cb7c18
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RFKILL
+	bool "rfkill"
+	help
+	  rfkill is a small userspace tool to query the state of the 

Trailing space.

package/rfkill/Config.in line 7

Quoted 3 lines
package/rfkill/Config.in new file +3 -0
+	  rfkill switches.
+
+	  https://wireless.wiki.kernel.org/en/users/documentation/rfkill/

That help text is much better. Thanks! :-)

However, the trailing slash in the URL should be removed (it's a WiKi page).

Quoted 14 lines
package/rfkill/rfkill.hash new file +2 -0
new file mode 100644
index 0000000..21be0a2
@@ -0,0 +1,2 @@
+# From: https://www.kernel.org/pub/software/network/rfkill/sha256sums.asc
+sha256	e0ae3004215e39a6c5c36e0726558740728d16f67ebdb8bea621250f6091d86a  rfkill-0.5.tar.xz
package/rfkill/rfkill.mk new file +0 -0
new file mode 100644
index 0000000..b377c03

package/rfkill/rfkill.mk line 9

Quoted 9 lines
package/rfkill/rfkill.mk new file +9 -0
@@ -0,0 +1,20 @@
+################################################################################
+#
+# rfkill
+#
+################################################################################
+
+RFKILL_VERSION = 0.5
+RFKILL_SOURCE = rfkill-$(RFKILL_VERSION).tar.xz
+RFKILL_SITE = https://www.kernel.org/pub/software/network/rfkill

Missing legal info. You must provide the license and the license files, like so;

RFKILL_LICENSE = blablabla RFKILL_LICENSE_FILES = relative/path/to/license-file(s)

(note: the paths are relative to the top-directory of the package source tree.)

package/rfkill/rfkill.mk line 18

Quoted 8 lines
package/rfkill/rfkill.mk new file +8 -0
+define RFKILL_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+		VERSION_SUFFIX="-br"
+endef
+
+define RFKILL_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 755 $(@D)/rfkill $(TARGET_DIR)/usr/bin/rfkill
+endef

Why don't you simply use:

    $(MAKE) DESTDIR=$(TARGET_DIR) install

It does basically the same install as your do, so I'd prefer we use the package provided install method, in case it changes when we later bump it.

You may also have noticed that it also installs the manpage, which we indeed o not want on the target, but Buildroot will clean it up anyway, so that's not too much of a concern.

Care to fix and resend, please?

(Note: wait a bit before you respin, in case someone else wants to provide more comments.)

Thanks! :-)

Regards,
Yann E. MORIN.

Quoted 8 lines
package/rfkill/rfkill.mk new file +1 -0
+$(eval $(generic-package))
Signature · 6 lines
2.6.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
#3 lore raw

PATCH v3 1/1 rfkill: new package

Viacheslav, All,

On 2015-10-27 20:02 +0300, Viacheslav Volkov spake thusly:

Quoted 12 lines

Exists questions with license information.

In the distributions exists file COPYING:

Copyright 2009 Johannes Berg <[email protected]> Copyright 2009 Marcel Holtmann <[email protected]> Copyright 2009 Tim Gardner <[email protected]>

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

Quoted 7 lines

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Indeed, this is not a traditional license. It is not BSD (not even 0BSD), it is not MIT... I could not find it in the SPDX list;
https://spdx.org/licenses/

However, it is very close to 0BSD...

Quoted 2 lines

RFKILL_LICENSE_FILES =
RFKILL_LICENSE = ?? icence not set ?

In this case, I'd write:

RFKILL_LICENSE = BSD-like
RFKILL_LICENSE_FILE = COPYING

Regards,
Yann E. MORIN.

Quoted 103 lines

27.10.15 18:25, Yann E. MORIN ?????:

Quoted 101 lines

Viacheslav, All,

Thanks for this new iteration.

However, there are still a few issues with it, see below...

On 2015-10-27 17:55 +0300, Viacheslav Volkov spake thusly:

Quoted 3 lines

Add rfkill package.

[--SNIP--]

package/rfkill/Config.in line 4

Quoted 10 lines
package/rfkill/Config.in new file +4 -0
new file mode 100644
index 0000000..3cb7c18
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RFKILL
+	bool "rfkill"
+	help
+	  rfkill is a small userspace tool to query the state of the 

Trailing space.

package/rfkill/Config.in line 7

Quoted 3 lines
package/rfkill/Config.in new file +3 -0
+	  rfkill switches.
+
+	  https://wireless.wiki.kernel.org/en/users/documentation/rfkill/

That help text is much better. Thanks! :-)

However, the trailing slash in the URL should be removed (it's a WiKi page).

Quoted 14 lines
package/rfkill/rfkill.hash new file +2 -0
new file mode 100644
index 0000000..21be0a2
@@ -0,0 +1,2 @@
+# From: https://www.kernel.org/pub/software/network/rfkill/sha256sums.asc
+sha256	e0ae3004215e39a6c5c36e0726558740728d16f67ebdb8bea621250f6091d86a  rfkill-0.5.tar.xz
package/rfkill/rfkill.mk new file +0 -0
new file mode 100644
index 0000000..b377c03

package/rfkill/rfkill.mk line 9

Quoted 9 lines
package/rfkill/rfkill.mk new file +9 -0
@@ -0,0 +1,20 @@
+################################################################################
+#
+# rfkill
+#
+################################################################################
+
+RFKILL_VERSION = 0.5
+RFKILL_SOURCE = rfkill-$(RFKILL_VERSION).tar.xz
+RFKILL_SITE = https://www.kernel.org/pub/software/network/rfkill

Missing legal info. You must provide the license and the license files, like so;

RFKILL_LICENSE = blablabla RFKILL_LICENSE_FILES = relative/path/to/license-file(s)

(note: the paths are relative to the top-directory of the package source tree.)

package/rfkill/rfkill.mk line 18

Quoted 8 lines
package/rfkill/rfkill.mk new file +8 -0
+define RFKILL_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+		VERSION_SUFFIX="-br"
+endef
+
+define RFKILL_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 755 $(@D)/rfkill $(TARGET_DIR)/usr/bin/rfkill
+endef

Why don't you simply use:

    $(MAKE) DESTDIR=$(TARGET_DIR) install

It does basically the same install as your do, so I'd prefer we use the package provided install method, in case it changes when we later bump it.

You may also have noticed that it also installs the manpage, which we indeed o not want on the target, but Buildroot will clean it up anyway, so that's not too much of a concern.

Care to fix and resend, please?

(Note: wait a bit before you respin, in case someone else wants to provide more comments.)

Thanks! :-)

Regards,
Yann E. MORIN.

Quoted 8 lines
package/rfkill/rfkill.mk new file +1 -0
+$(eval $(generic-package))
Signature · 6 lines
2.6.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#4 lore raw

PATCH v3 1/1 rfkill: new package

In reply to Viacheslav Volkov
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Viacheslav" == Viacheslav Volkov <[email protected]> writes:

Exists questions with license information.
In the distributions exists file COPYING:

Copyright 2009 Johannes Berg <[email protected]> Copyright 2009 Marcel Holtmann <[email protected]> Copyright 2009 Tim Gardner <[email protected]>

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

Quoted 7 lines

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

That is the ISC license:

https://opensource.org/licenses/ISC

So:

RFKILL_LICENSE = ISC
RFKILL_LICENSE_FILES = COPYING

Signature · 1 line
Bye, Peter Korsgaard