Results 1 to 9 of 9

Thread: Dev CustomBuild Documentation ?

  1. #1
    Join Date
    Jul 2019
    Posts
    82

    Question Dev CustomBuild Documentation ?

    Is there any developer documentation outlining how to add new options to CustomBuild 2.0 to install specific software ? For instance to install Imagick
    Code:
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build set imagick yes
    ./build imagick
    Now if I want to add to CustomBuild a new software install option called via Custombuild, how would I go about it ?

    i.e.
    Code:
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build set mysoftware yes
    ./build mysoftware
    thanks

  2. #2
    Join Date
    Jul 2017
    Location
    Murfreesboro
    Posts
    347
    Quote Originally Posted by eva2000 View Post
    Is there any developer documentation outlining how to add new options to CustomBuild 2.0 to install specific software ? For instance to install Imagick
    Code:
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build set imagick yes
    ./build imagick
    Now if I want to add to CustomBuild a new software install option called via Custombuild, how would I go about it ?

    i.e.
    Code:
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build set mysoftware yes
    ./build mysoftware
    thanks
    I could be wrong. Do just ./build
    then scroll way to the top
    It said who the dev is at the top. I think.
    Thanks,
    Brent Dacus
    Just a regular guy from Tennessee

    CentOS 7 | DA | CB 2.0 | MariaDB 10.4 | PHP 7.2

    help me...it's HERE or Type "your issue your os directadmin" in google


  3. #3
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,482
    This one:

    Code:
    ./build opt_help
    maybe?
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  4. #4
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    8,002
    "./build opt_help full" would show some descriptions there too
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  5. #5
    Join Date
    Jul 2019
    Posts
    82
    I think I didn't work my question properly. I want to develop my own custombuild option to install my own specific software which DirectAdmin's custombuild options currently doesn't support. So how would I have my own specific software's source compile and/or yum install routines fit into custombuild method of installation ? Is that possible/supported ?

  6. #6
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,482
    CustomBuild/DirectAdmin does not provide such a functionality. Use whatever you want: rpm, source files, etc and build any software which you might need.

    For PECL extensions you can use php-extension.sh from https://github.com/poralix/directadm...ree/master/php

    More utils and integrations from Poralix can be found here: https://github.com/poralix/directadmin-utils/
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  7. #7
    Join Date
    Jul 2019
    Posts
    82
    Thanks Alex for the clarification, info and links

    Already bookmarked your directadmin-utils repo

  8. #8
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,482
    Glad you find it useful.

    As for a deeper customization, if you need to add patches or additional libraries into existing software which is built by DirectAdmin you can always use configure script under custombuild/custom/ and add your code which will be executed right before ./configure... , e.g.:


    - Update configure.nginx with custom directives (REVERSE PROXY):

    Code:
    cd /usr/local/directadmin/custombuild/
    mkdir -p /usr/local/directadmin/custombuild/custom/nginx_reverse/
    [ -f "custom/nginx_reverse/configure.nginx" ] || cp -p configure/nginx_reverse/configure.nginx custom/nginx_reverse/

    - Update configure.nginx with custom directives (STAND-ALONE SERVER):

    Code:
    cd /usr/local/directadmin/custombuild/
    mkdir -p /usr/local/directadmin/custombuild/custom/nginx/
    [ -f "custom/nginx/configure.nginx" ] || cp -p configure/nginx/configure.nginx custom/nginx/
    and so on.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  9. #9
    Join Date
    Jul 2019
    Posts
    82
    Thanks Alex found these configure templates while poking around the internals so definitely will be playing with customising source compilation routines. Lots of ideas of optimisation tweaks I plan to add

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •