security/0d1n: fix build
- convert static REINPLACE_CMD to patch files as per policy
- remove remaining <alloca.h> uses
- patch getopt_long use on targets where char is unsigned
- work around missing __GNUC_PREREQ macro
- fix other missing includes
- update pkg-plist to what the maintainer intended to pack
- patch /opt/0d1n to ${DATADIR} in the relevant files
- note that project is dual licensed (upstream has since removed the GPLv3 license)
- define LICENSE_FILE_{GPLv3,BSD3CLAUSE}
PR: 269717
Fixes: 88dd085ff7851bb2906039d97a81857fe6d8b2e3
Approved by: portmgr (build fix blanket)
Approved by: flo (mentor)
Differential Revision: https://reviews.freebsd.org/D38725