code:
diff -Nuar calamares-3.1.7/src/modules/dracut/main.py calamares-3.1.71/src/modules/dracut/main.py
--- calamares-3.1.7/src/modules/dracut/main.py	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/dracut/main.py	1970-01-01 02:00:00.000000000 +0200
@@ -1,47 +0,0 @@
-#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-#
-# === This file is part of Calamares - <http://github.com/calamares> ===
-#
-#   Copyright 2014-2015, Philip Müller <philm@manjaro.org>
-#   Copyright 2014, Teo Mrnjavac <teo@kde.org>
-#   Copyright 2017, Alf Gaida <agaid@siduction.org>
-#
-#   Calamares is free software: you can redistribute it and/or modify
-#   it under the terms of the GNU General Public License as published by
-#   the Free Software Foundation, either version 3 of the License, or
-#   (at your option) any later version.
-#
-#   Calamares is distributed in the hope that it will be useful,
-#   but WITHOUT ANY WARRANTY; without even the implied warranty of
-#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-#   GNU General Public License for more details.
-#
-#   You should have received a copy of the GNU General Public License
-#   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
-
-import libcalamares
-from libcalamares.utils import target_env_call
-
-
-def run_dracut():
-    """
-    Creates initramfs, even when initramfs already exists.
-
-    :return:
-    """
-    return target_env_call(['dracut', '-f'])
-
-
-def run():
-    """
-    Starts routine to create initramfs. It passes back the exit code
-    if it fails.
-
-    :return:
-    """
-    return_code = run_dracut()
-
-    if return_code != 0:
-        return ("Failed to run dracut on the target",
-                "The exit code was {}".format(return_code))
diff -Nuar calamares-3.1.7/src/modules/dracut/module.desc calamares-3.1.71/src/modules/dracut/module.desc
--- calamares-3.1.7/src/modules/dracut/module.desc	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/dracut/module.desc	1970-01-01 02:00:00.000000000 +0200
@@ -1,5 +0,0 @@
----
-type:       "job"
-name:       "dracut"
-interface:  "python"
-script:     "main.py"
diff -Nuar calamares-3.1.7/src/modules/dracutlukscfg/CMakeLists.txt calamares-3.1.71/src/modules/dracutlukscfg/CMakeLists.txt
--- calamares-3.1.7/src/modules/dracutlukscfg/CMakeLists.txt	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/dracutlukscfg/CMakeLists.txt	1970-01-01 02:00:00.000000000 +0200
@@ -1,9 +0,0 @@
-calamares_add_plugin( dracutlukscfg
-    TYPE job
-    EXPORT_MACRO PLUGINDLLEXPORT_PRO
-    SOURCES
-        DracutLuksCfgJob.cpp
-    LINK_PRIVATE_LIBRARIES
-        calamares
-    SHARED_LIB
-)
diff -Nuar calamares-3.1.7/src/modules/dracutlukscfg/DracutLuksCfgJob.cpp calamares-3.1.71/src/modules/dracutlukscfg/DracutLuksCfgJob.cpp
--- calamares-3.1.7/src/modules/dracutlukscfg/DracutLuksCfgJob.cpp	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/dracutlukscfg/DracutLuksCfgJob.cpp	1970-01-01 02:00:00.000000000 +0200
@@ -1,168 +0,0 @@
-/* === This file is part of Calamares - <http://github.com/calamares> ===
- *
- *   Copyright 2016, Kevin Kofler <kevin.kofler@chello.at>
- *
- *   Calamares is free software: you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation, either version 3 of the License, or
- *   (at your option) any later version.
- *
- *   Calamares is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "DracutLuksCfgJob.h"
-
-#include <QDir>
-#include <QFile>
-#include <QFileInfo>
-#include <QTextStream>
-
-#include "CalamaresVersion.h"
-#include "JobQueue.h"
-#include "GlobalStorage.h"
-
-#include "utils/Logger.h"
-
-// static
-const QLatin1Literal DracutLuksCfgJob::CONFIG_FILE( "/etc/dracut.conf.d/calamares-luks.conf" );
-
-// static
-const char *DracutLuksCfgJob::CONFIG_FILE_HEADER =
-    "# Configuration file automatically written by the Calamares system installer\n"
-    "# (This file is written once at install time and should be safe to edit.)\n"
-    "# Enables support for LUKS full disk encryption with single sign on from GRUB.\n"
-    "\n";
-
-// static
-const char *DracutLuksCfgJob::CONFIG_FILE_CRYPTTAB_KEYFILE_LINE =
-    "# force installing /etc/crypttab even if hostonly=\"no\", install the keyfile\n"
-    "install_items+=\" /etc/crypttab /crypto_keyfile.bin \"\n";
-
-// static
-const char *DracutLuksCfgJob::CONFIG_FILE_CRYPTTAB_LINE =
-    "# force installing /etc/crypttab even if hostonly=\"no\"\n"
-    "install_items+=\" /etc/crypttab \"\n";
-
-// static
-const QLatin1Literal DracutLuksCfgJob::CONFIG_FILE_SWAPLINE( "# enable automatic resume from swap\nadd_device+=\" /dev/disk/by-uuid/%1 \"\n" );
-
-// static
-QString
-DracutLuksCfgJob::rootMountPoint()
-{
-    Calamares::GlobalStorage *globalStorage = Calamares::JobQueue::instance()->globalStorage();
-    return globalStorage->value( QStringLiteral( "rootMountPoint" ) ).toString();
-}
-
-// static
-QVariantList
-DracutLuksCfgJob::partitions()
-{
-    Calamares::GlobalStorage *globalStorage = Calamares::JobQueue::instance()->globalStorage();
-    return globalStorage->value( QStringLiteral( "partitions" ) ).toList();
-}
-
-// static
-bool
-DracutLuksCfgJob::isRootEncrypted()
-{
-    const QVariantList partitions = DracutLuksCfgJob::partitions();
-    for ( const QVariant &partition : partitions )
-    {
-        QVariantMap partitionMap = partition.toMap();
-        QString mountPoint = partitionMap.value( QStringLiteral( "mountPoint" ) ).toString();
-        if ( mountPoint == QStringLiteral( "/" ) )
-            return partitionMap.contains( QStringLiteral( "luksMapperName" ) );
-    }
-    return false;
-}
-
-// static
-bool
-DracutLuksCfgJob::hasUnencryptedSeparateBoot()
-{
-    const QVariantList partitions = DracutLuksCfgJob::partitions();
-    for ( const QVariant &partition : partitions )
-    {
-        QVariantMap partitionMap = partition.toMap();
-        QString mountPoint = partitionMap.value( QStringLiteral( "mountPoint" ) ).toString();
-        if ( mountPoint == QStringLiteral( "/boot" ) )
-            return !partitionMap.contains( QStringLiteral( "luksMapperName" ) );
-    }
-    return false;
-}
-
-// static
-QString
-DracutLuksCfgJob::swapOuterUuid()
-{
-    const QVariantList partitions = DracutLuksCfgJob::partitions();
-    for ( const QVariant &partition : partitions )
-    {
-        QVariantMap partitionMap = partition.toMap();
-        QString fsType = partitionMap.value( QStringLiteral( "fs" ) ).toString();
-        if ( fsType == QStringLiteral( "linuxswap" ) && partitionMap.contains( QStringLiteral( "luksMapperName" ) ) )
-            return partitionMap.value( QStringLiteral( "luksUuid" ) ).toString();
-    }
-    return QString();
-}
-
-DracutLuksCfgJob::DracutLuksCfgJob( QObject* parent )
-    : Calamares::CppJob( parent )
-{
-}
-
-
-DracutLuksCfgJob::~DracutLuksCfgJob()
-{
-}
-
-
-QString
-DracutLuksCfgJob::prettyName() const
-{
-    if ( isRootEncrypted() )
-        return tr( "Write LUKS configuration for Dracut to %1" ).arg( CONFIG_FILE );
-    else
-        return tr( "Skip writing LUKS configuration for Dracut: \"/\" partition is not encrypted" );
-}
-
-
-Calamares::JobResult
-DracutLuksCfgJob::exec()
-{
-    if ( isRootEncrypted() )
-    {
-        const QString realConfigFilePath = rootMountPoint() + CONFIG_FILE;
-        cDebug() << "[DRACUTLUKSCFG]: Writing" << realConfigFilePath;
-        QDir( QStringLiteral( "/" ) ).mkpath( QFileInfo( realConfigFilePath ).absolutePath() );
-        QFile configFile( realConfigFilePath );
-        if ( ! configFile.open( QIODevice::WriteOnly | QIODevice::Text ) )
-        {
-            cDebug() << "[DRACUTLUKSCFG]: Failed to open" << realConfigFilePath;
-            return Calamares::JobResult::error( tr( "Failed to open %1" ).arg( realConfigFilePath ) );
-        }
-        QTextStream outStream( &configFile );
-        outStream << CONFIG_FILE_HEADER
-                  << ( hasUnencryptedSeparateBoot() ? CONFIG_FILE_CRYPTTAB_LINE
-                                                    : CONFIG_FILE_CRYPTTAB_KEYFILE_LINE );
-        const QString swapOuterUuid = DracutLuksCfgJob::swapOuterUuid();
-        if ( ! swapOuterUuid.isEmpty() )
-        {
-            cDebug() << "[DRACUTLUKSCFG]: Swap outer UUID" << swapOuterUuid;
-            outStream << QString(CONFIG_FILE_SWAPLINE).arg( swapOuterUuid ).toLatin1();
-        }
-        cDebug() << "[DRACUTLUKSCFG]: Wrote config to" << realConfigFilePath;
-    } else
-        cDebug() << "[DRACUTLUKSCFG]: / not encrypted, skipping";
-
-    return Calamares::JobResult::ok();
-}
-
-CALAMARES_PLUGIN_FACTORY_DEFINITION( DracutLuksCfgJobFactory, registerPlugin<DracutLuksCfgJob>(); )
diff -Nuar calamares-3.1.7/src/modules/dracutlukscfg/DracutLuksCfgJob.h calamares-3.1.71/src/modules/dracutlukscfg/DracutLuksCfgJob.h
--- calamares-3.1.7/src/modules/dracutlukscfg/DracutLuksCfgJob.h	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/dracutlukscfg/DracutLuksCfgJob.h	1970-01-01 02:00:00.000000000 +0200
@@ -1,60 +0,0 @@
-/* === This file is part of Calamares - <http://github.com/calamares> ===
- *
- *   Copyright 2016, Kevin Kofler <kevin.kofler@chello.at>
- *   Copyright 2017, Adriaan de Groot <groot@kde.org>
- *
- *   Calamares is free software: you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation, either version 3 of the License, or
- *   (at your option) any later version.
- *
- *   Calamares is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef DRACUTLUKSCFGJOB_H
-#define DRACUTLUKSCFGJOB_H
-
-#include <QObject>
-#include <QVariantMap>
-
-#include <CppJob.h>
-
-#include <utils/PluginFactory.h>
-
-#include <PluginDllMacro.h>
-
-class PLUGINDLLEXPORT DracutLuksCfgJob : public Calamares::CppJob
-{
-    Q_OBJECT
-
-public:
-    explicit DracutLuksCfgJob( QObject* parent = nullptr );
-    virtual ~DracutLuksCfgJob() override;
-
-    QString prettyName() const override;
-
-    Calamares::JobResult exec() override;
-
-private:
-    static const QLatin1Literal CONFIG_FILE;
-    static const char *CONFIG_FILE_HEADER;
-    static const char *CONFIG_FILE_CRYPTTAB_KEYFILE_LINE;
-    static const char *CONFIG_FILE_CRYPTTAB_LINE;
-    static const QLatin1Literal CONFIG_FILE_SWAPLINE;
-
-    static QString rootMountPoint();
-    static QVariantList partitions();
-    static bool isRootEncrypted();
-    static bool hasUnencryptedSeparateBoot();
-    static QString swapOuterUuid();
-};
-
-CALAMARES_PLUGIN_FACTORY_DECLARATION( DracutLuksCfgJobFactory )
-
-#endif // DRACUTLUKSCFGJOB_H
diff -Nuar calamares-3.1.7/src/modules/locale/LocalePage.cpp calamares-3.1.71/src/modules/locale/LocalePage.cpp
--- calamares-3.1.7/src/modules/locale/LocalePage.cpp	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/locale/LocalePage.cpp	2017-11-14 02:27:55.108042084 +0300
@@ -320,7 +320,7 @@
                      << ". Assuming the supported languages are already built into "
                         "the locale archive.";
             QProcess localeA;
-            localeA.start( "locale", QStringList() << "-a" );
+            localeA.start( "cat", QStringList() << "/etc/languages" );
             localeA.waitForFinished();
             ba = localeA.readAllStandardOutput();
         }
diff -Nuar calamares-3.1.7/src/modules/localecfg/main.py calamares-3.1.71/src/modules/localecfg/main.py
--- calamares-3.1.7/src/modules/localecfg/main.py	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/localecfg/main.py	2017-11-14 03:07:20.726123018 +0300
@@ -83,13 +83,14 @@
     locale_conf_path = os.path.join(install_path, "etc/locale.conf")
     with open(locale_conf_path, "w") as lcf:
         for k, v in locale_conf.items():
-            lcf.write("{!s}={!s}\n".format(k, v))
+            lcf.write("{!s}\n".format( v))

     # write /etc/default/locale if /etc/default exists and is a dir
     etc_default_path = os.path.join(install_path, "etc/default")
     if os.path.isdir(etc_default_path):
         with open(os.path.join(etc_default_path, "locale"), "w") as edl:
             for k, v in locale_conf.items():
-                edl.write("{!s}={!s}\n".format(k, v))
+                edl.write("{!s}\n".format( v))
+

     return None
diff -Nuar calamares-3.1.7/src/modules/mudur/main.py calamares-3.1.71/src/modules/mudur/main.py
--- calamares-3.1.7/src/modules/mudur/main.py	1970-01-01 02:00:00.000000000 +0200
+++ calamares-3.1.71/src/modules/mudur/main.py	2017-11-14 02:10:42.000000000 +0300
@@ -0,0 +1,64 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+#
+# === This file is part of Calamares - <http://github.com/calamares> ===
+#
+#   Copyright 2014, Anke Boersma <demm@kaosx.us>
+#   Copyright 2015, Philip Müller <philm@manjaro.org>
+#
+#   Calamares is free software: you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation, either version 3 of the License, or
+#   (at your option) any later version.
+#
+#   Calamares is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#   GNU General Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License
+#   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
+
+import os
+import shutil
+
+import libcalamares
+
+
+
+def run():
+
+    install_path = libcalamares.globalstorage.value("rootMountPoint")
+
+
+    path = os.path.join(install_path, "etc/locale.conf")
+
+    mloc = open(path,"r")
+
+    languages = mloc.readline(2)
+
+
+    mudur_file_path = os.path.join(install_path, "etc/conf.d/mudur")
+    lines = []
+    for l in open(mudur_file_path, "r").readlines():
+        if l.strip().startswith('language=') or l.strip().startswith('# language='):
+            if languages == "pt":
+                l = 'language="pt_BR"\n'
+            else:
+                l = 'language="%s"\n' % languages
+        lines.append(l)
+
+    open(mudur_file_path, "w").writelines(lines)
+
+    if os.path.exists(os.path.join(install_path, "etc/sudoers")):
+        os.unlink(os.path.join(install_path, "etc/sudoers"))
+
+
+    source = os.path.join(install_path, "etc/sudoers.orig")
+    target = os.path.join(install_path, "etc/sudoers")
+
+    shutil.copy(source, target)
+
+    libcalamares.utils.target_env_call(['chmod', '440', '/etc/sudoers'])
+
+    return None
diff -Nuar calamares-3.1.7/src/modules/mudur/module.desc calamares-3.1.71/src/modules/mudur/module.desc
--- calamares-3.1.7/src/modules/mudur/module.desc	1970-01-01 02:00:00.000000000 +0200
+++ calamares-3.1.71/src/modules/mudur/module.desc	2017-11-14 02:10:42.000000000 +0300
@@ -0,0 +1,5 @@
+---
+type:       "job"
+name:       "mudur"
+interface:  "python"
+script:     "main.py"
diff -Nuar calamares-3.1.7/src/modules/services/main.py calamares-3.1.71/src/modules/services/main.py
--- calamares-3.1.7/src/modules/services/main.py	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/services/main.py	1970-01-01 02:00:00.000000000 +0200
@@ -1,101 +0,0 @@
-#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-#
-# === This file is part of Calamares - <http://github.com/calamares> ===
-#
-#   Copyright 2014, Philip Müller <philm@manjaro.org>
-#   Copyright 2014, Teo Mrnjavac <teo@kde.org>
-#   Copyright 2017, Alf Gaida <agaida@siduction.org>
-#
-#   Calamares is free software: you can redistribute it and/or modify
-#   it under the terms of the GNU General Public License as published by
-#   the Free Software Foundation, either version 3 of the License, or
-#   (at your option) any later version.
-#
-#   Calamares is distributed in the hope that it will be useful,
-#   but WITHOUT ANY WARRANTY; without even the implied warranty of
-#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-#   GNU General Public License for more details.
-#
-#   You should have received a copy of the GNU General Public License
-#   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
-
-import libcalamares
-
-
-def run():
-    """
-    Setup systemd services
-    """
-    services = libcalamares.job.configuration['services']
-    targets = libcalamares.job.configuration['targets']
-    disable = libcalamares.job.configuration['disable']
-
-    # note that the "systemctl enable" and "systemctl disable" commands used
-    # here will work in a chroot; in fact, they are the only systemctl commands
-    # that support that, see:
-    # http://0pointer.de/blog/projects/changing-roots.html
-
-    # enable services
-    for svc in services:
-        ec = libcalamares.utils.target_env_call(
-            ['systemctl', 'enable', '{}.service'.format(svc['name'])]
-            )
-
-        if ec != 0:
-            if svc['mandatory']:
-                return ("Cannot enable systemd service {}".format(svc['name']),
-                        "systemctl enable call in chroot returned error code "
-                        "{}".format(ec)
-                        )
-            else:
-                libcalamares.utils.debug(
-                    "Cannot enable systemd service {}".format(svc['name'])
-                    )
-                libcalamares.utils.debug(
-                    "systemctl enable call in chroot returned error code "
-                    "{}".format(ec)
-                    )
-
-    # enable targets
-    for tgt in targets:
-        ec = libcalamares.utils.target_env_call(
-            ['systemctl', 'enable', '{}.target'.format(tgt['name'])]
-            )
-
-        if ec != 0:
-            if tgt['mandatory']:
-                return ("Cannot enable systemd target {}".format(tgt['name']),
-                        "systemctl enable call in chroot returned error code"
-                        "{}".format(ec)
-                        )
-            else:
-                libcalamares.utils.debug(
-                    "Cannot enable systemd target {}".format(tgt['name'])
-                    )
-                libcalamares.utils.debug(
-                    "systemctl enable call in chroot returned error code "
-                    "{}".format(ec)
-                    )
-
-    for dbl in disable:
-        ec = libcalamares.utils.target_env_call(
-            ['systemctl', 'disable', '{}.service'.format(dbl['name'])]
-            )
-
-        if ec != 0:
-            if dbl['mandatory']:
-                return ("Cannot disable systemd service"
-                        "{}".format(dbl['name']),
-                        "systemctl disable call in chroot returned error code"
-                        "{}".format(ec))
-            else:
-                libcalamares.utils.debug(
-                    "Cannot disable systemd service {}".format(dbl['name'])
-                    )
-                libcalamares.utils.debug(
-                    "systemctl disable call in chroot returned error code "
-                    "{}".format(ec)
-                    )
-
-    return None
diff -Nuar calamares-3.1.7/src/modules/services/module.desc calamares-3.1.71/src/modules/services/module.desc
--- calamares-3.1.7/src/modules/services/module.desc	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/services/module.desc	1970-01-01 02:00:00.000000000 +0200
@@ -1,6 +0,0 @@
----
-type:       "job"
-name:       "services"
-interface:  "python"
-requires:   []
-script:     "main.py"
diff -Nuar calamares-3.1.7/src/modules/services/services.conf calamares-3.1.71/src/modules/services/services.conf
--- calamares-3.1.7/src/modules/services/services.conf	2017-10-23 23:22:25.000000000 +0300
+++ calamares-3.1.71/src/modules/services/services.conf	1970-01-01 02:00:00.000000000 +0200
@@ -1,20 +0,0 @@
----
-#systemd services and targets are enabled in this precise order
-
-services:
-  - name: "NetworkManager"  #name of the service file
-    mandatory: false        #true=> if enabling fails the installer errors out and quits
-                            #false=>if enabling fails print warning to console and continue
-  - name: "cups"
-    mandatory: false
-
-targets:
-  - name: "graphical"
-    mandatory: true
-
-disable:
-  - name: "pacman-init"
-    mandatory: false
-
-# Example to express an empty list:
-# disable: []


code:
ca_ES.UTF-8
de_DE.UTF-8
en_US.UTF-8
es_ES.UTF-8
fr_FR.UTF-8
hu_HU.UTF-8
it_IT.UTF-8
nl_NL.UTF-8
pl_PL.UTF-8
pt_BR.UTF-8
ru_RU.UTF-8
sv_SE.UTF-8
tr_TR.UTF-8

repo_name: ayhanyalcinsoy/main


code:
--- calamares-2.2.orig/src/modules/mudur/main.py	1970-01-01 02:00:00.000000000 +0200
+++ calamares-2.2/src/modules/mudur/main.py	2016-05-27 21:36:09.787035345 +0300
@@ -0,0 +1,64 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+#
+# === This file is part of Calamares - <http://github.com/calamares> ===
+#
+#   Copyright 2014, Anke Boersma <demm@kaosx.us>
+#   Copyright 2015, Philip Müller <philm@manjaro.org>
+#
+#   Calamares is free software: you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation, either version 3 of the License, or
+#   (at your option) any later version.
+#
+#   Calamares is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#   GNU General Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License
+#   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
+
+import os
+import shutil
+
+import libcalamares
+
+
+
+def run():
+
+    install_path = libcalamares.globalstorage.value("rootMountPoint")
+
+
+    path = os.path.join(install_path, "etc/locale.conf")
+
+    mloc = open(path,"r")
+
+    languages = mloc.readline(2)
+
+
+    mudur_file_path = os.path.join(install_path, "etc/conf.d/mudur")
+    lines = []
+    for l in open(mudur_file_path, "r").readlines():
+        if l.strip().startswith('language=') or l.strip().startswith('# language='):
+            if languages == "pt":
+                l = 'language="pt_BR"\n'
+            else:
+                l = 'language="%s"\n' % languages
+        lines.append(l)
+
+    open(mudur_file_path, "w").writelines(lines)
+
+    if os.path.exists(os.path.join(install_path, "etc/sudoers")):
+        os.unlink(os.path.join(install_path, "etc/sudoers"))
+
+
+    source = os.path.join(install_path, "etc/sudoers.orig")
+    target = os.path.join(install_path, "etc/sudoers")
+
+    shutil.copy(source, target)
+
+    libcalamares.utils.target_env_call(['chmod', '440', '/etc/sudoers'])
+
+    return None
--- calamares-2.2.orig/src/modules/mudur/module.desc	1970-01-01 02:00:00.000000000 +0200
+++ calamares-2.2/src/modules/mudur/module.desc	2016-05-18 10:22:05.000000000 +0300
@@ -0,0 +1,5 @@
+---
+type:       "job"
+name:       "mudur"
+interface:  "python"
+script:     "main.py"


code:
diff -Nuar calamares-2.2.orig/src/modules/initcpiocfg/main.py calamares-2.2/src/modules/initcpiocfg/main.py
--- calamares-2.2.orig/src/modules/initcpiocfg/main.py	2015-10-16 17:56:51.000000000 +0300
+++ calamares-2.2/src/modules/initcpiocfg/main.py	2016-05-31 22:02:52.423693761 +0300
@@ -90,7 +90,7 @@
     modules = []

     # It is important that the plymouth hook comes before any encrypt hook
-    plymouth_bin = os.path.join(root_mount_point, "usr/bin/plymouth")
+    plymouth_bin = os.path.join(root_mount_point, "bin/plymouth")
     if os.path.exists(plymouth_bin):
         hooks.append("plymouth")

@@ -110,8 +110,7 @@
         modules.append("crc32c")
     elif btrfs is "yes" and cpu['proc0']['vendor_id'].lower() == "genuineintel":
         modules.append("crc32c-intel")
-    else:
-        hooks.append("fsck")
+

     set_mkinitcpio_hooks_and_modules(hooks, modules, root_mount_point)


code:
diff -Nuar a/src/modules/locale/LocalePage.cpp b/src/modules/locale/LocalePage.cpp
--- a/src/modules/locale/LocalePage.cpp	2017-10-23 23:22:25.000000000 +0300
+++ b/src/modules/locale/LocalePage.cpp	2017-11-05 16:41:49.935761099 +0300
@@ -320,7 +320,7 @@
                      << ". Assuming the supported languages are already built into "
                         "the locale archive.";
             QProcess localeA;
-            localeA.start( "locale", QStringList() << "-a" );
+            localeA.start( "cat", QStringList() << "/etc/locale.gen" );
             localeA.waitForFinished();
             ba = localeA.readAllStandardOutput();
         }


code:
--- calamares-2.2.orig/src/modules/users/SetHostNameJob.cpp	2015-08-06 12:58:32.000000000 +0300
+++ calamares-2.2/src/modules/users/SetHostNameJob.cpp	2016-05-17 01:02:30.131263802 +0300
@@ -68,7 +68,7 @@
         return Calamares::JobResult::error( tr( "Internal Error" ) );
     }

-    QFile hostfile( destDir + "/etc/hostname" );
+    QFile hostfile( destDir + "/etc/env.d/01hostname" );
     if ( !hostfile.open( QFile::WriteOnly ) )
     {
         cLog() << "Can't write to hostname file";
@@ -76,7 +76,7 @@
     }

     QTextStream hostfileout( &hostfile );
-    hostfileout << m_hostname << "\n";
+    hostfileout << "HOSTNAME=" << "\"" << m_hostname << "\"" << "\n";
     hostfile.close();

     QFile hostsfile( destDir + "/etc/hosts" );


code:
diff -Nuar a/src/modules/localecfg/main.py b/src/modules/localecfg/main.py
--- a/src/modules/localecfg/main.py	2017-12-20 12:22:06.000000000 +0300
+++ b/src/modules/localecfg/main.py	2017-12-26 21:20:05.000000000 +0300
@@ -83,7 +83,7 @@
     locale_conf_path = os.path.join(install_path, "etc/locale.conf")
     with open(locale_conf_path, "w") as lcf:
         for k, v in locale_conf.items():
-            lcf.write("{!s}={!s}\n".format(k, v))
+            lcf.write("{!s}\n".format(v))

     # write /etc/default/locale if /etc/default exists and is a dir
     etc_default_path = os.path.join(install_path, "etc/default")
diff -Nuar a/src/modules/mudur/main.py b/src/modules/mudur/main.py
--- a/src/modules/mudur/main.py	1970-01-01 02:00:00.000000000 +0200
+++ b/src/modules/mudur/main.py	2017-11-25 06:15:16.000000000 +0300
@@ -0,0 +1,64 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+#
+# === This file is part of Calamares - <http://github.com/calamares> ===
+#
+#   Copyright 2014, Anke Boersma <demm@kaosx.us>
+#   Copyright 2015, Philip Müller <philm@manjaro.org>
+#
+#   Calamares is free software: you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation, either version 3 of the License, or
+#   (at your option) any later version.
+#
+#   Calamares is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#   GNU General Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License
+#   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
+
+import os
+import shutil
+
+import libcalamares
+
+
+
+def run():
+
+    install_path = libcalamares.globalstorage.value("rootMountPoint")
+
+
+    path = os.path.join(install_path, "etc/locale.conf")
+
+    mloc = open(path,"r")
+
+    languages = mloc.readline(2)
+
+
+    mudur_file_path = os.path.join(install_path, "etc/conf.d/mudur")
+    lines = []
+    for l in open(mudur_file_path, "r").readlines():
+        if l.strip().startswith('language=') or l.strip().startswith('# language='):
+            if languages == "pt":
+                l = 'language="pt_BR"\n'
+            else:
+                l = 'language="%s"\n' % languages
+        lines.append(l)
+
+    open(mudur_file_path, "w").writelines(lines)
+
+    if os.path.exists(os.path.join(install_path, "etc/sudoers")):
+        os.unlink(os.path.join(install_path, "etc/sudoers"))
+
+
+    source = os.path.join(install_path, "etc/sudoers.orig")
+    target = os.path.join(install_path, "etc/sudoers")
+
+    shutil.copy(source, target)
+
+    libcalamares.utils.target_env_call(['chmod', '440', '/etc/sudoers'])
+
+    return None
diff -Nuar a/src/modules/mudur/module.desc b/src/modules/mudur/module.desc
--- a/src/modules/mudur/module.desc	1970-01-01 02:00:00.000000000 +0200
+++ b/src/modules/mudur/module.desc	2016-05-09 14:24:30.000000000 +0300
@@ -0,0 +1,5 @@
+---
+type:       "job"
+name:       "mudur"
+interface:  "python"
+script:     "main.py"
diff -Nuar a/src/modules/sil/main.py b/src/modules/sil/main.py
--- a/src/modules/sil/main.py	1970-01-01 02:00:00.000000000 +0200
+++ b/src/modules/sil/main.py	2017-12-31 15:05:16.622215846 +0300
@@ -0,0 +1,53 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+#
+# === This file is part of Calamares - <http://github.com/calamares> ===
+#
+#   Copyright 2014, Anke Boersma <demm@kaosx.us>
+#   Copyright 2015, Philip Müller <philm@manjaro.org>
+#
+#   Calamares is free software: you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation, either version 3 of the License, or
+#   (at your option) any later version.
+#
+#   Calamares is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#   GNU General Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License
+#   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
+
+import os
+import shutil
+
+import libcalamares
+
+
+
+
+def run():
+
+   install_path = libcalamares.globalstorage.value("rootMountPoint")
+
+
+   path = os.path.join(install_path, "etc/calamares")
+   if os.path.exists(path):
+        shutil.rmtree(path)
+   path1 = os.path.join(install_path, "usr/lib/calamares")
+   if os.path.exists(path1):
+        shutil.rmtree(path1)
+   path2 = os.path.join(install_path, "usr/bin/calamares")
+   if os.path.exists(path2):
+        os.remove(path2)
+   path3 = os.path.join(install_path, "usr/share/man/man8/calamares.8")
+   if os.path.exists(path3):
+        os.remove(path3)
+   path4 = os.path.join(install_path, "usr/share/applications/calamares.desktop")
+   if os.path.exists(path4):
+        os.remove(path4)
+   path5 = os.path.join(install_path, "usr/share/calamares")
+   if os.path.exists(path5):
+        shutil.rmtree(path5)
+   return None
diff -Nuar a/src/modules/sil/module.desc b/src/modules/sil/module.desc
--- a/src/modules/sil/module.desc	1970-01-01 02:00:00.000000000 +0200
+++ b/src/modules/sil/module.desc	2017-12-26 21:21:52.000000000 +0300
@@ -0,0 +1,5 @@
+---
+type:       "job"
+name:       "sil"
+interface:  "python"
+script:     "main.py"


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>Calamares</Name>
        <Homepage>http://pisilinux.org</Homepage>
        <Packager>
            <Name>Ergün Salman</Name>
            <Email>Poyraz76@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <Summary>A distribution independent installer framework</Summary>
        <Description>Calamares is a distribution-independent system installer, with an advanced partitioning feature for both manual and automated partitioning operations.</Description>
        <Archive sha1sum="a0c1cdca859b565b1feb1b5bf4befa8983d801fd" type="targz">https://github.com/calamares/calamares/releases/download/v3.1.11/calamares-3.1.11.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>gettext-devel</Dependency>
            <Dependency>yaml-cpp</Dependency>
            <Dependency versionFrom="1.60">boost-devel</Dependency>
            <Dependency versionFrom="1.60">boost-python3</Dependency>
            <Dependency>ki18n-devel</Dependency>
            <Dependency>kcoreaddons</Dependency>
            <Dependency>solid-devel</Dependency>
            <Dependency>parted-devel</Dependency>
            <Dependency>qt5-linguist</Dependency>
            <Dependency>qt5-svg-devel</Dependency>
            <Dependency>udisks2-devel</Dependency>
            <Dependency>libyaml-devel</Dependency>
            <Dependency>python3-devel</Dependency>
            <Dependency>kconfig-devel</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>polkit-qt-devel</Dependency>
            <Dependency>qt5-webkit-devel</Dependency>
            <Dependency>qt5-webengine-devel</Dependency>
            <Dependency>libatasmart-devel</Dependency>
            <Dependency>kcoreaddons-devel</Dependency>
            <Dependency>qt5-designer-devel</Dependency>
            <Dependency>qt5-assistant-devel</Dependency>
            <Dependency>libutil-linux-devel</Dependency>
            <Dependency>qt5-declarative-devel</Dependency>
            <Dependency>libxkbfile-devel</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
            <Dependency>squashfs-tools</Dependency>
            <Dependency>efibootmgr-devel</Dependency>
            <Dependency>rsync</Dependency>
            <Dependency>gptfdisk</Dependency>
            <Dependency>extra-cmake-modules</Dependency>
            <Dependency>kpmcore-devel</Dependency>
            <Dependency>kiconthemes-devel</Dependency>
            <Dependency>kio-devel</Dependency>
            <Dependency>kservice-devel</Dependency>
            <Dependency>kconfig-devel</Dependency>
            <Dependency>kparts-devel</Dependency>
            <Dependency>plasma-framework-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">pisilocalayar.patch</Patch>
            <Patch level="1">pisi_set_hostname.patch</Patch>
<!--             <Patch level="1">d.patch</Patch> -->
            <Patch level="1">no_fsck_and_pymouth.patch</Patch>
      </Patches>
    </Source>

    <Package>
        <Name>Calamares</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency versionFrom="1.60">boost</Dependency>
            <Dependency versionFrom="1.60">boost-python3</Dependency>
            <Dependency>python3</Dependency>
            <Dependency>kcrash</Dependency>
            <Dependency>parted</Dependency>
            <Dependency>solid</Dependency>
            <Dependency>ki18n</Dependency>
            <Dependency>rsync</Dependency>
            <Dependency>kconfig</Dependency>
            <Dependency>kcoreaddons</Dependency>
            <Dependency>qt5-svg</Dependency>
            <Dependency>qt5-webkit</Dependency>
            <Dependency>libatasmart</Dependency>
            <Dependency>qt5-declarative</Dependency>
            <Dependency>rsync</Dependency>
            <Dependency>ntfs-3g</Dependency>
            <Dependency>qt5-base</Dependency>
            <Dependency>gptfdisk</Dependency>
            <Dependency>e2fsprogs</Dependency>
            <Dependency>dmidecode</Dependency>
            <Dependency>efibootmgr</Dependency>
            <Dependency>libxkbfile</Dependency>
            <Dependency>dosfstools</Dependency>
            <Dependency>libutil-linux</Dependency>
            <Dependency>util-linux</Dependency>
            <Dependency>kpmcore</Dependency>
            <Dependency>partitionmanager</Dependency>
            <Dependency>qt5-webengine</Dependency>
            <Dependency>kiconthemes</Dependency>
            <Dependency>kio</Dependency>
            <Dependency>kservice</Dependency>
            <Dependency>kconfig</Dependency>
            <Dependency>kparts</Dependency>
            <Dependency>kpackage</Dependency>
            <Dependency>calamares-theme-pisilinux</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/*</Path>
            <Path fileType="library">/usr/lib/calamares/</Path>
            <Path fileType="data">/usr/include/libcalamares/*</Path>
            <Path fileType="library">/usr/lib/cmake/Calamares/</Path>
            <Path fileType="library">/usr/lib/calamares/modules/*</Path>
            <Path fileType="library">/usr/libexec/</Path>
            <Path fileType="library">/etc/languages</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/applications/calamares.desktop">calamares.desktop</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/languages">languages</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="8">
            <Date>2017-12-27</Date>
            <Version>3.1.11</Version>
            <Comment>Version Bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2017-12-19</Date>
            <Version>3.1.10</Version>
            <Comment>Version Bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2017-12-07</Date>
            <Version>3.1.7</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2017-11-15</Date>
            <Version>3.1.7</Version>
            <Comment>Version Bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2016-12-13</Date>
            <Version>2.4.83</Version>
            <Comment>Version Bump</Comment>
            <Name>Ergün Salman</Name>
            <Email>Poyraz76@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-12-13</Date>
            <Version>2.4.80</Version>
            <Comment>Version Bump</Comment>
            <Name>Ergün Salman</Name>
            <Email>Poyraz76@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>2.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-06-03</Date>
            <Version>2.2</Version>
            <Comment>First Release.</Comment>
            <Name>Ergün Salman</Name>
            <Email>Poyraz76@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>Calamares</Name>
        <Summary xml:lang="tr">Dağıtım bağımsız sistem yükleyici </Summary>
        <Description xml:lang="tr">Calamares dağıtım bağımsız bir sistem yükleyicidir.</Description>
    </Source>
</PISI>


code:
#!/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

def install():
    pisitools.dodir("/usr/share/calamares/branding/pisilinux")
    pisitools.insinto("/usr/share/calamares/branding/pisilinux", "branding/pisi-kde/*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>calamares-theme-pisilinux</Name>
        <Homepage>http://www.pisilinux.org</Homepage>
        <Packager>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>data</IsA>
        <Summary>PiSi Linux theme files for Calamares</Summary>
        <Description>calamares-theme includes PiSi Linux theme files for Calamares(Distribution-independent installer framework).</Description>
        <Archive sha1sum="895bc1f59974dc66312dc0a0f662a323e05775e3" type="targz">https://github.com/PisiLinuxNew/calamares-pisilinux/archive/0.1a.tar.gz</Archive>
    </Source>

    <Package>
        <Name>calamares-theme-pisilinux</Name>
        <Files>
            <Path fileType="data">/usr/share/calamares</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>0.1a</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-05-09</Date>
            <Version>0.1a</Version>
            <Comment>First release</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>calamares-theme-pisilinux</Name>
        <Summary xml:lang="tr">Calamares sistem yükleyici için Pisi Linux tema dosyaları</Summary>
        <Description xml:lang="tr">calamares-theme Calamares (Dağıtım bağımsız sistem yükleyici) projesi için Pisi Linux tema dosyaları içerir.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>system.installer</Name>
</PISI>


code:
#!/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 pythonmodules

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>yali-branding-pisilinux</Name>
        <Homepage>http://www.pisilinux.org</Homepage>
        <Packager>
            <Name>Pisi Linux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>data</IsA>
        <Summary>Pisi Linux Branding files for YALI</Summary>
        <Description>yali-branding includes Pisi Linux branding files for YALI(Yet Another Linux Installer).</Description>
        <Archive sha1sum="461adabd575f2a7538c8807102d6deb66ba9c6a8" type="targz">https://github.com/forYali/yali-branding-pisilinux/archive/0.4.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>intltool</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>yali-branding-pisilinux</Name>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/yali/branding</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-03-22</Date>
            <Version>0.4.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2017-03-05</Date>
            <Version>0.4</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>yali-branding-pisilinux</Name>
        <Summary xml:lang="tr">Yali için Pisi Linux dosyaları</Summary>
        <Description xml:lang="tr">yalı-branding YALI projesi Pisi Linux dosyalarını içerir.</Description>
    </Source>
</PISI>


code:
#!/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 pythonmodules
from pisi.actionsapi import pisitools

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()


code:
--- setup_old.py	2016-08-13 23:13:53.000000000 +0300
+++ setup.py	2017-03-15 20:53:58.626914961 +0300
@@ -19,7 +19,7 @@
         build.run(self)

         self.mkpath(self.build_base)
-        self.spawn(["rcc", "-binary", "data.qrc", "-o", "%s/data.rcc" % self.build_base])
+        self.spawn(["rcc-qt5", "-binary", "data.qrc", "-o", "%s/data.rcc" % self.build_base])

 class Install(install):


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>yali-theme-pisilinux</Name>
        <Homepage>http://www.pisilinux.org</Homepage>
        <Packager>
            <Name>Pisi Linux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>data</IsA>
        <Summary>PiSi Linux theme files for YALI</Summary>
        <Description>yali-branding includes PiSi Linux theme files for YALI(Yet Another Linux Installer).</Description>
        <Archive sha1sum="ec9981bf0898b98585ae6bf96a437efa44f3519a" type="targz">https://github.com/forYali/yali-theme-pisilinux/archive/0.4.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>qt5-base</Dependency>
        </BuildDependencies>
        <!--Patches>
            <Patch>rcc.patch</Patch>
        </Patches-->
    </Source>

    <Package>
        <Name>yali-theme-pisilinux</Name>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/yali/theme</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-04</Date>
            <Version>0.4.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2017-03-22</Date>
            <Version>0.4.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2017-03-15</Date>
            <Version>0.4</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>yali-theme-pisilinux</Name>
        <Summary xml:lang="tr">Yali için Pisi Linux tema dosyaları</Summary>
        <Description xml:lang="tr">yalı-theme YALI projesi Pisi Linux tema dosyaları içerir.</Description>
    </Source>
</PISI>


code:
#!/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 pisitools
from pisi.actionsapi import pythonmodules

def setup():
    repo_uri = "http://ciftlik.pisilinux.org/2.0-Beta.1/pisi-index.xml.xz" # FIXME
    pisitools.dosed("yali/constants.py", "@REPO_URI@", repo_uri)
    pisitools.dosed("yali/constants.py", "@REPO_NAME@", "Beta") # FIXME

    pisitools.dosed("conf/yali.conf", "@INSTALL_TYPE@", "default")

def build():
    pythonmodules.compile()

def install():
    pythonmodules.install()

    pisitools.domove("/usr/share/applications/yali.desktop", "/usr/share/display-managers/")
    pisitools.removeDir("usr/share/applications")


code:
--- yali/storage/operations.py~	2014-08-10 11:45:14.877968618 +0200
+++ yali/storage/operations.py	2014-08-10 11:49:31.360959247 +0200
@@ -235,6 +235,7 @@

             self.device.disk.format.commitToDisk()

+        yali.baseudev.udev_settle()
         info = udev_get_block_device(self.device.sysfsPath)
         try:
             olduuid = udev_device_get_uuid(info)


code:
--- yali/util.py~	2014-06-16 21:18:24.394455789 +0200
+++ yali/util.py	2014-06-16 21:19:17.858453835 +0200
@@ -370,10 +370,6 @@
     chroot("/bin/service dbus start")

 def stop_dbus():
-    filesdb = pisi.db.filesdb.FilesDB()
-    if filesdb.is_initialized():
-        filesdb.close()
-
     # stop dbus
     chroot("/bin/service dbus stop")
     # kill comar in chroot if any exists


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>yali</Name>
        <Homepage>http://www.pisilinux.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:gui</IsA>
        <Summary>Yet Another Linux Installer</Summary>
        <Description>YALI is the graphical installer for PiSi Linux distribution which is written using the Qt framework.</Description>
        <Archive sha1sum="efeb39679f5ca4335be42f000a89b7f330be46aa" type="targz">https://github.com/forYali/yali/archive/3.0.4.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-qt5-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>python-pygobject-devel</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!--Patch>no_old_filesdb.patch</Patch-->
            <Patch>fix_find_device.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>yali</Name>
        <RuntimeDependencies>
            <Dependency>python-qt5</Dependency>
            <Dependency>util-linux</Dependency>
            <Dependency>python</Dependency>
            <Dependency>e2fsprogs</Dependency>
            <!--<Dependency>gptsync</Dependency> -->
            <Dependency>mdadm</Dependency>
            <Dependency>lvm2</Dependency>
            <Dependency>reiserfsprogs</Dependency>
            <Dependency>ntfsprogs</Dependency>
            <Dependency>dosfstools</Dependency>
            <Dependency>xfsprogs</Dependency>
            <Dependency>zorg</Dependency>
            <Dependency>comar</Dependency>
            <Dependency>panda</Dependency>
            <Dependency>python-pyaspects</Dependency>
            <Dependency>pisilinux-python</Dependency>
            <Dependency>pisilinux-python-xorg</Dependency>
            <Dependency>syslinux</Dependency>
            <Dependency>pyqtermwidget5</Dependency>
            <!-- disable gfx family , find a proper solution for its menu generation -->
            <!--Dependency>gfxtheme-pisilinux-install</Dependency-->
            <Dependency>pyparted</Dependency>
            <Dependency>python-pyblock</Dependency>
            <Dependency>yali-branding-pisilinux</Dependency>
            <Dependency>yali-theme-pisilinux</Dependency>
            <Dependency>python-udev</Dependency>
            <Dependency>pisilinux-desktop-services</Dependency>
            <!--
            pardusman should add locale packages according to the selected languages.
            IsA tags could be used to decide which packages to be installed.
            -->
            <Dependency>glibc-locales-nl</Dependency>
            <Dependency>glibc-locales-de</Dependency>
            <Dependency>glibc-locales-es</Dependency>
            <Dependency>glibc-locales-pt</Dependency>
            <Dependency>glibc-locales-sv</Dependency>
            <Dependency>glibc-locales-fr</Dependency>
            <Dependency>glibc-locales-it</Dependency>
            <Dependency>glibc-locales-ca</Dependency>
            <Dependency>glibc-locales-pl</Dependency>
            <Dependency>glibc-locales-ru</Dependency>
            <Dependency>glibc-locales-hu</Dependency>
            <Dependency>glibc-locales-hr</Dependency>
            <Dependency>droid-fonts</Dependency>
            <!-- <Dependency>cursor-theme-oxygen-white</Dependency> -->
        </RuntimeDependencies>
        <Conflicts>
           <Package>Calamares</Package>
           <Package>calamares-theme-pisilinux</Package>
        </Conflicts>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="data">/etc/yali</Path>
            <Path fileType="data">/lib/udev/rules.d/70-yali.rules</Path>
        </Files>
    </Package>

    <History>
        <Update release="6">
            <Date>2017-12-25</Date>
            <Version>3.0.4.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2017-11-04</Date>
            <Version>3.0.4.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2017-08-12</Date>
            <Version>3.0.4.1</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-15</Date>
            <Version>3.0.4.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2017-03-08</Date>
            <Version>3.0.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2017-03-05</Date>
            <Version>3.0.3</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>yali</Name>
        <Summary xml:lang="tr">YALI: PiSi Linux kurulum yazılımı</Summary>
        <Description xml:lang="tr">YALI: PiSi Linux kurulum yazılımı.</Description>
        <Description xml:lang="fr">YALI: Yet Another Linux Installer (encore un nouvel installateur Linux).</Description>
        <Description xml:lang="pl">YALI jest graficznym instalatorem PiSi Linux.</Description>
    </Source>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    autotools.autoreconf("-vif")
    autotools.configure("--with-libcap-ng=yes \
                         --enable-gssapi-krb5=no \
                         --enable-systemd=no \
                         --with-python=yes \
                         --disable-static")

def build():
    autotools.make()

def check():
    autotools.make("-j1 check")

def install():
    autotools.rawInstall('DESTDIR="%s"' % get.installDIR())

    # remove RH specific bits
    pisitools.removeDir("/etc/sysconfig")
    pisitools.removeDir("/etc/rc.d")

    # Create data directories
    pisitools.dodir("/var/log/audit")
    pisitools.dodir("/var/spool/audit")

    # Disable zos-remote plugin to get rid of deps. like cyrus-sasl
    pisitools.remove("/usr/share/man/man8/audispd-zos-remote.8")
    pisitools.remove("/usr/share/man/man5/zos-remote.conf.5")

    pisitools.dodoc("AUTHORS", "ChangeLog", "THANKS", "TODO", "README", "COPYING")


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

import os

def postInstall(fromVersion, fromRelease, toVersion, toRelease):
    os.system("ln -s /usr/sbin/audispd /sbin/audispd")
    os.system("ln -s /usr/sbin/auditd /sbin/auditd")
    os.system("/bin/systemctl enable auditd.service")


code:
# -*- coding: utf-8 -*-
from comar.service import *

serviceType = "server"
serviceDesc = _({"en": "AUDIT Daemon",
                 "tr": "AUDIT Servisi"})
serviceDefault = "on"

@synchronized
def start():
    reply = startService(command="/usr/sbin/auditd",
                         pidfile="/run/auditd.pid",
                         donotify=True)
    if reply == 0:
        run("/usr/sbin/auditctl -R /etc/audit/rules.d/audit.rules")

@synchronized
def stop():
    stopService(pidfile="/run/auditd.pid",
                        donotify=True)
    run("/usr/sbin/auditctl -D")

def status():
    return isServiceRunning("/run/auditd.pid")


code:
diff -Nuar audit-2.3.6.orig/audisp/plugins/Makefile.am audit-2.3.6/audisp/plugins/Makefile.am
--- audit-2.3.6.orig/audisp/plugins/Makefile.am 2014-04-11 22:49:23.000000000 +0300
+++ audit-2.3.6/audisp/plugins/Makefile.am      2014-05-17 01:46:10.260461732 +0300
@@ -22,7 +22,7 @@

 CONFIG_CLEAN_FILES = *.loT *.rej *.orig

-SUBDIRS = builtins zos-remote remote
+SUBDIRS = builtins  remote
 #SUBDIRS = builtins zos-remote
 if HAVE_PRELUDE
 SUBDIRS += prelude
diff -Nuar audit-2.3.6.orig/configure.ac audit-2.3.6/configure.ac
--- audit-2.3.6.orig/configure.ac       2014-04-11 22:49:33.000000000 +0300
+++ audit-2.3.6/configure.ac    2014-05-17 01:44:36.753791021 +0300
@@ -291,7 +291,7 @@
 AC_SUBST(LIBPRELUDE_CFLAGS)
 AC_SUBST(LIBPRELUDE_LDFLAGS)

-AC_OUTPUT(Makefile lib/Makefile lib/test/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile src/libev/Makefile src/test/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/prelude/Makefile audisp/plugins/remote/Makefile audisp/plugins/zos-remote/Makefile bindings/Makefile bindings/python/Makefile tools/Makefile tools/aulast/Makefile tools/aulastlog/Makefile tools/ausyscall/Makefile tools/auvirt/Makefile)
+AC_OUTPUT(Makefile lib/Makefile lib/test/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile src/libev/Makefile src/test/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/prelude/Makefile audisp/plugins/remote/Makefile  bindings/Makefile bindings/python/Makefile tools/Makefile tools/aulast/Makefile tools/aulastlog/Makefile tools/ausyscall/Makefile tools/auvirt/Makefile)

 echo .
 echo "


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>audit</Name>
        <Homepage>http://people.redhat.com/sgrubb/audit/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <IsA>service</IsA>
        User space tools for kernel auditing
        <Description>audit contains the user space utilities for storing and searching the audit records generated by the audit subsystem in the Linux 2.6 kernel.</Description>
        <Archive sha1sum="48d2a5eac70d7cf94495447500df491cdcf26969" type="targz">http://people.redhat.com/sgrubb/audit/audit-2.8.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>kernel-headers</Dependency>
            <Dependency>libcap-ng-devel</Dependency>
            <Dependency>tcp-wrappers-devel</Dependency>
            <Dependency>swig</Dependency>
            <Dependency>openldap-client</Dependency>
        </BuildDependencies>
        <Patches>

       </Patches>
    </Source>

    <Package>
        <Name>audit</Name>
        <RuntimeDependencies>
            <Dependency>libcap-ng</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/var/log/audit</Path>
            <Path fileType="data">/var/spool/audit</Path>
            <Path fileType="data">/usr/share</Path>
        </Files>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>python-audit</Name>
        Python bindings for audit
        <RuntimeDependencies>
            <Dependency release="current">audit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/python*</Path>
        </Files>
    </Package>

    <Package>
        <Name>audit-devel</Name>
        <PartOf>system.devel</PartOf>
        Development files for audit
        <RuntimeDependencies>
            <Dependency release="current">audit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-15</Date>
            <Version>2.8.2</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-09-20</Date>
            <Version>2.7.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>2.3.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-21</Date>
            <Version>2.3.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>audit</Name>
        Linux çekirdeğinin 2.6 sürümü için inceleme/denetleme araçları
        <Description xml:lang="tr">audit Linux çekirdeğinin 2.6 sürümünün inceleme altyapısı tarafından üretilen inceleme kayıtlarını aramak ve saklamak için kullanılan araçları içerir.</Description>
    </Source>

    <Package>
        <Name>python-audit</Name>
        audit için Python bağlayıcısı
    </Package>

    <Package>
        <Name>audit-devel</Name>
        audit için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def setup():
    shelltools.system("./bootstrap.sh")

    autotools.configure("--sbindir=/usr/bin \
                         --prefix=/usr \
                         --disable-static \
                         --with-distro=pardus")

def build():
    autotools.make()

def install():
     autotools.rawInstall("DESTDIR=%s" % get.installDIR())


code:
# -*- coding: utf-8 -*-
from comar.service import *

serviceType = "local"
serviceDesc = _({"en": "Cgroup Management Daemon",
                 "tr": "Cgroup Yönetim Servisi"})

serviceDefault="on"

CGMANAGER_PIDFILE = "/run/cgmanager.pid"
CGPROXY_PIDFILE = "/run/cgproxy.pid"

@synchronized
def start():
    startService(command="/usr/bin/cgmanager",
                args="--daemon --mount=subsystems",
                donotify=True)

    startService(command="/usr/bin/cgproxy",
                args="--daemon",
                donotify=True)

@synchronized
def stop():
    stopService(pidfile=CGPROXY_PIDFILE, donotify=True)
    stopService(pidfile=CGMANAGER_PIDFILE, donotify=True)

def status():
    result = isServiceRunning(CGMANAGER_PIDFILE) and isServiceRunning(CGPROXY_PIDFILE)
    return result


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>cgmanager</Name>
        <Homepage>https://github.com/lxc/cgmanager</Homepage>
        <Packager>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Packager>
        <License>GPL</License>
        <IsA>app:console</IsA>
        <Summary>Central cgroup management daemon</Summary>
        <Description>CGManager is a central privileged daemon that manages all your cgroups for you through a simple DBus API.</Description>
        <Archive sha1sum="3335e7467b56e155319fcc0426138b21afb2bfd2" type="targz">https://github.com/lxc/cgmanager/archive/v0.41.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libnih-devel</Dependency>
            <Dependency>pam-devel</Dependency>
            <Dependency>help2man</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>cgmanager</Name>
        <RuntimeDependencies>
            <Dependency>libnih</Dependency>
            <Dependency>pam</Dependency>
            <Dependency>dbus</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/libexec/cgmanager/cgm-release-agent</Path>
            <Path fileType="library">/lib/security</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/cgmanager</Path>
            <Path fileType="library">/usr/lib/libcgmanager*</Path>
        </Files>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>
    <Package>
        <Name>cgmanager-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">cgmanager</Dependency>
            <Dependency>libnih-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-15</Date>
            <Version>0.41</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-28</Date>
            <Version>0.39</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>0.39</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-09-10</Date>
            <Version>0.39</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>cgmanager</Name>
        <Summary xml:lang="tr">Merkezi cgroup yönetimi uygulamacığı</Summary>
        <Description xml:lang="tr">CGManager basit bir DBUS api üzerinden sizin için tüm cgruplarınızı yöneten merkezi ayrıcalıklı bir uygulamacıktır.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>util.admin</Name>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2017 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")

    shelltools.system("meson .. --prefix=/usr --sysconfdir=/etc --localstatedir=/var -Dsystemd=false -Dconsolekit=true -Dplugin_uefi_labels=false -Dplugin_thunderbolt=false -Dgtkdoc=false -Dman=false")

def build():
    shelltools.cd("build")

    shelltools.system("ninja")

def install():
    shelltools.cd("build")

    shelltools.system("DESTDIR=%s ninja install" % get.installDIR())

    #pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>fwupd</Name>
        <Homepage>https://fwupd.org</Homepage>
        <Packager>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Packager>
        <License>GPLv2</License>
        <Summary>Aims to make updating firmware on Linux automatic, safe and reliable</Summary>
        <Description>Aims to make updating firmware on Linux automatic, safe and reliable</Description>
        <Archive sha1sum="15fbcf460a79efb2d0015e017d9d76a28db50d0f" type="targz">https://github.com/hughsie/fwupd/archive/1.0.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>appstream-glib-devel</Dependency>
            <Dependency>libgudev-devel</Dependency>
            <Dependency>libusb-devel</Dependency>
            <Dependency>libgusb-devel</Dependency>
            <Dependency>gnutls-devel</Dependency>
            <Dependency>gpgme-devel</Dependency>
            <Dependency>fwupdate-devel</Dependency>
            <Dependency>efivar-devel</Dependency>
            <Dependency>colord-devel</Dependency>
            <Dependency>python3-pillow</Dependency>
            <Dependency>python3-pygobject3-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>polkit-devel</Dependency>
            <Dependency>ConsoleKit-devel</Dependency>
            <Dependency>libsmbios-devel</Dependency>
            <Dependency>meson</Dependency>
        </BuildDependencies>
        <Patches>
            <!--
            <Patch level="1"></Patch>
            -->
        </Patches>
    </Source>

    <Package>
        <Name>fwupd</Name>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>colord</Dependency>
            <Dependency>efivar</Dependency>
            <Dependency>sqlite</Dependency>
            <Dependency>libgusb</Dependency>
            <Dependency>libsoup</Dependency>
            <Dependency>fwupdate</Dependency>
            <Dependency>libgudev</Dependency>
            <Dependency>elfutils</Dependency>
            <Dependency>libsmbios</Dependency>
            <Dependency>libarchive</Dependency>
            <Dependency>libutil-linux</Dependency>
            <Dependency>appstream-glib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/lib</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/polkit-1</Path>
            <Path fileType="data">/usr/share/dbus-1</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
            <Path fileType="data">/usr/share/fwupd</Path>
            <Path fileType="data">/usr/share/metainfo</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="data">/usr/share/installed-tests</Path>
            <Path fileType="data">/var</Path>
        </Files>
    </Package>

        <Package>
        <Name>fwupd-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">fwupd</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-12-15</Date>
            <Version>1.0.2</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2017 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

# WorkDir = ""
# NoStrip = "/"

#def setup():
#    shelltools.system("sed 's@ -Werror\([[:space:]]\|\n\)@\1@' -i linux/Makefile")

def build():
    autotools.make("V=1 EFIDIR=org.pisilinux GNUEFIDIR=/usr/lib")

def install():
    pisitools.dodir("/usr/include")
    autotools.rawInstall("LIBDIR=/usr/lib libexecdir=/usr/lib/ EFIDIR=org.pisilinux GNUEFIDIR=/usr/lib DESTDIR=%s" % get.installDIR())

    pisitools.domove("/boot/efi/EFI", "/usr/lib/fwupdate/EFI")
    pisitools.removeDir("/boot")
    pisitools.removeDir("/usr/lib/debug")
    pisitools.removeDir("/usr/src")
    pisitools.removeDir("/usr/share/fwupdate")

    #pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS")


code:
--- fwupdate-9/efi/Makefile~	2017-03-06 20:36:55.000000000 +0000
+++ fwupdate-9/efi/Makefile	2017-05-12 18:10:02.737950709 +0000
@@ -14,7 +14,7 @@
 	-Wl,--no-undefined -Wl,--fatal-warnings \
 	-Wl,-shared -Wl,-Bsymbolic -L$(LIBDIR) -L$(GNUEFIDIR) \
 	-Wl,--build-id=sha1 -Wl,--hash-style=sysv \
-	$(GNUEFIDIR)/crt0-efi-$(ARCH).o
+	$(GNUEFIDIR)/crt0-efi-$(ARCH).o
 OBJCOPY_GTE224 = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^[^0-9]*//g' | cut -f1-2 -d.` \>= 2.24)

 FWUP = fwupdate
--- fwupdate-9/linux/Makefile~	2017-03-06 20:36:55.000000000 +0000
+++ fwupdate-9/linux/Makefile	2017-05-12 20:39:51.049592296 +0000
@@ -29,7 +29,7 @@
 	PKLIBS += libsmbios_c
 	CFLAGS += -DFWUPDATE_HAVE_LIBSMBIOS__
 endif
-BUILDFLAGS := $(CFLAGS) -Wall -Wextra -Werror -Wno-error=cpp \
+BUILDFLAGS := $(CFLAGS) -Wall -Wextra -Wno-error=cpp \
 	-Wno-unused-result -Wno-unused-function \
 	-Wsign-compare -Werror=sign-compare \
 	-fshort-wchar --std=gnu11 \


code:
From affc219a5bac93cb6e774879c874c203f755ba11 Mon Sep 17 00:00:00 2001
From: Raymund Will <rw@suse.com>
Date: Mon, 13 Mar 2017 12:57:07 +0100
Subject: [PATCH] Fix regression in "objcopy version check" (AKA `expr: syntax
 error`)

While commit 8418fee4 may have fixed the check for "some distributions"
it broke the same check for others, like

`GNU objcopy (WinAVR 20090313) 2.19`
`GNU objcopy (AVR_8_bit_GNU_Toolchain_3.4.3_1072) 2.23.2`
`GNU objcopy (Codescape GNU Tools 2016.05-03 for MIPS MTI Bare Metal) 2.24.90`
`GNU objcopy (GNU Binutils; openSUSE Leap 42.2) 2.26.1`
`GNU objcopy (GNU Binutils; SUSE Linux Enterprise 12) 2.26.1`

