smb/install_libsmbclient.sh
Andy Scherzinger 8acffcd855
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-02 20:28:14 +02:00

10 lines
430 B
Bash
Executable file

#!/usr/bin/env bash
#
# SPDX-FileCopyrightText: 2015 Robin Appelman <robin@icewind.nl>
# SPDX-License-Identifier: MIT
#
wget -O /tmp/libsmbclient-php.zip https://github.com/eduardok/libsmbclient-php/archive/master.zip
unzip /tmp/libsmbclient-php.zip -d /tmp
cd /tmp/libsmbclient-php-master
phpize && ./configure && make && sudo make install
echo 'extension="smbclient.so"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini