more pecl
authorMichael Wallner <mike@php.net>
Tue, 29 Sep 2015 05:40:24 +0000 (07:40 +0200)
committerMichael Wallner <mike@php.net>
Tue, 29 Sep 2015 05:40:24 +0000 (07:40 +0200)
init
presets/CREDITS [new file with mode: 0644]
presets/package.xml [new file with mode: 0644]

diff --git a/init b/init
index 0e63ff0a4745534748fdb84043030d0ed38f60f7..d9917291515730a0977857160c1e5545d50492f4 100755 (executable)
--- a/init
+++ b/init
@@ -22,6 +22,11 @@ do
                SRCFILE=$(mktemp -t $RANDOM)
                php -d variables_order=E $(dirname -- $0)/presets/composer.json >$SRCFILE
                ;;
+       package.xml|CREDITS)
+               test "${PECL+set}" = "" && continue
+               SRCFILE=$(mktemp -t $RANDOM)
+               php -d variables_order=E $(dirname -- $0)/presets/package.xml >$SRCFILE
+               ;;
        README.md)
                SRCFILE=$(mktemp -t $RANDOM)
                php -d variables_order=E $(dirname -- $0)/presets/README.md >$SRCFILE
diff --git a/presets/CREDITS b/presets/CREDITS
new file mode 100644 (file)
index 0000000..2c5da8f
--- /dev/null
@@ -0,0 +1,2 @@
+<?=$_ENV["PECL"]?>
+Michael Wallner
diff --git a/presets/package.xml b/presets/package.xml
new file mode 100644 (file)
index 0000000..331bb38
--- /dev/null
@@ -0,0 +1,72 @@
+<?php extract($_ENV) ?>
+<?xml version="1.0" encoding="UTF-8" ?>
+<package version="2.0" xmlns="http://pear.php.net/dtd/package-2.0"
+ xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+  http://pear.php.net/dtd/tasks-1.0
+  http://pear.php.net/dtd/tasks-1.0.xsd
+  http://pear.php.net/dtd/package-2.0
+  http://pear.php.net/dtd/package-2.0.xsd">
+ <name><?=$PECL?></name>
+ <channel>pecl.php.net</channel>
+ <summary></summary>
+ <description><![CDATA[
+
+]]></description>
+ <lead>
+  <name>Michael Wallner</name>
+  <user>mike</user>
+  <email>mike@php.net</email>
+  <active>yes</active>
+ </lead>
+ <date><?=date("Y-m-d")?></date>
+ <version>
+  <release>0.1.0dev</release>
+  <api>0.1.0</api>
+ </version>
+ <stability>
+  <release>alpha</release>
+  <api>alpha</api>
+ </stability>
+ <license uri="http://copyfree.org/content/standard/licenses/2bsd/license.txt">BSD-2-Clause</license>
+ <notes><![CDATA[
+]]></notes>
+ <contents>
+  <dir name="/">
+   <file role="doc" name="AUTHORS"/>
+   <file role="doc" name="BUGS"/>
+   <file role="doc" name="CONTRIBUTING.md"/>
+   <file role="doc" name="CREDITS"/>
+   <file role="doc" name="LICENSE"/>
+   <file role="doc" name="README.md"/>
+   <file role="doc" name="THANKS"/>
+   <file role="src" name="config.m4"/>
+   <file role="src" name="Makefile.frag"/>
+   <file role="src" name="php_<?=$PECL?>.h"/>
+   <dir name="src">
+    <file role="src" name="php_<?=$PECL?>_api.h"/>
+    <file role="src" name="php_<?=$PECL?>.c"/>
+   </dir>
+   <dir name="tests">
+   </dir>
+  </dir>
+ </contents>
+ <dependencies>
+  <required>
+   <php>
+    <min>7.0.0-dev</min>
+   </php>
+   <pearinstaller>
+    <min>1.4.1</min>
+   </pearinstaller>
+ </dependencies>
+ <providesextension><?=$PECL?></providesextension>
+ <extsrcrelease>
+  <!--configureoption
+   name="with-alib-dir"
+   prompt="where to find alib"
+   default="/usr" />
+  </extsrcrelease-->
+ <changelog />
+</package>