-
Notifications
You must be signed in to change notification settings - Fork 3.8k
mtpoe-ctrl: add new package #24638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
mtpoe-ctrl: add new package #24638
Conversation
5da28e0 to
923f7d6
Compare
| PKG_RELEASE:=18 | ||
|
|
||
| PKG_SOURCE_PROTO:=git | ||
| PKG_SOURCE_URL:=https://github.com/prudy/mtpoe_ctrl.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder, why did you forked the original repository and there isnt anything new.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are changes to adapt for the v4 of the protocol. They are awaiting with th PR to original author repo. Till then it points to my fork.
| PKG_SOURCE_VERSION:=9c42b74274cca10810363dbbb6d161bfb9cedb7e | ||
| PKG_MIRROR_HASH:=1ac2902161ba4bb1e8af397aa48821ccea95740199b1c155f98161c7ff3a93df | ||
| PKG_VERSION:=1.15 | ||
| PKG_RELEASE:=18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 18? Where it comes from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the original version as forked. Then the PKG_VERSION was bumped up to 1.15.
| PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | ||
|
|
||
| PKG_MAINTAINER:=Sergey Sergeev <[email protected]> | ||
| PKG_LICENSE:=GPL-2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SPDX license identifier is deprecated. You need to check the latest one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the original repo states:
Licence is GNU GPL V3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but not in here https://github.com/adron-s/mtpoe_ctrl/blob/master/openwrt/package/utils/mtpoe_ctrl/Makefile
Anyway, for compatibility, shall I request for a GPL-2.0-or-later solely dual licensing for use by openwrt/packages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the license information in the source code repository is the only valid info, the one in OpenWrt package description is more for automated SBOM generation than anything else.
It cannot be dual licensed if the repo is GPL v3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you then take mtpoe code as part of packages at all? I doubt it.
| endef | ||
|
|
||
| define Package/mtpoe-ctrl/description | ||
| Management utility for Mikrotiks PoE V2/V3/V4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description is the same as TITLE. :-( Not very informative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not touch it, although it makes sense to change it.
utils/mtpoe-ctrl/Makefile
Outdated
| PKG_SOURCE_VERSION:=9c42b74274cca10810363dbbb6d161bfb9cedb7e | ||
| PKG_MIRROR_HASH:=1ac2902161ba4bb1e8af397aa48821ccea95740199b1c155f98161c7ff3a93df |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ordering is not correct, you should check how it is done in other Makefiles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also comes from the original repo approach. Will see.
| PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
| PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is default, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say so.
| PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
| PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | ||
|
|
||
| PKG_MAINTAINER:=Sergey Sergeev <[email protected]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is @adron-s aware that he would be maintainer here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not notify him beside raising a PR to original repo. It's not a problem to put me there, and update when original author takes the PR. I keep that on purpose, not to take credit for someone's work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maintainership doesnt mean any credits other than you are the person that gets pinged on updates or issues.
923f7d6 to
d4a5b2d
Compare
Provides the tool for controlling PoE on MikroTik routers. It requires the PoE controller exposed to the user-space. Signed-off-by: Przemek Rudy <[email protected]>
Add explicit handling for RB5009UG. Signed-off-by: Przemek Rudy <[email protected]>
d4a5b2d to
7c2b528
Compare
Maintainer: @prudy (original maintainer will be updated when accepts the PR)
Compile tested: mvebu, mikrotik_rb5009, OpenWrt r26983-1ca6a7583b
Run tested: mvebu, mikrotik_rb5009, OpenWrt r26983-1ca6a7583b, tests done
Description:
Tool for controlling the PoE on Mikrotik devices. It has been ported to work on rb5009 router model.
This requires spi access to the controller, which is posted as an OpenWrt pull-request.