Skip to content

Conversation

@prudy
Copy link

@prudy prudy commented Jul 21, 2024

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.

@prudy prudy force-pushed the mtpoe-ctrl-rb5009 branch 2 times, most recently from 5da28e0 to 923f7d6 Compare July 24, 2024 09:01
PKG_RELEASE:=18

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/prudy/mtpoe_ctrl.git
Copy link
Member

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.

Copy link
Author

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
Copy link
Member

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?

Copy link
Author

@prudy prudy Jul 31, 2024

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
Copy link
Member

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will check.

Copy link
Contributor

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

Copy link
Author

@prudy prudy Aug 7, 2024

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?

Copy link
Contributor

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

Copy link
Author

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
Copy link
Member

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.

Copy link
Author

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.

Comment on lines 8 to 9
PKG_SOURCE_VERSION:=9c42b74274cca10810363dbbb6d161bfb9cedb7e
PKG_MIRROR_HASH:=1ac2902161ba4bb1e8af397aa48821ccea95740199b1c155f98161c7ff3a93df
Copy link
Member

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.

Copy link
Author

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.

Comment on lines +15 to +16
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is default, right?

Copy link
Author

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]>
Copy link
Member

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?

Copy link
Author

@prudy prudy Jul 31, 2024

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.

Copy link
Contributor

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.

prudy added 2 commits June 15, 2025 12:16
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]>
@BKPepe BKPepe force-pushed the mtpoe-ctrl-rb5009 branch from d4a5b2d to 7c2b528 Compare June 15, 2025 10:16
@GeorgeSapkin GeorgeSapkin changed the title Add mtpoe-ctrl packge mtpoe-ctrl: add new package Aug 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants