From a2f3058dff6ffcfbfa5c5b3bf2f257966b6646b6 Mon Sep 17 00:00:00 2001 From: ThreshMain <50732964+ThreshMain@users.noreply.github.com> Date: Mon, 1 Mar 2021 03:42:42 +0100 Subject: [PATCH] pkg(php): Added php 7.4.15 8.0.2 (#128) --- README.MD | 4 ++-- packages/php.mk | 24 ++++++++++++++++++++++++ packages/php.test | 3 +++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 packages/php.mk create mode 100644 packages/php.test diff --git a/README.MD b/README.MD index 44f9298..db0b24e 100644 --- a/README.MD +++ b/README.MD @@ -204,7 +204,7 @@ Content-Type: application/json # Supported Languages -`python`, +`python`,`php`
@@ -235,4 +235,4 @@ various privilege escalation, denial-of-service, and resource saturation threats # License -Piston is licensed under the MIT license. \ No newline at end of file +Piston is licensed under the MIT license. diff --git a/packages/php.mk b/packages/php.mk new file mode 100644 index 0000000..65dbc37 --- /dev/null +++ b/packages/php.mk @@ -0,0 +1,24 @@ +NAME=php +AUTHOR=Martin Kos +DEPENDENCIES= +COMPILED=false +VERSIONS=7.4.15 8.0.2 + +include common.mk + + +${RUN_FILE}: + echo 'php $$*' > $@ + +${ENV_FILE}: + echo 'export PATH=$$PWD/bin:$$PATH' > $@ + +${BIN_DIR}: ${BUILD_DIR}php-${VERSION}-sources/ + $(eval TMP_DIR=${PWD}/${BUILD_DIR}tmpout) + cd $< && ./configure --prefix ${PREFIX} + $(MAKE) -C $< + INSTALL_ROOT=${TMP_DIR}/ $(MAKE) -C $< install + mv ${TMP_DIR}${PREFIX} ${BIN_DIR} && rm -r ${TMP_DIR} + +${BUILD_DIR}php-${VERSION}-sources.tar.gz: + curl "https://www.php.net/distributions/php-${VERSION}.tar.gz" -o $@ diff --git a/packages/php.test b/packages/php.test new file mode 100644 index 0000000..997ffba --- /dev/null +++ b/packages/php.test @@ -0,0 +1,3 @@ +