(some more, some less relevant... ;)

This version is meant to cover them all (or at least be easily extensible).

Signed-off-by: Raymund Will <rw@suse.com>
---
 efi/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/efi/Makefile b/efi/Makefile
index 920c096..faf8ee2 100644
--- a/efi/Makefile
+++ b/efi/Makefile
@@ -15,7 +15,15 @@ CCLDFLAGS	?= -nostdlib -Wl,--warn-common \
 	-Wl,-shared -Wl,-Bsymbolic -L$(LIBDIR) -L$(GNUEFIDIR) \
 	-Wl,--build-id=sha1 -Wl,--hash-style=sysv \
 	$(GNUEFIDIR)/crt0-efi-$(ARCH).o
-OBJCOPY_GTE224 = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^[^0-9]*//g' | cut -f1-2 -d.` \>= 2.24)
+
+define objcopy_version =
+  $(OBJCOPY) --version |
+    sed -e '/^GNU objcopy/! d;
+	    : loop1; s/([^)(]*)//g;   t loop1;
+	    : loop2; s/\[[^][]*\]//g; t loop2;
+	    s/.* \([0-9][0-9]*\.[0-9][0-9]*\).*/\1/;'
+endef
+OBJCOPY_GTE224 := $(shell expr `$(objcopy_version)` \>= 2.24)

 FWUP = fwupdate


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>fwupdate</Name>
        <Homepage>https://github.com/rhinstaller/fwupdate</Homepage>
        <Packager>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Tools for using the ESRT and UpdateCapsule() to apply firmware updates</Summary>
        <Description>Tools for using the ESRT and UpdateCapsule() to apply firmware updates</Description>
        <Archive sha1sum="68873b972eff83c360d8e50d0214e354d881f272" type="targz">https://github.com/rhboot/fwupdate/archive/9.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>gnu-efi</Dependency>
            <Dependency>efivar-devel</Dependency>
            <Dependency>popt-devel</Dependency>
            <Dependency>libsmbios-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">build.patch</Patch>
            <Patch level="1">fwupdate-9-objcopy_detection.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>fwupdate</Name>
        <RuntimeDependencies>
            <Dependency>popt</Dependency>
            <Dependency>efivar</Dependency>
            <Dependency>libsmbios</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/bash-completion</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>
    </Package>

    <Package>
        <Name>fwupdate-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">fwupdate</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-12-11</Date>
            <Version>9</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
# -*- 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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def setup():
    shelltools.system("sed -i 's|ncursesw/curses.h|curses.h|' RichString.[ch] configure")
    autotools.configure("--enable-taskstats \
                         --enable-unicode")

def build():
    autotools.make("-j1")

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")


code:
diff -Nur htop-0.7-old/htop.desktop htop-0.7/htop.desktop
--- htop-0.7-old/htop.desktop	2008-01-06 00:55:17.000000000 +0200
+++ htop-0.7/htop.desktop	2008-01-06 00:56:03.000000000 +0200
@@ -10,3 +10,4 @@
 Icon=htop
 Categories=ConsoleOnly;System;Application;
 GenericName=Process Viewer
+GenericName[tr]=Süreç İzleyici


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>htop</Name>
        <Homepage>http://htop.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <Icon>htop</Icon>
        <IsA>app:console</IsA>
        <IsA>app:gui</IsA>
        <Summary>An interactive process viewer for Linux</Summary>
        <Description>htop is an interactive text-mode process viewer for Linux. It aims to be a better 'top'.</Description>
        <Archive sha1sum="201f793f13dce2448e36047079875b9bd5bba75a" type="targz">http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>gettext-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!--<Patch>desktop_tr.patch</Patch>-->
        </Patches>
    </Source>

    <Package>
        <Name>htop</Name>
        <RuntimeDependencies>
            <Dependency>ncurses</Dependency>
            </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>2.0.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>1.0.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-06-17</Date>
            <Version>1.0.3</Version>
            <Comment>First release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>burakerturk@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>htop</Name>
        Linux için etkileşimli bir süreç izleyici
        Visionneur de processus pour Linux
        <Description xml:lang="tr">htop, metin kipinde çalışan etkileşimli, 'top' türevi bir süreç izleyicidir.</Description>
        <Description xml:lang="fr">htop est un visionneur de processus en mode texte. Il a pour but de surpasser 'top'.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import pisitools

