statik - Thanks for writing up what worked for you, it's greatly helped me with my install. I made a few changes and have it up and running in 12U4. I'm coming from sick chill (sick rage fork) and it didn't want to import my config, so I'm back on sickchill (my doing a find/replace on these steps)
A few of the changes are, it doesn't seem like we need to create a medusa user and if you install to /usr/local/medusa, you don't need to specify a medusa_dir later on.
Anyhow, I hope this helps anyone else that is trying to get sickbeard forked pvr's running without switching to sonarr.
# Use the bash shell
bash
# Create the jail 192.168.123.105
iocage create -n "medusa" -r 11.2-RELEASE interfaces="vnet0:bridge0" defaultrouter="none" vnet="on" dhcp="on" bpf="yes" allow_raw_sockets="1" boot="on"
# Update to the latest repo
iocage exec medusa "mkdir -p /usr/local/etc/pkg/repos"
iocage exec medusa echo -e 'FreeBSD: { url: \"pkg+
http://pkg.FreeBSD.org/\${ABI}/latest\" }' > /usr/local/etc/pkg/repos/FreeBSD.conf
# Install medusa and dependencies
iocage exec medusa pkg install -y git python27 py27-openssl py27-lxml py27-sqlite3 py27-pip
# When medusa switches to python 3
#iocage exec medusa pkg install -y python36 py36-openssl py36-pip py36-lxml py36-sqlite3 git
# User that I took this from installed to a different directory
#iocage exec medusa git clone
https://github.com/pymedusa/Medusa.git /usr/local/share/medusa
iocage exec medusa git clone
https://github.com/pymedusa/Medusa.git /usr/local/medusa
iocage exec medusa pip-2.7 install -r /usr/local/medusa/requirements.txt
#iocage exec medusa mkdir /usr/local/etc/rc.d
iocage exec medusa cp /usr/local/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
iocage exec medusa chmod u+x /usr/local/etc/rc.d/medusa
# Mount storage
iocage fstab -a medusa /mnt/v1/media /media nullfs rw 0 0
iocage fstab -a medusa /mnt/v1/jail_config_data/medusa /var/db/medusa nullfs rw 0 0
# Create media
iocage exec medusa "pw groupadd media -g 816"
iocage exec medusa "pw useradd -n media -u 1001 -d /nonexistent -s /usr/sbin/nologin"
#copy settings and db from old (commented out, only used once)
# cp -r /mnt/v1/pluginjails/sickrage_1/var/db/sickrage/* /mnt/v1/jail_config_data/medusa/
# Set permissions on install and config
iocage exec medusa chown -R media:media /usr/local/medusa
iocage exec medusa chown -R media:media /var/db/medusa
# Set rc.conf for proper user/group, data directory and enable service
iocage exec medusa sysrc medusa_user=media
iocage exec medusa sysrc medusa_group=media
iocage exec medusa sysrc medusa_datadir=/var/db/medusa
iocage exec medusa sysrc medusa_enable=YES
# Needed if installing to /usr/local/share/medusa, not /usr/local/medusa
# iocage exec medusa sysrc medusa_dir=/usr/local/share/medusa
# Disable IPv6 (for my personal install)
iocage exec medusa vi /etc/rc.conf
# Start the service
iocage exec medusa service medusa start
# Stop the service
iocage exec medusa service medusa stop
# Update (should be able to update itself, usefull to have git command reference)
iocage exec medusa service medusa stop
iocage exec medusa git -C /usr/local/medusa pull
iocage exec medusa service medusa start