#FreeNAS-Plugins Information for python-based plugins maintained by me can be found here.
#PREPARATION
-
The ports in ./ports should be copied into your ports tree
cp -R ports/* /usr/ports/
-
A 'media' user and group need to be added to '/usr/ports/UIDs' and '/usr/ports/GIDs' before compiling Ports or PBIs.
- /usr/ports/UIDs
media:*:816:816::0:0:media Daemon:/nonexistent:/usr/sbin/nologin
btsync:*:817:817::0:0:btsync Daemon:/nonexistent:/usr/sbin/nologin
- /usr/ports/GIDs
media:*:816:
btsync:*:817:
- /usr/ports/UIDs
-
Compile
pbi_makeport -c ./plugins/NAME -o ./pbi --pkgdir ./pkg/NAME CATEGORY/NAME