WorkDir = "."

def install():
    pisitools.dosed("inxi", "os-release", "pisilinux-release")
    pisitools.dosed("inxi", "lackware-version SuSE-release", "lackware-version SuSE-release pisilinux-release")
    pisitools.dobin("inxi")
    pisitools.doman("inxi.1.gz")
    pisitools.dodoc("inxi.changelog")

    pisitools.dosym("/usr/bin/inxi", "/usr/share/kde4/apps/konversation/scripts/inxi")


code:
diff -Nuar inxi-1.8.34.orig/inxi inxi-1.8.34/inxi
--- inxi-1.8.34.orig/inxi	2013-04-20 14:06:01.586242908 +0300
+++ inxi-1.8.34/inxi	2013-04-20 14:11:08.959251481 +0300
@@ -334,7 +334,7 @@
 FILE_MEMINFO='/proc/meminfo'
 FILE_MODULES='/proc/modules'
 FILE_MOUNTS='/proc/mounts'
-FILE_OS_RELEASE='/etc/os-release'
+FILE_OS_RELEASE='/etc/pisilinux-release'
 FILE_PARTITIONS='/proc/partitions'
 FILE_SCSI='/proc/scsi/scsi'
 FILE_XORG_LOG='/var/log/Xorg.0.log' # if not found, search and replace with actual location
