Tagged: inadyn-mt ddns build package
May 29, 2016 at 16:57 #10573
hum not sure what you are doing ..
./scripts/package package_name is used to package an already existing package and off course there is no package called inadyn-mt
lets’ begin here :
thomas@servA:~/project/openbricks$ find packages/ -name inadyn packages/misc/inadyn thomas@servA:~/project/openbricks$ ls packages/misc/inadyn -l total 24 -rwxrwxr-x 1 thomas thomas 157 nov. 5 2014 build drwxrwxr-x 2 thomas thomas 4096 nov. 5 2014 config -rwxrwxr-x 1 thomas thomas 164 nov. 5 2014 install -rw-rw-r-- 1 thomas thomas 512 mai 25 13:16 meta drwxrwxr-x 2 thomas thomas 4096 nov. 5 2014 patches drwxrwxr-x 2 thomas thomas 4096 nov. 5 2014 unit thomas@servA:~/project/openbricks$
here you see
* meta file (describing what is the package for, where to download it, dependencies, etc)
* build file (how to build the package)
looking at the archive inadyn-mt, there is already a configure script inside it, so no need to do something special right now
* install file : what to install, binaries, lib, etc
* patches directory : if needed
* unit directory : to start a systemd’s service
so basically, create a new package with :
./scripts/newpackage inadyn-mt net
so all needed files should be created under packages/net/inadyn-mt directory
then compare between inadyn and inadyn-mt what to do next : modify build script if needed, install script if needed
(no need of installdev pscript I think, as it’s not a package we will use to build something else)
you can have documentation regarding openbricks’ structure here : http://www.openbricks.org/docs/openbricks-manual.pdf
(basis are here, little outdated because many enhancements since the last time it was generated)
😉May 30, 2016 at 00:06 #10574
Thank you very much for the directions. As soon as I can, I will get into it. It is actually stimulant, and to be honest, I’m enjoying it! 😛June 16, 2016 at 11:55 #10674
Hi there, just to let you guys updated. Sorry for the long time to return with something. A few days ago a power outage followed by a surge fried my HDD. So getting a new one, installing everything and rebuiding openbriks took a while.
BUT, yesterday, after several compile errors, I finally was able to create an inadyn-mt package. This weekend I will test it on my Cubox-i. I’m suspicious that I’ve forgotten to point the
.servicefile to the right
.conf, but the test will tell.June 16, 2016 at 13:59 #10676
Hey, no problem.
Did you already push this somewhere, maybe then we can have a look
Cheers !June 16, 2016 at 14:38 #10678June 16, 2016 at 14:44 #10679
It actually doesn’t require to be compiled. It has a linux executable ready, the same way regular inadyn has. But to create the package I needed a successful compilation, a good learning process thou.June 16, 2016 at 15:24 #10680
Well, burning a new sdcard, I will test it simultaneouslyJune 16, 2016 at 15:56 #10681
well, it doesn’t work, you have downloaded the wrong binaries
/home/thomas/test/inadyn-mt_02.28.06-1_armv7/usr/bin/inadyn-mt /home/thomas/test/inadyn-mt_02.28.06-1_armv7/usr/bin/inadyn-mt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=17269b85993dddb0899566911d349e7585243355, stripped
and the correct link is here (for sources)
and inside this archive there is a configure script …June 16, 2016 at 17:29 #10682
Ok, thanks for the feedback.
I’ll look into it as soon as I can and then test.
Cheers.June 21, 2016 at 00:48 #10692
Ok. Just copying the already compiled Linux version wasn’t enougth. Some sort of incompatibility with Ash Shell. So compiling it for openbricks seems to have solved it. Here is a new revision. Seems to work, but may still need some tuning (point it to config file at /etc). I will do real configuration and testing in the weekend.
Cheers.June 21, 2016 at 06:39 #10694June 22, 2016 at 14:15 #10695
Thank you very much.
I’ll keep you up to date after testing its behavion in the weekend.
Cheers.June 23, 2016 at 07:42 #10703Warped RudiKeymaster
Just a minor thing: It appears that your package – just like our old one as well – does contain unneeded debug info. You might add a “strip_bins” as it can be seen in this commit.June 23, 2016 at 23:42 #10713June 26, 2016 at 14:34 #10714
Hi there, me again 😋.
A small doubt. Inadyn-mt is working fine, after some testing here. But, I’ve noticed that its not starting automatically on reboot (although it has a service file). How could I implement it, cron entry maybe?
Thanks once more.
- You must be logged in to reply to this topic.