spksrc icon indicating copy to clipboard operation
spksrc copied to clipboard

TVHeadEnd SPK

Open Diaoul opened this issue 14 years ago • 110 comments

That seems easy as it is shipped with web interface.

Diaoul avatar Apr 25 '12 10:04 Diaoul

Any progress on this request?

schumi2004 avatar Jun 21 '12 09:06 schumi2004

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

Diaoul avatar Jun 21 '12 09:06 Diaoul

Ok will try.

Can you give me a few directions which package i could modify to make this work?

schumi2004 avatar Jun 21 '12 09:06 schumi2004

Start by following the README and report here the issues you encounter.

Diaoul avatar Jun 21 '12 09:06 Diaoul

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

schumi2004 avatar Jun 21 '12 18:06 schumi2004

+1

Maybe I will giving it a shot trying to build a new package.

Jeroenve avatar Jun 21 '12 20:06 Jeroenve

@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.

schumi2004 avatar Jun 21 '12 23:06 schumi2004

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.

Diaoul avatar Jun 22 '12 05:06 Diaoul

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?

schumi2004 avatar Jun 22 '12 10:06 schumi2004

In cross you only cross compile. You have to change the package directory name in the Makefile

Diaoul avatar Jun 22 '12 10:06 Diaoul

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

schumi2004 avatar Jun 22 '12 10:06 schumi2004

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.

schumi2004 avatar Jun 22 '12 10:06 schumi2004

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.

Diaoul avatar Jun 22 '12 11:06 Diaoul

Everything should be good to go but have to leave

If anyone is interested, it's here https://github.com/schumi2004/spksrc/commits/tvheadend

schumi2004 avatar Jun 22 '12 11:06 schumi2004

@Diaoul is there a way to find out why it won't install on NAS?

schumi2004 avatar Jun 22 '12 14:06 schumi2004

Check the installer.sh script.

Diaoul avatar Jun 22 '12 14:06 Diaoul

Found 1 problem in installer.sh but i also checked the created package itself but couldn't find the tvheadend binary in it.

schumi2004 avatar Jun 22 '12 14:06 schumi2004

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 !

bzhnunu avatar Jun 25 '12 06:06 bzhnunu

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

schumi2004 avatar Jun 25 '12 07:06 schumi2004

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 ?!

bzhnunu avatar Jun 25 '12 07:06 bzhnunu