10.6 Server: Install HellaNZB without using MacPorts
Sep 09, '09 07:30:02AM • Contributed by: matuzalem
Sep 09, '09 07:30:02AM • Contributed by: matuzalem
If you try to install hellanzb via MacPorts, the method is currently broken on 10.6.. That's because py25-twisted fails to build on my 64bit system ( Ticket #20820).
The solution is to build using Python 2.5 instead of the default Python 2.6 in Snow Leopard. This avoids conflicts with Apple's own wiki and blog software, and problems with deprecated sys calls with HellaNZB.
- Build Twisted-8.2.0 [download: sudo /usr/bin/python2.5 setup.py install
- Build hellanzb-0.13 [download]: sudo /usr/bin/python2.5 setup.py install. This will install to /usr/local/bin/hellanzb.py.
- Place unrar and rar version 3.90 (rarosx-3.9.0.tar) into /usr/local/bin/.
- Install par2cmdline-0.4-tbb-20090203-mac [download]. Store the files here: /usr/lib/libtbb.dylib and /usr/local/bin/par2
- For SSL functionality, install pyOpenSSL-0.9 [download]: sudo /usr/bin/python2.5 setup.py
- Create a hellanzb.sh daemon startup script, saved as /usr/local/bin/hellanzbd.sh:
#!/bin/bash export PATH=/usr/local/bin/; /usr/local/bin/hellanzb.py -D - Configure hellanzb using /opt/local/etc/hellanzb.conf
- Create a launchctl item in /Library/LaunchDaemons/com.hellanzb.daemon.plist:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.hellanzb.daemon</string> <key>ProgramArguments</key> <array> <string>/usr/local/bin/hellanzbd.sh</string> </array> <key>RunAtLoad</key> <true/> <key>StandardErrorPath</key> <string>/Library/Logs/HellaNZB/error.log</string> <key>StandardOutPath</key> <string>/Library/Logs/HellaNZB/hella.log</string> <key>UserName</key> <string>*myusername*</string> <key>GroupName</key> <string>admin</string> </dict> </plist> - Start the daemon: sudo launchctl load /Library/LaunchDaemons/com.hellanzb.daemon.plist
•
[7,463 views]
