From 0c5f3858e44c247e9b7b774a1561cffff2eadf75 Mon Sep 17 00:00:00 2001 From: ncmprhnsbl Date: Sun, 19 Nov 2017 18:12:11 +1000 Subject: [PATCH] oops forgot the build script, ..cleaned docs --- DOC/ToDo | 10 +----- DOC/instructions.txt | 2 ++ DOC/old-instructions | 74 -------------------------------------------- openbox-build.sh | 44 ++++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 83 deletions(-) delete mode 100644 DOC/old-instructions create mode 100644 openbox-build.sh diff --git a/DOC/ToDo b/DOC/ToDo index 7996938..47375f8 100644 --- a/DOC/ToDo +++ b/DOC/ToDo @@ -1,11 +1,3 @@ update/correct docs -identify/supply missing packages ..done -check configs match ..eh? -make it work ..done -include 32bit ..done -update/correct docs -rebuild from/include sources ..closer -make like https://github.com/brokenman/xfce.git..closer - - +work out what todo next .. \ No newline at end of file diff --git a/DOC/instructions.txt b/DOC/instructions.txt index 88c02e6..d1167fe 100644 --- a/DOC/instructions.txt +++ b/DOC/instructions.txt @@ -1,3 +1,5 @@ +NOTE: this document needs work :p + ## IMPORTANT ## Keep the directory structure exactly as it is. The scripts rely on this. They will create a 'build' directory and an 'export' directory as needed. diff --git a/DOC/old-instructions b/DOC/old-instructions deleted file mode 100644 index dae2b81..0000000 --- a/DOC/old-instructions +++ /dev/null @@ -1,74 +0,0 @@ -###Instructions for Module Creation### -!!work in progress--- use at own risk!! - -Inside this directory are your packages and your TREE. The files from the tree get overlaid on the packages after they are installed, so you can put all your customizations in there without having to repackage everything. There are also some cleanup scripts inside the tree, which are run after being copied inside the module's fakeroot. They make some additional tweaks and remove unneccessary files; I've commented most of the cleanup script out so because it's not necessary and it would break a few things in openbox (for example, header files and locales are normally stripped and sent to devel or locales modules, but since openbox isn't an official module, they won't be included there so we need to keep them in the openbox module. - - -The steps to create a module are actually pretty easy once you get the hang of it. here we go: - -create a fakeroot in /tmp to hold everything: - -mkdir /tmp/obox - -go into the packages folder for your arch; extract all of the modules there into the fakeroot and install all of the txz/tgz modules there - -cd /path/to/PKG64 -for a in `ls|grep xzm`; do xzm2dir $a /tmp/obox; done -installpkg --root /tmp/obox *.t[g,x]z - - -Now, copy everything from your TREE into the fakeroot: - -cd ../TREE/ -cp -ar * /tmp/obox - -All your files are in the fakeroot now, so we'll go there and run our cleanup scripts: - -cd /tmp/obox -./003-recreate_links_set_permissions -./003-launch_before_go - -remove those cleanup scripts, we don't want them hanging out in / - -rm 003-* - -go into /tmp and build your module - -cd ../ -dir2xzm obox openbox-sa-x86_64.xzm - - -DONE! - -put it in place: - -cp openbox_addon-x86_64.xzm /mnt/sdb*/3.1-64/porteus/modules - -## Caches -When testing you MUST boot into text mode (append 3 to the boot line) and run /usr/bin/p_cache as root which is a cache script -in order to generate the required caches. If not the desktop won't boot. It generates a module in -/tmp/009-caches.xzm. MAKE SURE you merge this caches module with the final 003-openbox.xzm module before -the final product. - -## Procedure for testing desktop -1) Boot into text mode -2) Log in as root -3) run p_cache -4) exit to guest -5) ??>[openbox-session --with-ck-launch 2>/tmp/out]