How to package mitmproxy

hey there,
first of all, I’m very inexperienced with compiling software for OpenWRT, so bear with me.

What I’ve done:

  • Installing a fresh VM with Debian 10 and downloaded the OpenWRT SDK to it and configured it via make menuconfig to only build packages for the Omnia (target-arm_cortex-a9+vfpv3-d16_musl_eabi)
  • downloaded the mitmproxy source from github to the directory /package/mitmproxy

But I’m not really sure, what to be done next, I suppose there should be a Makefile in the source code folder of mitmproxy?

Thanks in advance for any help.

Hi,
I think that the “easiest” way is to create a package for mitmproxy

This is described in OpenWrt docs https://openwrt.org/docs/guide-developer/packages
and relevant info about python packaging is in this readme https://github.com/openwrt/packages/blob/master/lang/python/README.md

1 Like

Hmm. Maybe I should work through this, thanks.
(I was hoping that it’ll be easier than that, but anyway ^^)

I’m afraid so. The other way is to set the environment in a similar way how it’s done in this makefile https://github.com/openwrt/packages/blob/master/lang/python/python3-package.mk
but that is IMHO more complicated than packing it.