create core package

This commit is contained in:
aydemir
2015-02-24 11:18:35 +02:00
parent 0e4b743b82
commit 70b25d0f95
1098 changed files with 169545 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/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 cmaketools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
cmaketools.configure("-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
-DPYTHON_LIBRARY=/usr/lib/libpython2.7.so")
def build():
autotools.make("VERBOSE=1")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodir("/var/db")
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
def postInstall(a, b, c, d):
os.system("comar2to3")
+18
View File
@@ -0,0 +1,18 @@
Index: comar-3.0.0/CMakeLists.txt
===================================================================
--- comar-3.0.0.orig/CMakeLists.txt
+++ comar-3.0.0/CMakeLists.txt
@@ -10,11 +10,11 @@ SET (APP_SUFFIX "3")
# Uncomment this for production releases.
SET (VERSION_SUFFIX "")
-SET (FLAGS "-g -O0 -Werror -Wcast-align -Wno-uninitialized -Wall -fstrict-aliasing")
+#SET (FLAGS "-g -O0 -Werror -Wcast-align -Wno-uninitialized -Wall -fstrict-aliasing")
# Uncomment this for gprof profiling
# SET (FLAGS "-g -O0 -Werror -Wcast-align -Wno-uninitialized -Wall -fstrict-aliasing -fprofile-arcs -ftest-coverage")
-SET (CMAKE_C_FLAGS "${FLAGS}")
+#SET (CMAKE_C_FLAGS "${FLAGS}")
# Uncomment this for sparse building
# SET (CMAKE_C_COMPILER cgcc)
+33
View File
@@ -0,0 +1,33 @@
diff -Naur comar-3.0.3.orig/CMakeLists.txt comar-3.0.3/CMakeLists.txt
--- comar-3.0.3.orig/CMakeLists.txt 2014-08-19 19:56:34.057899701 +0200
+++ comar-3.0.3/CMakeLists.txt 2014-08-19 20:00:40.078890712 +0200
@@ -31,7 +31,7 @@
# Define version, config dir, data dir and log file.
ADD_DEFINITIONS (
- -D'PID_FILE="/var/run/${APP_NAME}.pid"'
+ -D'PID_FILE="/run/${APP_NAME}.pid"'
-D'DATA_DIR="/var/lib/${APP_NAME}"'
-D'LOG_DIR="/var/log/${APP_NAME}"')
diff -Naur comar-3.0.3.orig/include/config.h comar-3.0.3/include/config.h
--- comar-3.0.3.orig/include/config.h 2011-05-12 13:30:26.000000000 +0200
+++ comar-3.0.3/include/config.h 2014-08-19 20:01:17.734889336 +0200
@@ -32,7 +32,7 @@
#endif
#ifndef DBUS_SERVER_ADDRESS
-#define DBUS_SERVER_ADDRESS "unix:path=/var/run/dbus/system_bus_socket"
+#define DBUS_SERVER_ADDRESS "unix:path=/run/dbus/system_bus_socket"
#endif
#ifndef DBUS_SERVICE_NAME
@@ -56,7 +56,7 @@
#endif
#ifndef FILE_PID
-#define FILE_PID "/var/run/comar3.pid"
+#define FILE_PID "/run/comar3.pid"
#endif
#ifndef WWW_BUGS
@@ -0,0 +1,14 @@
Index: comar-3.0.1/models/System.Manager.xml
===================================================================
--- comar-3.0.1.orig/models/System.Manager.xml
+++ comar-3.0.1/models/System.Manager.xml
@@ -3,6 +3,9 @@
<method name="installPackage">
<arg name="package" type="s" direction="in"/>
</method>
+ <method name="reinstallPackage" access_label="installpackage">
+ <arg name="package" type="s" direction="in"/>
+ </method>
<method name="updatePackage">
<arg name="package" type="s" direction="in"/>
</method>
+78
View File
@@ -0,0 +1,78 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>comar</Name>
<Homepage>http://www.pisilinux.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>service</IsA>
<Summary>Manages system configuration</Summary>
<Description>Pisi Linux programs are packaged with small scripts which configures them to entegrate with system and each other. Çomar is the tool which manages and executes these scripts.</Description>
<Archive sha1sum="a0894a20d3c2bb5843de7e25fc98707baf554df1" type="tarbz2">http://source.pisilinux.org/1.0/comar-3.0.3.tar.bz2</Archive>
<BuildDependencies>
<Dependency>dbus</Dependency>
<Dependency>python</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">run_dir.patch</Patch>
<Patch level="1">fix-flags.patch</Patch>
<Patch level="1">update-system-manager-model.patch</Patch>
</Patches>
</Source>
<Package>
<Name>comar</Name>
<RuntimeDependencies>
<Dependency>dbus</Dependency>
<Dependency>python</Dependency>
<Dependency>polkit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="data">/etc</Path>
<Path fileType="data">/usr/share/dbus-1/system-services</Path>
<Path fileType="data">/usr/share/polkit-1/actions</Path>
<Path fileType="doc">/usr/share/doc/</Path>
<Path fileType="data">/var/db</Path>
</Files>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<History>
<Update release="4">
<Date>2014-08-19</Date>
<Version>3.0.3</Version>
<Comment>Fix run dir path.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-05-11</Date>
<Version>3.0.3</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-08-31</Date>
<Version>3.0.3</Version>
<Comment>Release bump, clean comar.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-05-18</Date>
<Version>3.0.3</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>comar</Name>
<Summary xml:lang="tr">Sistem yapılandırmasını yönetir</Summary>
<Description xml:lang="tr">Pisi Linux yazılımları, birbirleri ve sistemle otomatik olarak uyum sağlayabilmek için yanlarında ufak programcıklar ile paketlenmektedir. Bu programcıkların yönetimi ve işletilmesi Çomar aracı tarafından yapılmaktadır.</Description>
<Description xml:lang="fr">Les programmes Pisi Linux sont mis sous forme de paquets à l'aide de petits scripts. Ces derniers les configure afin qu'ils s'intègrent entre eux et avec le système. Çomar est l'outil qui gère et exécute ces scripts.</Description>
<Description xml:lang="de">Pisi Linux Programme werden mit einem kleinen Skript paketiert, welches sie konfiguriert, um die Integrität mit dem System und anderen Programmen sicherzustellen. Comar ist das Werkzeug, das diese Skripte verwaltet und ausführt.</Description>
</Source>
</PISI>