diff --git a/hardware/virtualization/component.xml b/hardware/virtualization/component.xml new file mode 100644 index 0000000000..7b5be7a630 --- /dev/null +++ b/hardware/virtualization/component.xml @@ -0,0 +1,3 @@ + + hardware.virtualization + diff --git a/hardware/virtualization/docker/actions.py b/hardware/virtualization/docker/actions.py new file mode 100644 index 0000000000..45e031c87d --- /dev/null +++ b/hardware/virtualization/docker/actions.py @@ -0,0 +1,39 @@ +#!/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 autotools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +shelltools.export("AUTO_GOPATH", "1") +shelltools.export("DOCKER_GITCOMMIT", "0baf609") #DOCKER_GITCOMMIT="0baf609" +shelltools.export("GOPATH", "%s" % get.workDIR()) + +shelltools.export("CGO_CFLAGS", "-I/usr/include") +shelltools.export("CGO_LDFLAGS", "-L/usr/lib") +shelltools.export("DOCKER_BUILDTAGS","exclude_graphdriver_aufs") +shelltools.export("DOCKER_INITPATH", "/usr/libexec/docker/dockerinit") + +NoStrip=["/"] + +def build(): + shelltools.system("./hack/make.sh dynbinary") + +def install(): + pisitools.dobin("bundles/1.7.0/dynbinary/docker") + pisitools.dobin("bundles/1.7.0/dynbinary/docker-1.7.0") + pisitools.doexe("bundles/1.7.0/dynbinary/dockerinit", "/usr/libexec/docker") + pisitools.doexe("bundles/1.7.0/dynbinary/dockerinit-1.7.0", "/usr/libexec/docker") + + # insert udev rules + pisitools.insinto("/etc/udev/rules.d", "contrib/udev/*.rules") + + #insert contrib in docs + pisitools.insinto("/usr/share/doc/docker", "contrib") + + pisitools.dodoc("VERSION", "LICENSE", "README.md", "AUTHORS", "CONTRIBUTING.md", "CHANGELOG.md", "NOTICE") + diff --git a/hardware/virtualization/docker/comar/package.py b/hardware/virtualization/docker/comar/package.py new file mode 100644 index 0000000000..a558a9b0d4 --- /dev/null +++ b/hardware/virtualization/docker/comar/package.py @@ -0,0 +1,24 @@ +#!/usr/bin/python + +import os, re + +OUR_ID = 154 +OUR_NAME = "docker" +OUR_DESC = "docker" + +logfile = "/var/log/docker.log" + +def postInstall(fromVersion, fromRelease, toVersion, toRelease): + try: + os.system ("usr/sbin/groupadd -g %d %s" % (OUR_ID, OUR_NAME)) + os.system("/bin/touch %s" % logfile) + os.system("/bin/chown root:docker %s" % logfile) + os.system("chmod 0644 %s" % logfile) + except: + pass + +def preRemove(): + try: + os.system ("groupdel %s" % OUR_NAME) + except: + pass \ No newline at end of file diff --git a/hardware/virtualization/docker/comar/service.py b/hardware/virtualization/docker/comar/service.py new file mode 100644 index 0000000000..86a6325a87 --- /dev/null +++ b/hardware/virtualization/docker/comar/service.py @@ -0,0 +1,31 @@ +from comar.service import * +import os + +serviceType = "local" +serviceDefault = "off" +serviceDesc = _({"en": "Docker Management Service", + "tr": "Docker Yönetim Hizmeti"}) + +serviceConf = "docker" +pidfile = "/var/run/docker.pid" +logfile = "/var/log/docker.log" + +@synchronized +def start(): + os.environ["PATH"] = "/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin" + os.system("/sbin/modprobe -va bridge nf_nat br_netfilter") + + startService(command="/usr/bin/docker", + args="-d %s" % (config.get("DOCKER_OPTS", "")), + chuid="root:docker", + pidfile="/var/run/docker.pid", + donotify=True) + +@synchronized +def stop(): + stopService(command="/usr/bin/docker", + pidfile="/var/run/docker.pid", + donotify=True) + +def status(): + return isServiceRunning(pidfile) diff --git a/hardware/virtualization/docker/files/cgroupfs-mount b/hardware/virtualization/docker/files/cgroupfs-mount new file mode 100755 index 0000000000..077b926456 --- /dev/null +++ b/hardware/virtualization/docker/files/cgroupfs-mount @@ -0,0 +1,54 @@ +#!/bin/sh +# Copyright 2011 Canonical, Inc +# 2014 Tianon Gravi +# Author: Serge Hallyn +# Tianon Gravi +set -e + +# for simplicity this script provides no flexibility + +# if cgroup is mounted by fstab, don't run +# don't get too smart - bail on any uncommented entry with 'cgroup' in it +if grep -v '^#' /etc/fstab | grep -q cgroup; then + echo 'cgroups mounted from fstab, not mounting /sys/fs/cgroup' + exit 0 +fi + +# kernel provides cgroups? +if [ ! -e /proc/cgroups ]; then + exit 0 +fi + +# if we don't even have the directory we need, something else must be wrong +if [ ! -d /sys/fs/cgroup ]; then + exit 0 +fi + +# mount /sys/fs/cgroup if not already done +if ! mountpoint -q /sys/fs/cgroup; then + mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup +fi + +cd /sys/fs/cgroup + +# get/mount list of enabled cgroup controllers +for sys in $(awk '!/^#/ { if ($4 == 1) print $1 }' /proc/cgroups); do + mkdir -p $sys + if ! mountpoint -q $sys; then + if ! mount -n -t cgroup -o $sys cgroup $sys; then + rmdir $sys || true + fi + fi +done + +# example /proc/cgroups: +# #subsys_name hierarchy num_cgroups enabled +# cpuset 2 3 1 +# cpu 3 3 1 +# cpuacct 4 3 1 +# memory 5 3 0 +# devices 6 3 1 +# freezer 7 3 1 +# blkio 8 3 1 + +exit 0 diff --git a/hardware/virtualization/docker/files/cgroupfs-umount b/hardware/virtualization/docker/files/cgroupfs-umount new file mode 100755 index 0000000000..c3bb70ff43 --- /dev/null +++ b/hardware/virtualization/docker/files/cgroupfs-umount @@ -0,0 +1,31 @@ +#!/bin/sh +# Copyright 2011 Canonical, Inc +# 2014 Tianon Gravi +# Author: Serge Hallyn +# Tianon Gravi +set -e + +# we don't care to move tasks around gratuitously - just umount the cgroups + +# if we don't even have the directory we need, something else must be wrong +if [ ! -d /sys/fs/cgroup ]; then + exit 0 +fi + +# if /sys/fs/cgroup is not mounted, we don't bother +if ! mountpoint -q /sys/fs/cgroup; then + exit 0 +fi + +cd /sys/fs/cgroup + +for sys in *; do + if mountpoint -q $sys; then + umount $sys + fi + if [ -d $sys ]; then + rmdir $sys || true + fi +done + +exit 0 diff --git a/hardware/virtualization/docker/files/docker.confd b/hardware/virtualization/docker/files/docker.confd new file mode 100644 index 0000000000..ed14f85949 --- /dev/null +++ b/hardware/virtualization/docker/files/docker.confd @@ -0,0 +1,13 @@ +# /etc/conf.d/docker: config file for /etc/init.d/docker + +# where the docker daemon output gets piped +DOCKER_LOGFILE="/var/log/docker.log" + +# where docker's pid get stored +DOCKER_PIDFILE="/var/run/docker.pid" + +# where the docker daemon itself is run from +DOCKER_BINARY="/usr/bin/docker" + +# any other random options you want to pass to docker +DOCKER_OPTS="" diff --git a/hardware/virtualization/docker/pspec.xml b/hardware/virtualization/docker/pspec.xml new file mode 100644 index 0000000000..26d23d61af --- /dev/null +++ b/hardware/virtualization/docker/pspec.xml @@ -0,0 +1,87 @@ + + + + + docker + http://docker.io + + Ertuğrul Erata + ertugrulerata@gmail.com + + Apache + app:console + Pack, ship and run any application as a lightweight container + An open platform for distributed applications for developers and sysadmins + + https://github.com/docker/docker/archive/v1.7.0.tar.gz + + git + golang + btrfs-progs-devel + device-mapper-devel + sqlite-devel + + + + + + docker + + git + golang + sqlite + device-mapper + btrfs-progs + bridge-utils + iproute2 + iptables + + + /etc + /usr/bin/ + /usr/libexec/docker + /usr/share/ + + + cgroupfs-mount + cgroupfs-umount + docker.confd + + + System.Service + System.Package + + + + + + 2015-06-24 + 1.7.0 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2015-05-17 + 1.6.2 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2015-05-09 + 1.6.1 + Version bump.http://seclists.org/fulldisclosure/2015/May/28 + security + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2015-04-17 + 1.6.0 + First Release. + Ertuğrul Erata + ertugrulerata@gmail.com + + + diff --git a/hardware/virtualization/docker/translations.xml b/hardware/virtualization/docker/translations.xml new file mode 100644 index 0000000000..f4a9ed937b --- /dev/null +++ b/hardware/virtualization/docker/translations.xml @@ -0,0 +1,8 @@ + + + + docker + Herhangi bir uygulamayı paketleyip çalıştırmak için hafif kontenyer + Geliştirici ve Sistem Yöneticileri için açık ve dağıtık platform + + diff --git a/network/filter/iproute2/pspec.xml b/network/filter/iproute2/pspec.xml index 9a22b3e6d8..20a208293b 100644 --- a/network/filter/iproute2/pspec.xml +++ b/network/filter/iproute2/pspec.xml @@ -12,11 +12,12 @@ app:console Kernel routing and traffic control utilities Iproute2 is a collection of utilites for controlling TCP/IP networking and traffic control in Linux. - https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-4.0.0.tar.xz + https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-4.1.1.tar.xz iptables-devel linux-atm-devel db-devel + elfutils @@ -26,6 +27,7 @@ linux-atm iptables db + elfutils /etc @@ -40,6 +42,13 @@ + + 2015-07-20 + 4.1.1 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + 2015-04-13 4.0.0 diff --git a/programming/language/go/actions.py b/programming/language/go/actions.py new file mode 100755 index 0000000000..7f6901b426 --- /dev/null +++ b/programming/language/go/actions.py @@ -0,0 +1,47 @@ +#!/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 autotools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +shelltools.export("GOROOT", "%s/go-go1.4.2" % get.workDIR()) +shelltools.export("GOBIN", "$GOROOT/bin") +shelltools.export("GOPATH", "%s" % get.workDIR()) +shelltools.export("GOROOT_FINAL", "/usr/lib/go") + +shelltools.export("GOOS","linux") +shelltools.export("GOARCH","amd64") + +NoStrip=["/"] + +def build(): + shelltools.cd("src") + shelltools.system("bash make.bash") + + shelltools.cd("%s/go-go1.4.2" % get.workDIR()) + + shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/godoc") + shelltools.system("$GOROOT/bin/go build -o $GOPATH/godoc golang.org/x/tools/cmd/godoc") + + for tool in ["cover", "vet", "callgraph"]: + shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/%s" % tool) + shelltools.system("$GOROOT/bin/go build -o $GOROOT/pkg/tool/$GOOS\_$GOARCH/%s golang.org/x/tools/cmd/%s" % (tool, tool)) + + +def install(): + shelltools.cd("%s/go-go1.4.2" % get.workDIR()) + + pisitools.dobin("bin/*") + pisitools.dodir("/usr/lib/go") + pisitools.insinto("/usr/lib/go", "doc") + pisitools.insinto("/usr/lib/go", "include") + pisitools.insinto("/usr/lib/go", "lib") + pisitools.insinto("/usr/lib/go", "pkg") + pisitools.insinto("/usr/lib/go", "src") + + pisitools.dodoc("VERSION", "LICENSE", "PATENTS", "README", "AUTHORS", "CONTRIBUTORS") diff --git a/programming/language/go/files/go.sh b/programming/language/go/files/go.sh new file mode 100644 index 0000000000..8393dc8d2e --- /dev/null +++ b/programming/language/go/files/go.sh @@ -0,0 +1 @@ +export GOROOT=/usr/lib/go diff --git a/programming/language/go/pspec.xml b/programming/language/go/pspec.xml new file mode 100755 index 0000000000..000d492ce4 --- /dev/null +++ b/programming/language/go/pspec.xml @@ -0,0 +1,66 @@ + + + + + go + http://golang.org + + Aydın Demirel + aydin.demirel@pisilinux.org + + BSD + app:console + Compiler and tools for the Go programming language from Google + Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. + https://github.com/golang/go/archive/go1.4.2.tar.gz + + perl + gawk + mercurial + glibc-32bit + git + + + + + + golang + + glibc-32bit + git + + + /usr/bin/ + /usr/lib/ + /etc + /usr/share/ + + + go.sh + + + + + + 2015-04-17 + 1.4.2 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2014-12-24 + 1.3.3 + Version bump, remove unneded depse + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2014-09-27 + 1.3.2 + First release + Aydın Demirel + aydin.demirel@pisilinux.org + + + diff --git a/programming/language/go/translations.xml b/programming/language/go/translations.xml new file mode 100755 index 0000000000..2b17d951e6 --- /dev/null +++ b/programming/language/go/translations.xml @@ -0,0 +1,8 @@ + + + + go + Google'dan Go programlama dili için araçlar ve derleyici + Go basit, güvenilir ve verimli yazılım inşa etmek için onu kolay yapan açık kaynaklı bir programlama dilidir. + + diff --git a/programming/scm/mercurial/actions.py b/programming/scm/mercurial/actions.py new file mode 100644 index 0000000000..698a732629 --- /dev/null +++ b/programming/scm/mercurial/actions.py @@ -0,0 +1,23 @@ +#!/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(): + pythonmodules.compile() + +def install(): + pythonmodules.install() + + pisitools.dodir("/etc/bash_completion.d") + pisitools.insinto("/etc/bash_completion.d", "contrib/bash_completion", "mercurial") + + pisitools.doman("doc/*.1") + pisitools.doman("doc/*.5") + + pisitools.dohtml("doc/*.html") + #pisitools.dodoc("doc/*.txt") diff --git a/programming/scm/mercurial/pspec.xml b/programming/scm/mercurial/pspec.xml new file mode 100644 index 0000000000..0900d8aefe --- /dev/null +++ b/programming/scm/mercurial/pspec.xml @@ -0,0 +1,72 @@ + + + + + mercurial + http://www.selenic.com/mercurial + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + app:console + A distributed SCM tool + A fast, lightweight Source Control Management system designed for efficient handling of very large distributed projects. + http://mercurial.selenic.com/release/mercurial-3.3.3.tar.gz + + python-devel + + + + + mercurial + + python + + + /usr/bin + /etc/bash_completion.d + /usr/lib + /usr/share/doc + /usr/share/man + + + + + + 2015-04-04 + 3.3.3 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2015-01-10 + 3.2.4 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2014-03-07 + 2.9.1 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-02-01 + 2.8 + Ver. bump + Kamil Atlı + suvarice@gmail.com + + + 2012-10-06 + 2.3.1 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + diff --git a/programming/scm/mercurial/translations.xml b/programming/scm/mercurial/translations.xml new file mode 100644 index 0000000000..cc364da5cb --- /dev/null +++ b/programming/scm/mercurial/translations.xml @@ -0,0 +1,10 @@ + + + + mercurial + Dağıtık bir kaynak kod yönetim aracı + Çok büyük dağıtık projelerin verimli bir şekilde idare edilmesi amacıyla geliştirilmiş hızlı, hafif bir kaynak kod kontrol yönetimi sistemi + Système de gestion de code source, rapide et léger conçu pour gérer de manière efficace les projets distribués de très grande taille. + Un sistema rápido y liviano de administración de fuentes (Source Control Management) diseñado para manejo eficaz de proyectos muy largos y distribuidos. + +