Browse Source

skel cleanup

Eeems 10 years ago
parent
commit
03ea891a72

+ 0 - 0
etc/packages.conf


+ 4 - 0
etc/packages.d/.gitignore

@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore

+ 11 - 11
etc/sites.conf

@@ -1,13 +1,13 @@
-###########################################################################
-#                                                                         #
-#                           Site declaration                              #
-#                                                                         #
-###########################################################################
+############################################################################################
+#                                                                                          #
+#                           Site declaration                                               #
+#                                                                                          #
+############################################################################################
 sites=()
 for f in `dirname $BASH_SOURCE`/sites.d/*; do source $f; done
-###########################################################################
-#                                                                         #
-#                   To Add a new site:                                    #
-# sites+=([username]="username" [password]="password" [host]="hostname")  #
-#                                                                         #
-###########################################################################
+############################################################################################
+#                                                                                          #
+#                   To Add a new site:                                                     #
+# sites+=([username]="username" [password]="password" [host]="hostname" [type]="ssh|ftp")  #
+#                                                                                          #
+############################################################################################

+ 0 - 8
packages.list

@@ -1,8 +0,0 @@
-/home/eeems/workspace/pac
-/home/eeems/workspace/calcpkg
-/home/eeems/workspace/iskilled
-/home/eeems/workspace/compmon
-/home/eeems/workspace/swaptools
-/home/eeems/workspace/texttools
-/home/eeems/workspace/system-msg
-/home/eeems/workspace/wxwabbitemu

+ 12 - 21
skel/index.php

@@ -1,24 +1,15 @@
 <?php
-	if(isset($_GET['package'])){
-		if(isset($_GET['arch'])){
-			$arch=$_GET['arch'];
-		}else{
-			$arch='i686';
-		}
-		echo exec("cd /home/eeems/omni.eeems.ca/{$arch}; ls -t {$_GET['package']}*.tar.xz");
-	}else{
-		echo file_get_contents('templates/header.template');
-		$db = scandir('phar://'.getcwd().'/x86_64/omni.db');
-		$dir1 = scandir(getcwd().'/i686');
-		$dir2 = scandir(getcwd().'/x86_64');
-		foreach($db as $file) {
-			$desc = file_get_contents('phar://'.getcwd().'/x86_64/omni.db/'.$file.'/desc');
-			$desc = substr($desc,strrpos($desc,'%DESC%')+7,strlen($desc)-strrpos($desc,'%DESC%')-(strlen($desc)-strpos($desc,'%CSIZE%'))-7);
-			echo "<h2>$file</h2><p><h4>{$desc}</h4> :: Downloads<br/>";
-			echo " => <a href='i686/$file-i686.pkg.tar.xz'>i686</a><br/>";
-			echo " => <a href='x86_64/$file-x86_64.pkg.tar.xz'>x86_64</a><br/>";
-			echo "</p>";
-		}
-		echo file_get_contents('templates/footer.template');
+	echo file_get_contents('templates/header.template');
+	$db = scandir('phar://'.getcwd().'/x86_64/omni.db');
+	$dir1 = scandir(getcwd().'/i686');
+	$dir2 = scandir(getcwd().'/x86_64');
+	foreach($db as $file) {
+		$desc = file_get_contents('phar://'.getcwd().'/x86_64/omni.db/'.$file.'/desc');
+		$desc = substr($desc,strrpos($desc,'%DESC%')+7,strlen($desc)-strrpos($desc,'%DESC%')-(strlen($desc)-strpos($desc,'%CSIZE%'))-7);
+		echo "<h2>$file</h2><p><h4>{$desc}</h4> :: Downloads<br/>";
+		echo " => <a href='i686/$file-i686.pkg.tar.xz'>i686</a><br/>";
+		echo " => <a href='x86_64/$file-x86_64.pkg.tar.xz'>x86_64</a><br/>";
+		echo "</p>";
 	}
+	echo file_get_contents('templates/footer.template');
 ?>

+ 2 - 3
skel/templates/header.template

@@ -1,6 +1,6 @@
 <html>
 	<head>
-		<link rel="icon" type="image/ico" href="http://omnimaga.org/favicon.ico">
+		<link rel="icon" type="image/ico" href="favicon.ico">
 		<title>[omni]</title>
 		<style>
 			#wrapper{
@@ -15,5 +15,4 @@
 			<h1>[omni] Repo:</h1>
 			Append this to /etc/pacman.conf
 			<pre>[omni]
-Server = http://omni.eeems.ca/$arch
-Server = http://withg.us.to/eeems/$repo/$arch</pre>
+Server = </pre>

+ 0 - 24
skel2/index.php

@@ -1,24 +0,0 @@
-<?php
-	if(isset($_GET['package'])){
-		if(isset($_GET['arch'])){
-			$arch=$_GET['arch'];
-		}else{
-			$arch='i686';
-		}
-		echo exec("cd /home/eeems/public_htm/omni/{$arch}; ls -t {$_GET['package']}*.tar.xz");
-	}else{
-		echo file_get_contents('templates/header.template');
-		$db = scandir('phar://'.getcwd().'/x86_64/omni.db');
-		$dir1 = scandir(getcwd().'/i686');
-		$dir2 = scandir(getcwd().'/x86_64');
-		foreach($db as $file) {
-			$desc = file_get_contents('phar://'.getcwd().'/x86_64/omni.db/'.$file.'/desc');
-			$desc = substr($desc,strrpos($desc,'%DESC%')+7,strlen($desc)-strrpos($desc,'%DESC%')-(strlen($desc)-strpos($desc,'%CSIZE%'))-7);
-			echo "<h2>$file</h2><p><h4>{$desc}</h4> :: Downloads<br/>";
-			echo " => <a href='i686/$file-i686.pkg.tar.xz'>i686</a><br/>";
-			echo " => <a href='x86_64/$file-x86_64.pkg.tar.xz'>x86_64</a><br/>";
-			echo "</p>";
-		}
-		echo file_get_contents('templates/footer.template');
-	}
-?>

+ 0 - 3
skel2/templates/footer.template

@@ -1,3 +0,0 @@
-		</div>
-	</body>
-</html>

+ 0 - 19
skel2/templates/header.template

@@ -1,19 +0,0 @@
-<html>
-	<head>
-		<link rel="icon" type="image/ico" href="http://omnimaga.org/favicon.ico">
-		<title>[omni]</title>
-		<style>
-			#wrapper{
-				margin-right: auto;
-				margin-left: auto;
-				width: 500px;
-			}
-		</style>
-	</head>
-	<body>
-		<div id="wrapper">
-			<h1>[omni] Repo:</h1>
-			Append this to /etc/pacman.conf
-			<pre>[omni]
-Server = http://omni.eeems.ca/$arch
-Server = http://withg.us.to/eeems/$repo/$arch</pre>