Forum: Cfengine Help Subject: custom package_add_command not executing Author: scottdob Link to topic: https://cfengine.com/forum/read.php?3,22257,22257#msg-22257
Hi, A few days ago I was asking around for some assistance on converting bash scripts into cfengine promises to build 3rd party software from source. One route that was suggested to me was to create my own package method that called my custom installer. Well, i did this, and it detects installed packages, but will not execute my installer. Here is my promise bundle and package_method body below. Any help is greatly appreciated! ############################################################################### # # Custom package insaller, installing via make all, make install. # bundle agent bbltls_programs { vars: "programs" slist => { "accounts", "bbscripts", "countfiles", "getpeername", "jed", "nlp", "rto", "rundisplay", "slim", "slocate", "tkdiff", "zephyr" }; "program" slist => { "accounts", "bbscripts" }; packages: "$(program)" package_policy => "add", package_method => bbl_build, package_version => "1.0"; } ################################################################################ # # Call our install script that will run make, make install. # body package_method bbl_build { package_add_command => "/bin/bash /usr/install_scripts/install_bb1tls.sh"; # package_add_command => "/bin/echo adding"; package_delete_command => "/bin/echo deleting"; # package_file_repositories => { "/usr/local/src" }; package_delete_convention => "$(name)"; package_name_convention => "$(name)"; package_list_command => "/usr/install_scripts/list_command.pl"; package_list_name_regex => "([^.]+).*"; package_list_version_regex => "[^\s]\s+([^\s]+).*"; package_list_arch_regex => "[^.]+\.([^\s]+).*"; package_installed_regex => ".*installed.*"; } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine