Skip to content

Commit

Permalink
Add sources.list and fix cURL
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Feb 9, 2020
1 parent 0890ce9 commit ce9ff49
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
phpize$ver -v
php$ver -m
pecl -V
curl -V
env:
ver: ${{ matrix.php-versions }}
release:
Expand Down
Binary file added php-5.3/deps/curl.so
Binary file not shown.
Binary file added php-5.3/deps/libcurl.so.3
Binary file not shown.
2 changes: 0 additions & 2 deletions php-5.3/install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apt_install="sudo DEBIAN_FRONTEND=noninteractive apt-get install -o Dpkg::Options::=--force-conflicts -y --allow-downgrades --no-upgrade"
dpkg_install="sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts"
sudo mkdir -p /var/run /run/php
$dpkg_install ./deps/*.deb
$apt_install libcurl3
$dpkg_install ./*.deb
for tool in php5 php5-cgi php-config5 phpize5; do
if [ -f /usr/bin/"$tool" ]; then
Expand Down
Binary file removed php-5.3/php5-curl_5.3.29-1~dotdeb.0_amd64.deb
Binary file not shown.
9 changes: 8 additions & 1 deletion php-5.3/post-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
v=5.3
dotdeb=http://packages.dotdeb.org
for tool in php$v php-cgi$v php-config$v phpize$v; do
if [ -f /usr/bin/"$tool" ]; then
tool_name=${tool/[0-9]*/}
Expand All @@ -7,4 +8,10 @@ for tool in php$v php-cgi$v php-config$v phpize$v; do
done
ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
sudo chmod 777 "$ini_file"
echo "date.timezone=UTC" >>"$ini_file"
echo "date.timezone=UTC" >>"$ini_file"
sudo mv ./deps/libcurl.so.3 /usr/lib/libcurl.so.3
sudo mv ./deps/curl.so "$(php -i | grep "extension_dir => /usr" | sed -e "s|.*=> s*||")"/curl.so
echo "extension=curl.so" >>"$ini_file"
echo "deb $dotdeb squeeze all" | sudo tee /etc/apt/sources.list.d/dotdeb-ubuntu-php-"$(lsb_release -s -c)".list
curl -sSLO https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg
Binary file added php-5.4/deps/curl.so
Binary file not shown.
Binary file added php-5.4/deps/libcurl.so.3
Binary file not shown.
2 changes: 0 additions & 2 deletions php-5.4/install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apt_install="sudo DEBIAN_FRONTEND=noninteractive apt-get install -o Dpkg::Options::=--force-conflicts -y --allow-downgrades --no-upgrade"
dpkg_install="sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts"
sudo mkdir -p /var/run /run/php
$dpkg_install ./deps/*.deb
$apt_install libcurl3
$dpkg_install ./*.deb
for tool in php5 php5-cgi php-config5 phpize5; do
if [ -f /usr/bin/"$tool" ]; then
Expand Down
Binary file removed php-5.4/php5-curl_5.4.45-1~dotdeb+7.1_amd64.deb
Binary file not shown.
7 changes: 7 additions & 0 deletions php-5.4/post-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
v=5.4
dotdeb=http://packages.dotdeb.org
for tool in php$v php-cgi$v php-config$v phpize$v; do
if [ -f /usr/bin/"$tool" ]; then
tool_name=${tool/[0-9]*/}
Expand All @@ -8,5 +9,11 @@ done
ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
sudo chmod 777 "$ini_file"
echo "date.timezone=UTC" >>"$ini_file"
sudo mv ./deps/libcurl.so.3 /usr/lib/libcurl.so.3
sudo mv ./deps/curl.so "$(php -i | grep "extension_dir => /usr" | sed -e "s|.*=> s*||")"/curl.so
echo "extension=curl.so" >>"$ini_file"
sudo php5enmod redis
sudo php5enmod xdebug
echo "deb $dotdeb wheezy all" | sudo tee /etc/apt/sources.list.d/dotdeb-ubuntu-php-"$(lsb_release -s -c)".list
curl -sSLO https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg
Binary file added php-5.5/deps/curl.so
Binary file not shown.
Binary file added php-5.5/deps/libcurl.so.3
Binary file not shown.
4 changes: 0 additions & 4 deletions php-5.5/install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
apt_install="sudo DEBIAN_FRONTEND=noninteractive apt-get install -o Dpkg::Options::=--force-conflicts -y --allow-downgrades"
dpkg_install="sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts"
sudo mkdir -p /var/run /run/php
$dpkg_install ./deps/*.deb
if [ "$(lsb_release -s -r)" = "18.04" ]; then
$apt_install libcurl3
fi
$dpkg_install ./*.deb
for tool in php5 php5-cgi php-config5 phpize5; do
if [ -f /usr/bin/"$tool" ]; then
Expand Down
Binary file removed php-5.5/php5-curl_5.5.38-1~dotdeb+7.1_amd64.deb
Binary file not shown.
9 changes: 8 additions & 1 deletion php-5.5/post-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
v=5.5
dotdeb=http://packages.dotdeb.org
for tool in php$v php-cgi$v php-config$v phpize$v; do
if [ -f /usr/bin/"$tool" ]; then
tool_name=${tool/[0-9]*/}
Expand All @@ -8,5 +9,11 @@ done
ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
sudo chmod 777 "$ini_file"
echo "date.timezone=UTC" >>"$ini_file"
sudo mv ./deps/libcurl.so.3 /usr/lib/libcurl.so.3
sudo mv ./deps/curl.so "$(php -i | grep "extension_dir => /usr" | sed -e "s|.*=> s*||")"/curl.so
echo "extension=curl.so" >>"$ini_file"
sudo php5enmod redis
sudo php5enmod xdebug
sudo php5enmod xdebug
echo "deb $dotdeb wheezy-php55 all" | sudo tee /etc/apt/sources.list.d/dotdeb-ubuntu-php-"$(lsb_release -s -c)".list
curl -sSLO https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg

0 comments on commit ce9ff49

Please sign in to comment.