TVHeadEnd SPK
That seems easy as it is shipped with web interface.
Any progress on this request?
No. Currently focused on fixing bugs and enhancements of current SPKs. I'm sure you can do it yourself easily with spksrc. Give it a try
Ok will try.
Can you give me a few directions which package i could modify to make this work?
Start by following the README and report here the issues you encounter.
For now i give up, maybe later. I'm to much of a linux noob to get this working within a few hours.
I found this but don't know/understand how to convert this to a package. Maybe someone else can give it a shot?
ipkg install gconv-modules export GCONV_PATH=/opt/lib/gconv ipkg install libc-dev ipkg install openssl-dev ipkg install git cp /opt/arm-none-linux-gnueabi/lib/libpthread-2.5.so /opt/arm-none-linux-gnueabi/lib/libpthread-2.5.so.bk cp /lib/libpthread.so.0 /opt/arm-none-linux-gnueabi/lib/libpthread-2.5.so cp /opt/lib/libssl.so.0.9.8 /opt/arm-none-linux-gnueabi/lib cp /opt/lib/libssl.so.0.9.8 /lib cp /opt/lib/libcrypto.so.0.9.8 /lib
git clone https://github.com/andoma/tvheadend cd tvheadend bash ./configure --cc=gcc --disable-avahi make
+1
Maybe I will giving it a shot trying to build a new package.
@Jeroenve I think this could be useful. https://www.lonelycoder.com/redmine/issues/925
After many attempts i finally had a binary compiled on my Synology and trashed the source and kept binary. After starting the binary i noticed something was missing, it seems not all tvheadend needed resources are embedded. So i can start over again.
I think that if you follow the steps in the README there'll be no problem.
All the stuff you can find on internet about configure, make or make install doesn't apply to spksrc as spksrc is a framework on top of that.
I think i'm halfway there only needed to modify directory name inside tvheadend package to match package name.
11:59:09 {develop} ~/tvheadend/cross/tvheadend$ make arch-88f6281
===> Building package for arch 88f6281
make[1]: Entering directory /home/openelec/tvheadend/cross/tvheadend' make[1]: Nothing to be done fordefault'.
make[1]: Leaving directory `/home/openelec/tvheadend/cross/tvheadend'
Can't find the package yet but need to focus on the GUI part now i think.
Not sure what to do with this step.
On a successful cross-compilation create a PLIST file with the same syntax as spksrc/cross/transmission/PLIST but based on the auto-generated PLIST for your new package at spksrc/cross/newpackage/work-88f6281/newpackage.plist
do i need to copy content of tvheadend.plist in PLIST file for tvheadend in spk/tvheadend?
In cross you only cross compile. You have to change the package directory name in the Makefile
Diaoul thanks, got it.
I'm at this step now
Once you have successfully cross compiled the new package, to create the SPK:
Copy a standard SPK directory like spksrc/spk/transmission in your new SPK directory spksrc/spk/newspk Edit the stuff to fit your needs
Need to read a bit more to understand what i need to change or add in Makefile
Sorry for spamming this thread but i think i'm almost there
12:33:37 {develop} ~/tvheadend$ make ARCH=88f6281 tvheadend
cd spk/tvheadend/ && env make
make[1]: Entering directory /home/openelec/tvheadend/spk/tvheadend' (cd /home/openelec/tvheadend/spk/tvheadend/work-88f6281/staging && tar cpzf /home/openelec/tvheadend/spk/tvheadend/work-88f6281/package.tgz *) ===> Creating INFO file for tvheadend ===> Creating /home/openelec/tvheadend/spk/tvheadend/work-88f6281/scripts/preinst ===> Creating /home/openelec/tvheadend/spk/tvheadend/work-88f6281/scripts/postinst ===> Creating /home/openelec/tvheadend/spk/tvheadend/work-88f6281/scripts/preuninst ===> Creating /home/openelec/tvheadend/spk/tvheadend/work-88f6281/scripts/postuninst ===> Creating /home/openelec/tvheadend/spk/tvheadend/work-88f6281/scripts/preupgrade ===> Creating /home/openelec/tvheadend/spk/tvheadend/work-88f6281/scripts/postupgrade ===> Creating /home/openelec/tvheadend/spk/tvheadend/work-88f6281/scripts/start-stop-status ===> Creating /home/openelec/tvheadend/spk/tvheadend/work-88f6281/scripts/installer (cd /home/openelec/tvheadend/spk/tvheadend/work-88f6281 && tar cpf /home/openelec/tvheadend/spk/tvheadend/../../packages/tvheadend-88f6281-2.99-44-g4ef72fb-1.spk --group=root --owner=root package.tgz INFO scripts) make[1]: Leaving directory/home/openelec/tvheadend/spk/tvheadend'
12:34:02 {develop} ~/tvheadend$
So far i have a spk but i think there is something missing in the Makefile regarding config file for tvheadend, maybe i deleted to much.
Makefile: http://pastebin.com/vcamQzXb
Edit: Package failed to install. Now i need to find out why.
Remove WIZARDS_DIR = src/wizard/ from the Makefile
Remove wizard files under spksrc/spk/tvheadend/src/wizard/
Check if the INFO file under spksrc/spk/tvheadend/work-88f6281/ and see if the structure is correct. If not, set the DESCRIPTION to something without special characters.
Everything should be good to go but have to leave
If anyone is interested, it's here https://github.com/schumi2004/spksrc/commits/tvheadend
@Diaoul is there a way to find out why it won't install on NAS?
Check the installer.sh script.
Found 1 problem in installer.sh but i also checked the created package itself but couldn't find the tvheadend binary in it.
hi schumi2004. I'am nunu from synology & NAS-Forum. I have DL your spkrc/tvheadend & try to compile it. But it seems that it can't be automatically build as the uncompressed name & the ref in the makefile config is are not the same !
i know, you can download tar manually and rename folder inside tar as quick fix, need to solve that part.
Folder name inside archive should match archive name
it is what i have done. I'am not familiar at all with builds environnement. And i havan't understood where is the download link to get tvheadend sources, and where you put configure option ?!