summaryrefslogtreecommitdiffstats
path: root/php-pear
diff options
context:
space:
mode:
authorVlad Glagolev2013-11-26 19:49:45 +0400
committerVlad Glagolev2013-11-26 19:49:45 +0400
commit6473fa23bb2512117cecd3d0b9f29bea18c710b0 (patch)
tree3809b33bee12037b45d78aa8b8b2c611884b0ebe /php-pear
parent6ea210d6b45487314a88d6a66cb6e41c327b5549 (diff)
php-clamav: new spell, ClamAV Interface for PHP5 scripts
Diffstat (limited to 'php-pear')
-rwxr-xr-xphp-pear/php-clamav/DEPENDS2
-rwxr-xr-xphp-pear/php-clamav/DETAILS16
-rwxr-xr-xphp-pear/php-clamav/FINAL5
-rw-r--r--php-pear/php-clamav/HISTORY2
-rwxr-xr-xphp-pear/php-clamav/PRE_BUILD4
-rwxr-xr-xphp-pear/php-clamav/TRIGGERS1
6 files changed, 30 insertions, 0 deletions
diff --git a/php-pear/php-clamav/DEPENDS b/php-pear/php-clamav/DEPENDS
new file mode 100755
index 0000000000..704e00dc1f
--- /dev/null
+++ b/php-pear/php-clamav/DEPENDS
@@ -0,0 +1,2 @@
+depends PHP &&
+depends clamav
diff --git a/php-pear/php-clamav/DETAILS b/php-pear/php-clamav/DETAILS
new file mode 100755
index 0000000000..95c78d5c11
--- /dev/null
+++ b/php-pear/php-clamav/DETAILS
@@ -0,0 +1,16 @@
+ SPELL=php-clamav
+ VERSION=0.15.7
+ SOURCE=${SPELL}_${VERSION}.tar.gz
+ SOURCE_URL[0]=$SOURCEFORGE_URL/$SPELL/$SOURCE
+ SOURCE_HASH=sha512:df14b757ab0625c858cad90afac1b5ed5334dcb277112ccee2b3a944580b871cb8ac718c5e6539d7f93a1602f0626465c553f0ef2f8fba11986fd5dbb98acdb3
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE=http://php-clamav.sourceforge.net/
+ LICENSE[0]=GPL
+ ENTERED=20131126
+ SHORT="ClamAV Interface for PHP5 scripts"
+cat << EOF
+PHP-ClamAV is a PHP5 extension that allows to incorporate virus scanning
+features on your PHP5 scripts.
+
+It uses the Clam AV API for virus scanning.
+EOF
diff --git a/php-pear/php-clamav/FINAL b/php-pear/php-clamav/FINAL
new file mode 100755
index 0000000000..86fba6ca94
--- /dev/null
+++ b/php-pear/php-clamav/FINAL
@@ -0,0 +1,5 @@
+local PHP_EXT=$(php-config --extension-dir) &&
+
+message "${MESSAGE_COLOR}\n" \
+ "Don't forget to add the following line to your php.ini:\n" \
+ "extension = \"$PHP_EXT/clamav.so\"${DEFAULT_COLOR}"
diff --git a/php-pear/php-clamav/HISTORY b/php-pear/php-clamav/HISTORY
new file mode 100644
index 0000000000..b94e8f635a
--- /dev/null
+++ b/php-pear/php-clamav/HISTORY
@@ -0,0 +1,2 @@
+2013-11-26 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS, DEPENDS, PRE_BUILD, FINAL, TRIGGERS: spell created
diff --git a/php-pear/php-clamav/PRE_BUILD b/php-pear/php-clamav/PRE_BUILD
new file mode 100755
index 0000000000..7f85d2f274
--- /dev/null
+++ b/php-pear/php-clamav/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+phpize
diff --git a/php-pear/php-clamav/TRIGGERS b/php-pear/php-clamav/TRIGGERS
new file mode 100755
index 0000000000..fa2f0ec2a2
--- /dev/null
+++ b/php-pear/php-clamav/TRIGGERS
@@ -0,0 +1 @@
+on_cast php cast_self