phpmyadmin and phpldapadmin add repo

This commit is contained in:
alihanozturk
2016-06-10 09:56:45 +03:00
parent 9aa92205b5
commit 2963a0ae8f
11 changed files with 881 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
WorkDir="phpMyAdmin-%s-all-languages" % get.srcVERSION()
def install():
pisitools.insinto("/usr/share/phpmyadmin", "*")
pisitools.dohtml("*")
pisitools.dodoc("ChangeLog","LICENSE","README")
#for phpmyadmin import sql max size
pisitools.dodir("/usr/share/phpmyadmin/upload")
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/python
import random
import string
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
# Provide different blowfish cookie key for each computer
generated_key = ''.join(random.sample(string.letters + string.digits, 32))
config_path = '/usr/share/phpmyadmin/config.inc.php'
new_config = open(config_path).read().replace('BLOWFISHSECRET', generated_key)
open(config_path, 'w').write(new_config)
def preRemove():
pass
@@ -0,0 +1,78 @@
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki <http://wiki.phpmyadmin.net>.
*
* @version $Id$
* @package phpMyAdmin
*/
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'BLOWFISHSECRET'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['tracking'] = 'pma_tracking';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';
/*
* End of servers configuration
*/
/*
* Directories for saving/loading files from server
*/
/*
*for phpmyadmin import sql max size
*/
$cfg['UploadDir'] = 'upload';
$cfg['SaveDir'] = '';
?>
@@ -0,0 +1,46 @@
# phpmyadmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpmyadmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</Directory>
<Directory /usr/share/phpmyadmin/setup/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</Directory>
# These directories do not require access over HTTP - taken from the original
# phpmyadmin upstream tarball
#
<Directory /usr/share/phpmyadmin/libraries/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
# This configuration prevents mod_security at phpmyadmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#<IfModule mod_security.c>
# <Directory /usr/share/phpmyadmin/>
# SecRuleInheritance Off
# </Directory>
#</IfModule>
+50
View File
@@ -0,0 +1,50 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>phpmyadmin</Name>
<Homepage>http://www.phpmyadmin.net/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:gui</IsA>
<Summary>Browser based MySQL Admin Tool</Summary>
<Description>A populer application for managing MySQL Server; add/update data etc. with PHP5 support.</Description>
<Archive sha1sum="e3382a618af216b28ea8ad0bc5a458428637aa4c" type="tarxz">https://files.phpmyadmin.net/phpMyAdmin/4.6.2/phpMyAdmin-4.6.2-all-languages.tar.xz</Archive>
</Source>
<Package>
<Name>phpmyadmin</Name>
<RuntimeDependencies>
<Dependency>mod_php</Dependency>
<Dependency>mariadb-lib</Dependency>
<Dependency>mariadb-client</Dependency>
<Dependency>mariadb-server</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/phpmyadmin</Path>
<Path fileType="config">/usr/share/phpmyadmin/config.inc.php</Path>
<Path fileType="config">/etc/apache2/conf.d/phpmyadmin.conf</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0655" target="/usr/share/phpmyadmin/config.inc.php">config.inc.php</AdditionalFile>
<AdditionalFile target="/etc/apache2/conf.d/phpmyadmin.conf" owner="root" group="root" permission="0644">phpmyadmin.conf</AdditionalFile>
</AdditionalFiles>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<History>
<Update release="1" type="security">
<Date>2016-06-10</Date>
<Version>4.6.2</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>phpmyadmin</Name>
<Summary xml:lang="tr">Tarayıcı tabanlı MySQL Yönetim Aracı</Summary>
<Description xml:lang="tr">MySQL Sunucusunu yönetmek için PHP5 desteği ile birlikte gelen popüler bir uygulama.</Description>
</Source>
</PISI>