Angepinnt create ipk mit HDF-Toolbox

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • create ipk mit HDF-Toolbox

      Hallo,

      falls kein linux zur verfügung steht kann man HDF-Toolbox für ipk bau benutzen.
      Die ipk ist für mips/arm geteste auf Formuler1/AX51

      installation

      Quellcode

      1. [root@ax51:~]$ opkg install enigma2-plugin-extensions-createipk_1.0_all.ipk
      2. Installing opkg-utils (0.3.2+git0+3ffece9bf1) on root.
      3. Installing file (5.29) on root.
      4. Downloading http://feeds.hdfreaks.cc/V6.0/hd51/cortexa15hf-neon-vfpv4/file_5.29-r0_cortexa15hf-neon-vfpv4.ipk.
      5. Installing ldd (2.24) on root.
      6. Downloading http://feeds.hdfreaks.cc/V6.0/hd51/cortexa15hf-neon-vfpv4/ldd_2.24-r0_cortexa15hf-neon-vfpv4.ipk.
      7. Installing libattr1 (2.4.47) on root.
      8. Installing libacl1 (2.2.52) on root.
      9. Installing libpopt0 (1.16) on root.
      10. Installing rsync (3.1.2) on root.
      11. Installing enigma2-plugin-extensions-createipk (1.0) on root.
      12. Configuring opkg-utils.
      13. Configuring file.
      14. Configuring ldd.
      15. Configuring libattr1.
      16. Configuring libacl1.
      17. Configuring libpopt0.
      18. Configuring rsync.
      19. Configuring enigma2-plugin-extensions-createipk.
      20. Prepare ar for ARMV7
      21. done...
      22. ##### Modify PATH Environment /home/root/.profile ######
      23. New PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/root/bin:/hdd/bin:/usr/scripts
      24. Found ipk-build...
      25. patching file ipk-build
      26. Add Create IPK menu to HDF-Toolbox main.cfg
      Alles anzeigen




      nach der installation zuerst /etc/createipk.conf öffnen und anpassen
      (Windows ordner freigeben mit vollzugriff (lesen/schreiben))

      Quellcode

      1. ### network sharing ###
      2. IP=
      3. user=
      4. pass=
      5. ### network shared folder name ###
      6. mountsharedir=
      7. #yes or no (opkg local feed for testing your ipk)
      8. createrepo=no
      9. ### do NOT change - local settings ###
      10. mountlocaldir=createipk
      11. hdftoolbox=/usr/lib/enigma2/python/Plugins/Extensions/HDF-Toolbox
      Alles anzeigen




      jetzt Config/Update/Rsync ausführen


      /etc/fstab für samba/cifs mount bearbeiten, WinHost mounten
      rsync in action (daten von Windows auf die BOX/hdd holen)

      menü Create IPK kurz verlassen und wieder einsteigen (menü wird aktuallisiert)

      Quellcode

      1. sent 19,169,908 bytes received 53,906 bytes 155,658.41 bytes/sec
      2. total size is 18,946,321 speedup is 0.99
      3. Add: ipk-build nomjasvlocalrepo
      4. Add: ipk-build openhdf_createipk_all
      5. Add: ipk-build opkg-tools_armv7
      6. Add: ipk-build resetrootpass
      7. Add /etc/opkg/ax51-localfeed.conf


      Quellcode

      1. [root@ax51:~]$ ls -l /hdd/createipk
      2. drwxr-xr-x 7 root root 4.0K Apr 7 17:34 nomjasvlocalrepo
      3. drwxr-xr-x 5 root root 4.0K Apr 11 15:24 openhdf_createipk_all
      4. drwxr-xr-x 6 root root 4.0K Apr 11 15:24 opkg-tools_armv7
      5. drwxr-xr-x 3 root root 4.0K Apr 13 08:08 resetrootpass




      ipk bauen: rsync gleicht die daten ab WinHost -> BOX/hdd
      suche in CONTROL/{preinst,postinst,prerm,postrm} nach fehlende zeile #!/bin/sh
      alle files bekommen zuerst chmod 644, ordner chmod 755
      danach alle executables chmod 755
      local-feed aktuallisieren falls 'yes' in /etc/createipk.conf

      ipk und build.log.ipk zu WinHost übertragen


      fertig und viell Spaß damit.

      lg
      Dateien
      perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

      Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von nomjasV ()

    • Hi,

      update to 1.1

      createipk.conf: mountlocaldir enfernt, gemountet wird in zukunft nur über mountsharedir
      buildipk, configcreateipk bereinigt (auskommentierte zeilen)
      unbrauchbare sleep's enfernt.
      Menu Config/Update/Rsync in Config/Menu Update/Sync geändert
      das wars

      ich bin euch noch eine erklärung schuldig was während der installation passiert
      Found ipk-build... <--- stammt vom Koivo create_ipk.zip
      patching file ipk-build - wurde von mir gepatcht

      Unterschiede-Datei

      1. --- ipk-build.orig 2011-08-12 17:14:24.000000000 +0200
      2. +++ ipk-build 2017-04-13 18:19:46.108566388 +0200
      3. @@ -3,6 +3,14 @@
      4. # ipkg-build -- construct a .ipk from a directory
      5. # Carl Worth <[email protected]>
      6. # based on a script by Steve Redler IV, [email protected] 5-21-2001
      7. +###################################################################
      8. +# patched by nomjasV (hdfreaks) 13.04.17
      9. +# replaced remove command rm -r -f $tmp_dir with rm -rf IPKG_BUILD.$$
      10. +# fixed FILESWITHOUTCONTROL ( see fix2 for -- exclude bug )
      11. +# disabled ar BUSYBOX check
      12. +# replaced build ipk command ar -r with ar -crf
      13. +#
      14. +#set -x
      15. set -e
      16. ipkg_extract_value() {
      17. @@ -118,7 +126,11 @@
      18. #
      19. # gutemine's fix for --exclude bug
      20. #
      21. -FILESWITHOUTCONTROL=`cd $pkg_dir; ls -1 | grep -v CONTROL`
      22. +#FILESWITHOUTCONTROL=`cd $pkg_dir; ls -1 | grep -v CONTROL`
      23. +#
      24. +# nomjasV fix2 for -- exclude bug
      25. +#
      26. +FILESWITHOUTCONTROL=`cd $pkg_dir; ls -1 | grep -v 'CONTROL\|DEBIAN'`
      27. #echo $FILESWITHOUTCONTROL
      28. tar -C $pkg_dir -czf $tmp_dir/data.tar.gz $FILESWITHOUTCONTROL
      29. @@ -127,21 +139,23 @@
      30. echo "2.0" > $tmp_dir/debian-binary
      31. pkg_file=$dest_dir/${pkg}_${version}_${arch}.ipk
      32. -if [ -f /usr/bin/enigma2 ]; then
      33. - if [ ! -f /usr/local/bin/ar ]; then
      34. - BUSYBOX=`ls -F /usr/bin/ar | grep @ | wc -l`
      35. - if [ $BUSYBOX -eq 1 ]; then
      36. - echo ar seems to be from busybox - not capable to create archive
      37. - echo Install ar from binutils at /usr/local/bin
      38. - echo or replace link from /usr/bin/ar to busybox with real ar binary
      39. - exit 0
      40. - fi
      41. - fi
      42. -fi
      43. +#if [ -f /usr/bin/enigma2 ]; then
      44. +# if [ ! -f /usr/local/bin/ar ]; then
      45. +# BUSYBOX=`ls -F /usr/bin/ar | grep @ | wc -l`
      46. +# if [ $BUSYBOX -eq 1 ]; then
      47. +# echo ar seems to be from busybox - not capable to create archive
      48. +# echo Install ar from binutils at /usr/local/bin
      49. +# echo or replace link from /usr/bin/ar to busybox with real ar binary
      50. +# exit 0
      51. +# fi
      52. +# fi
      53. +#fi
      54. cd $tmp_dir
      55. -ar -r $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz
      56. +#ar -r $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz
      57. +ar -crf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz
      58. mv $pkg_file ..
      59. cd ..
      60. -rm -r -f $tmp_dir
      61. +#rm -r -f $tmp_dir
      62. +rm -rf IPKG_BUILD.$$
      63. echo "Packaged content was moved at $pkg_dir into $pkg_file"
      Alles anzeigen


      lg
      perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von nomjasV ()

    • update to 1.4

      2 neue variablen in /etc/createipk.conf
      #yes/no (compile module py to pyo)
      compilepytopyo=no

      #yes/no (remove *.py after compile)
      removepy=no

      - control/Depends, buildipk angepasst

      Quellcode

      1. sent 196,814 bytes received 2,070 bytes 397,768.00 bytes/sec
      2. total size is 9,227,163 speedup is 46.39
      3. ...cut...
      4. Compiling ./usr/lib/enigma2/python/Plugins/Extensions/Test/GlobalFunctions.py ...
      5. Compiling ./usr/lib/enigma2/python/Plugins/Extensions/Test/MC_PictureViewer.py ...
      6. Compiling ./usr/lib/enigma2/python/Plugins/Extensions/Test/MC_AudioPlayer.py ...
      7. Compiling ./usr/lib/enigma2/python/Plugins/Extensions/Test/MC_VLCPlayer.py ...
      8. Compiling ./usr/lib/enigma2/python/Plugins/Extensions/Test/plugin.py ...
      9. Compiling ./usr/lib/enigma2/python/Plugins/Extensions/Test/__init__.py ...
      10. Compiling ./usr/lib/enigma2/python/Plugins/Extensions/Test/MC_Settings.py ...
      11. Compiling ./usr/lib/enigma2/python/Plugins/Extensions/Test/MC_WeatherInfo.py ...
      12. Packaged content was moved at ax51-skin-package into ./enigma2-plugin-skin-Test_2.7_all.ipk
      Alles anzeigen


      lg
      perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von nomjasV ()

    • update to 1.5

      - Run your own script implementiert

      ###########################################################################################
      ############### Run your own script. ###############
      # Change to your project directory and create a script with the same name of the project.
      #
      # example:
      #
      # cd /hdd/projekte/creteipk
      # echo '#!/bin/sh' >createipk.sh
      # echo 'chmod 600 usr/createipk.conf' >>createipk.sh
      #
      # [root@ax51:/hdd/projekte/createipk]$ ls
      # CONTROL etc tmp usr createipk.sh
      #
      # Copy the script to the project on Windows
      # The script will be removed before packing ipk
      ###########################################################################################


      [root@ax51:/etc/opkg]$ configcreateipk

      ...cut...
      sending incremental file list
      projekte/
      projekte/test/
      projekte/test/test.sh
      projekte/test/CONTROL/
      projekte/test/CONTROL/postinst
      projekte/test/CONTROL/postrm
      projekte/test/usr/lib/python/Plugins/Extensions/Test/
      projekte/test/usr/lib/python/Plugins/Extensions/Test/__init__.py

      sent 9,994 bytes received 308 bytes 20,604.00 bytes/sec
      total size is 22,558,620 speedup is 2,189.73
      Add: ipk-build createipk
      Add: ipk-build test
      Add: ipk-build resetrootpass

      Please refresh HDF-Toolbox menu

      [root@ax51:~]$ buildipk test
      ### Sync /hdd/projekte/test ###
      sending incremental file list

      sent 439 bytes received 25 bytes 309.33 bytes/sec
      total size is 773 speedup is 1.67

      Add missing >> #!/bin/sh << to postinst
      Add missing >> #!/bin/sh << to postrm

      Compiling ./usr/lib/python/Plugins/Extensions/Test/__init__.py ...

      Found and execute: test.sh

      test.sh wird ausgeführt ls -l etc/test.conf
      -rw-r--r-- 1 root root 54 May 3 16:13 test.conf

      execute: chown root.adm etc/test.conf
      -rw-r--r-- 1 root adm 54 May 3 16:13 etc/test.conf

      execute: chmod 600 etc/test.conf
      -rw------- 1 root adm 54 May 3 16:13 etc/test.conf

      Remove: test.sh

      lg
      perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von nomjasV ()

    Unsere Partnerboards

    ^
    Flag Counter