Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (c2611fb2c48c839054d99e2c756e7b31d3df9bea)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (c2611fb2c48c839054d99e2c756e7b31d3df9bea)
  • Date: Thu, 1 Oct 2009 19:43:06 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

net/cacti/DETAILS | 7 +++++++
net/cacti/FINAL | 1 +
net/cacti/HISTORY | 4 ++++
net/cacti/PREPARE | 4 ++++
net/cacti/PRE_BUILD | 12 ++++++++++++
5 files changed, 28 insertions(+)

New commits:
commit c2611fb2c48c839054d99e2c756e7b31d3df9bea
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

cacti: added plugin architecture support

diff --git a/net/cacti/DETAILS b/net/cacti/DETAILS
index 406f921..c54bb7f 100755
--- a/net/cacti/DETAILS
+++ b/net/cacti/DETAILS
@@ -1,6 +1,13 @@
SPELL=cacti
VERSION=0.8.7e
SOURCE=$SPELL-$VERSION.tar.gz
+if [[ $CACTI_PA == y ]]; then
+ VERSION_PA=2.5
+ SOURCE2=$SPELL-plugin-$VERSION-PA-v${VERSION_PA}.zip
+ SOURCE2_URL[0]=http://mirror.cactiusers.org/downloads/plugins/$SOURCE2
+
SOURCE2_HASH=sha512:e9b5c4e914da84742940b8ef461c8621ba3ac0d1f7c1daea20628bbb27aac6fe4e01c3d55f25805bf612ab10c6fdd259feb3c835ad99c4ce8713ef145ad66c16
+SOURCE_DIRECTORY2="$BUILD_DIRECTORY/$SPELL-PA-${VERSION_PA}"
+fi
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
SOURCE_URL[0]=http://www.cacti.net/downloads/$SOURCE

SOURCE_HASH=sha512:b826381cc5e76f95a9bea32754785121d09da505f139323b7d111321f353d7be9ab8cedc5ae26cea828b23a36ad2fca7c2bcd82f541fc3bf485b209698924fdb
diff --git a/net/cacti/FINAL b/net/cacti/FINAL
new file mode 100755
index 0000000..4591c68
--- /dev/null
+++ b/net/cacti/FINAL
@@ -0,0 +1 @@
+rm_source_dir "$SOURCE_DIRECTORY2"
diff --git a/net/cacti/HISTORY b/net/cacti/HISTORY
index 5e179db..8649637 100644
--- a/net/cacti/HISTORY
+++ b/net/cacti/HISTORY
@@ -1,3 +1,7 @@
+2009-10-02 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, PRE{PARE,_BUILD}: added Plugin Architecture setup selection
+ * FINAL: added, to clean up 2nd src dir
+
2009-09-26 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS: updated spell to 0.8.7e; moved official patches to patches/
* BUILD: removed patch-applying
diff --git a/net/cacti/PREPARE b/net/cacti/PREPARE
new file mode 100755
index 0000000..521ab6d
--- /dev/null
+++ b/net/cacti/PREPARE
@@ -0,0 +1,4 @@
+message "Plugin Architecture provides users with the ability to write or
use\n" \
+ "plugins with Cacti" &&
+
+config_query CACTI_PA "Install Plugin Architecture?" n
diff --git a/net/cacti/PRE_BUILD b/net/cacti/PRE_BUILD
index 66c1eb8..64af94d 100755
--- a/net/cacti/PRE_BUILD
+++ b/net/cacti/PRE_BUILD
@@ -1,6 +1,18 @@
default_pre_build &&
+
+if [[ $CACTI_PA == y ]]; then
+ mk_source_dir "$SOURCE_DIRECTORY2"
+ cd "$SOURCE_DIRECTORY2" &&
+ unpack_file 2
+fi &&
+
cd "$SOURCE_DIRECTORY" &&

+if [[ $CACTI_PA == y ]]; then
+ cat "$SOURCE_DIRECTORY2/pa.sql" >> cacti.sql &&
+ patch -p1 <
"$SOURCE_DIRECTORY2/$SPELL-plugin-$VERSION-PA-v${VERSION_PA}.diff"
+fi &&
+
for patch in "$SPELL_DIRECTORY/patches"/*.patch; do
patch -p1 < $patch
done



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (c2611fb2c48c839054d99e2c756e7b31d3df9bea), Vlad Glagolev, 10/01/2009

Archive powered by MHonArc 2.6.24.

Top of Page