patjak / facetimehd

Reverse engineered Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam
GNU General Public License v2.0
1.36k stars 161 forks source link

Automatically create DEB via travis/launchpad #137

Open ivanperez-keera opened 7 years ago

ivanperez-keera commented 7 years ago

Most people use debian and Ubuntu.

To make this driver used more widely, it would be great to have a DEB. This could be created automatically via a combination of travis and launchpad PPAs.

I can't contribute time, but I can try it and I can contribute to a bounty.

ivanperez-keera commented 7 years ago

A minot technical detail that may be obvious to some but some beginners who want to give this a try might have more trouble with that:

There soft of is something already: there's a deb rule in firmware/Makefile, but that can only be executed in the user's machine because it needs to grab the firmware from the OSX installation (for legal reasons, I guess?). So that part would probably have to be re-run by the deb upon installation (and, also, every time the firmware is upgraded in OSX).

ivanperez-keera commented 7 years ago

Related: https://github.com/patjak/bcwc_pcie/issues/107

This gist is a really good starting point:

https://gist.github.com/Stono/990ea9f0b3c41606c292f00382d421bf

wvengen commented 7 years ago

There already is a dkms.conf, so running dkms add . in the source tree should already do everything necessary (when dkms is installed), including rebuilding when a new kernel is installed.

Looking at existing dkms packages like ddcci-dkms and dm-writeboost-dkms should give a good starting point for making a debian package for the driver.

For the firmware, there could be package that downloads and extracts the firmware file from the known location, just like the flash plugin or msttcorefonts packages do. Maybe there is a user agreement / license that needs to be agreed to, in which case that should be shown first.