diff options
Diffstat (limited to 'encap/src')
-rwxr-xr-x | encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl (renamed from encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall) | 18 | ||||
-rw-r--r-- | encap/src/bcfg2-site/site-settings.conf-example | 1 | ||||
-rw-r--r-- | encap/src/encap-profiles/bcfg2-0.8.3pre3.ep | 6 | ||||
-rw-r--r-- | encap/src/encap-profiles/makeself-2.1.4.ep | 1 |
4 files changed, 25 insertions, 1 deletions
diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall b/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl index 4ed875e4c..a02c265cb 100755 --- a/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl @@ -1,3 +1,8 @@ +#include "site-settings.conf" +#compiler-settings +cheetahVarStartToken = @ +commentStartToken = // +#end compiler-settings #!/bin/sh -e umask 002 @@ -76,6 +81,19 @@ else touch ${BASEDIR}/sbin/.SENTINEL_SITE fi +//if int(@BCFG2_CLIENT_RUN_INTERVAL_SECONDS) > 0 +if [ ! -h /service/bcfg2-client ]; then + if [ -d /usr/local/var/svc.d/bcfg2-client ]; then + ln -s /usr/local/var/svc.d/bcfg2-client /service/bcfg2-client + else + printf "ERROR: /usr/local/var/svc.d/bcfg2-client does not exist.\n" + exit 1 + fi +else + printf "INFO: /service/bcfg2-client already exists, not replacing...\n" +fi +//end if + printf "Finished ${ENCAP_PKGNAME} postinstall script.\n" exit 0 diff --git a/encap/src/bcfg2-site/site-settings.conf-example b/encap/src/bcfg2-site/site-settings.conf-example index c29ab36e2..dd7b0425e 100644 --- a/encap/src/bcfg2-site/site-settings.conf-example +++ b/encap/src/bcfg2-site/site-settings.conf-example @@ -18,6 +18,7 @@ #set global $BCFG2_SERVER = "config.localdomain.com" #set global $BCFG2_PORT = "6" #set global $OSTIARY_PORT = "7" +## How often to run the bcfg2 client, or "0" to disable #set global $BCFG2_CLIENT_RUN_INTERVAL_SECONDS = "3600" ## Initial options for bcfg(1). The bcfg2 client is started with these options ## on installation and periodically based on BCFG2_CLIENT_RUN_INTERVAL_SECONDS, diff --git a/encap/src/encap-profiles/bcfg2-0.8.3pre3.ep b/encap/src/encap-profiles/bcfg2-0.8.3pre3.ep index 90fe1183d..0772a7218 100644 --- a/encap/src/encap-profiles/bcfg2-0.8.3pre3.ep +++ b/encap/src/encap-profiles/bcfg2-0.8.3pre3.ep @@ -2,6 +2,12 @@ <!-- $Id$ --> +<!-- To make this work with a new version of bcfg2, first do a "svn mv" --> +<!-- of this file to the new version name, and then do a global search- --> +<!-- replace of the version with the new version (i.e. search for --> +<!-- "0.8.3pre3" and replace with "0.8.3") - DO NOT DO IT MANUALLY, --> +<!-- the version string is referenced by some of the included files. --> + <encap_profile profile_ver="1.0" pkgspec="bcfg2-0.8.3pre3" diff --git a/encap/src/encap-profiles/makeself-2.1.4.ep b/encap/src/encap-profiles/makeself-2.1.4.ep index fa64e1da8..824d2cc40 100644 --- a/encap/src/encap-profiles/makeself-2.1.4.ep +++ b/encap/src/encap-profiles/makeself-2.1.4.ep @@ -14,7 +14,6 @@ url="http://www.pobox.com/users/dclark/mirror/makeself/makeself-2.1.4.run http://www.megastep.org/makeself/makeself-2.1.4.run" subdir="/" > -<!-- TODO check above megastep URL, and create mirror --> <unpack><![CDATA[ cd .. && \ |