@@ -512,7 +512,7 @@
 DISTROS_DERIVED="antix-version aptosid-version kanotix-version knoppix-version mandrake-release pardus-release sabayon-release siduction-version sidux-version turbolinux-release zenwalk-version"
 # debian_version excluded from DISTROS_PRIMARY so Debian can fall through to /etc/issue detection. Same goes for Ubuntu.
 DISTROS_EXCLUDE_LIST="debian_version ubuntu_version"
-DISTROS_PRIMARY="arch-release gentoo-release redhat-release slackware-version SuSE-release"
+DISTROS_PRIMARY="arch-release gentoo-release redhat-release slackware-version SuSE-release pisilinux-release"
 DISTROS_LSB_GOOD="mandrake-release mandriva-release mandrakelinux-release"
 # this is being used both by core distros and derived distros now, eg, solusos uses it for solusos id, while
 # debian, solusos base, uses it as well, so we have to know which it is.


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>inxi</Name>
        <Homepage>http://code.google.com/p/inxi/</Homepage>
        <Packager>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Packager>
        <License>GPLv1</License>
        <IsA>app:console</IsA>
        <Summary>script to get system information</Summary>
        <Description>script to get system information</Description>
        <Archive sha1sum="76f403f23bfa722635626bef328fda0de404d047" type="targz">https://sources.archlinux.org/other/community/inxi/inxi-2.3.9.tar.gz</Archive>
        <Patches>
<!--             <Patch level="1">distro-pisilinux.patch</Patch> -->
        </Patches>
    </Source>

    <Package>
        <Name>inxi</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/kde4/apps/konversation/scripts/inxi</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-15</Date>
            <Version>2.3.9</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>2.3.8</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-10</Date>
            <Version>2.3.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-23</Date>
            <Version>2.2.19</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>inxi</Name>
        script to get system information
        Script para la información del sistema
        script voor het opvragen van systeem informatie
        <Description xml:lang="tr">script to get system information</Description>
        <Description xml:lang="es">Inxi es un completo script que muestra la información del sistema</Description>
        <Description xml:lang="nl">Script voor het opvragen van systeem informatie</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def build():
    autotools.make("-j1")

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())