Avoid world-writable device

Group plugdev should be sufficient, access to the device will be controlled by
membership in it.
udev rules reside in /usr now

That is; those shipped in with the software. User can override them by
overlaying them with a file in /etc.
Allow overriding compiler flags

-g and -O flags should not be forced upon the user. Distributions often prefer
different flags: -O0 prevents compiler from generating information useful for
security features, such as -D_FORTIFY_SOURCE=2.

Libusb flags are made overridable as well, so that users can choose alternate
libusb installation or maybe a fork such as libusbx.
Nuke some unused variables
Don't let fread() fail silently
fuse_decl offset is an array index

Array indices are integers, not characters. Compiler complains.
Merge pull request #10 from lkundrak/lr-fedora

Various fixes/enhancements
Add support for disabling/enabling protection

The original software disables write protection before write and restores it
after write if the chip supports it. It provides a checkboxes for disabling the
functionality.

This changeset adds equivalent functionality with equivalent defaults. The bits
in opts4 were guessed by clicking around in the UI and seeing whether the
checkboxes grey out. The opcodes 0x44 and 0x45 and the transaction behavior
were identified by sniffing the traffic via NetPacket::USBMon.
Merge pull request #11 from lkundrak/lr-protection

Add support for disabling/enabling protection
Adds miniprohex to make install
Merge pull request #13 from wd5gnr/master

Adds miniprohex to make install
Add two missing prototypes

This avoids compiler warnings. I've broke this in
[09fc44b68]: Add support for disabling/enabling protection
Merge pull request #14 from lkundrak/lr-prototypes

Add two missing prototypes
Remove the shebang from the completion file

It's useless as completion file is sources and it makes rpmlint sad.
Update FSF address

It makes rpmlint cry otherwise.
Merge pull request #15 from lkundrak/lr-rpmlint

Two tiny fixes to make rpmlint happy
miniprohex: Fix temporary file handling

Avoid insecure temporary file and drop it after use.
Improve diagnostics a bit

It could be tricky to determine the file size needed, especially for weirdly
sized devices.
Fix support for devices with irregular memory sizes

E.g. PIC12F675 has memory of 0x7fe size -- the last word is configuration word
that is handled separately.
Merge pull request #16 from lkundrak/lr-another-one

A couple more fixes