403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
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/Tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/Tools/make_readmes
#!/usr/bin/perl

$PORTSDIR="/usr/ports";
$TEMPLATES=$ENV{TEMPLATES} || "${PORTSDIR}/Templates";
$README=`cat ${TEMPLATES}/README.port`;

while(<>) {
	(@F)=split(/\|/, $_);
	$PKG=$F[0];
	$PORT=$F[1];
	$COMMENT=$F[3];
	$DESCR=$F[4];
	$EMAIL=$F[5];
	$BUILD_DEPENDS=$F[7];
	$RUN_DEPENDS=$F[8];
	$WEBSITE=$F[9];
	

	$DESCR=~s|^\Q$PORT/\E||;
	$PORT=~s|`pwd`||;

	if($WEBSITE) {
		$WEBSITE=" and/or visit the <a href=\"$WEBSITE\">web site</a> for futher informations"
	};
	if($BUILD_DEPENDS) {
		$BUILD_DEPENDS="This port requires package(s) \"$BUILD_DEPENDS\" to build."
	};
	if($RUN_DEPENDS) {
		$RUN_DEPENDS="This port requires package(s) \"$RUN_DEPENDS\" to run."
	};

	$TOP=$PORT;
	$TOP=~s|[^/]+|..|g;

	$tmp=$README;
	$tmp=~s|%%PKG%%|$PKG|g;
	$tmp=~s|%%PORT%%|$PORT|g;
	$tmp=~s|%%COMMENT%%|$COMMENT|g;
	$tmp=~s|%%DESCR%%|$DESCR|g;
	$tmp=~s|%%EMAIL%%|$EMAIL|g;
	$tmp=~s|%%WEBSITE%%|$WEBSITE|g;
	$tmp=~s|%%BUILD_DEPENDS%%|$BUILD_DEPENDS|g;
	$tmp=~s|%%RUN_DEPENDS%%|$RUN_DEPENDS|g;
	$tmp=~s|%%TOP%%|$TOP|g;

	open F,">$PORT/README.html";
	print F $tmp;
	close F
}

Youez - 2016 - github.com/yon3zu
LinuXploit