HEX
Server: Apache/2
System: Linux ind.multivistaglobal.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: multivis (1002)
PHP: 8.1.32
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/directadmin/scripts/ncftp.sh
#!/bin/sh

VERSION=3.2.6
PACKAGES_DIR=/usr/local/directadmin/scripts/packages
TAR_FILE="${PACKAGES_DIR}/ncftp-${VERSION}-src.tar.gz"
SRC_DIR="${PACKAGES_DIR}/ncftp-${VERSION}"

mkdir -p "${PACKAGES_DIR}"

if ! curl --fail --location --output "${TAR_FILE}" https://files.directadmin.com/services/ncftp-${VERSION}-src.tar.gz; then
	echo "Unable to download the ncftp-${VERSION}"
	exit 1
fi

tar xzf "${TAR_FILE}" -C "${PACKAGES_DIR}"

(
	cd "${SRC_DIR}" || exit 1

	sed -i 's/^Bookmark/extern Bookmark/' sh_util/gpshare.c
	./configure --prefix=/usr
	make
	make install
)
rm -rf "${SRC_DIR:?}"