Giter Club home page Giter Club logo

bod_installer's Introduction

BodInstallers

These are the installer Templates used by Bodhi Linux's offline installers, aka .bod files. While Bodhi supports multiple CPU architectures, for purposes of illustration the installation scripts here are for Bodhi 2.0.1 32 bit.

Understanding Bod Files

Information on understanding bod files can be found on Bodhi Linux's Documentation wiki.

Files

  • installer This is template for the first installation script found in most bod files. This script does some tests to determine if the bod can be installed and then calls the second script using gksudo to gain root.
  • bodapt This is second installation script found in most bod files. Here is where the deb files are actually installed.
  • installer.bodhi-web-dev.sh This is the custom installer template script for the bodhi-web-dev package.
  • bodapt.bodhi-web-dev.sh This is the custom bodapt template script for the bodhi-web-dev package.
  • installer.gnumeric.sh This is the custom installer template script for the gnumeric package.
  • bodapt.gnumeric.sh This is the custom bodapt template script for the gnumeric package.
  • README.md The readme file you are currently reading ;)

Variable Substitution

All strings in the template scripts prefixed and postfixed with '$$' are variables which my python bod building script substitutes with the appropriate value for the package we are creating a bod for.

The complete list of such meta-variables is:

  • $$SHNAME$$ The name of the primary Installation script, by default installer.sh
  • $$SH2NAME$$ The name of the secondary Installation script, by default bodapt.sh
  • $$DATE$$ The date the bod was created.
  • $$BODNAME$$ The name of the bod excluding the extension.
  • $$APPNAME$$ The application name, ie the name of the deb installed. Usually this is the same as the bod name, but for historical reasons (Hippytaff) not always.
  • $$APPDESC$$ A short description of the application.
  • $$APPLIST$$ Most bods install one application and the apps dependencies. But it is possible for a bod to install several applications or packages, for example Bodhi service packs. This is a list of all debs to be installed, not listing of course all dependencies.
  • $$APPINSTR$$ This is a short description usually telling user the menu location of the application installed or other similar relevant information.
  • $$NCFUNCTION$$ Some packages use ncurses dialogs to ask questions of the user, this function is a way to aviod any ncurses dialogs by using zemity to ask the questions and debconf to preseed the answers. For a simple example see our wiki, How To Build a .bod File: Ncurses. For bods without any ncurses dialogs this is equal to ε, the empty string.
  • $$NCSUB$$ This is the name of the function defined in $$NCFUNCTION$$. As in $$NCFUNCTION$$ for bods without an ncurses dialog this is also equal to ε

License

GPL v3 These files are free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.