From e580c337c13a53ab99657669d9c04645ea58aff1 Mon Sep 17 00:00:00 2001 From: milisbir Date: Fri, 6 Apr 2018 19:40:30 +0300 Subject: [PATCH] mininet --- talimatname/genel/m/mininet/talimat | 24 ++++++++++++++ .../genel/o/openvswitch/openvswitch.tmpfiles | 1 + talimatname/genel/o/openvswitch/talimat | 32 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 talimatname/genel/m/mininet/talimat create mode 100644 talimatname/genel/o/openvswitch/openvswitch.tmpfiles create mode 100644 talimatname/genel/o/openvswitch/talimat diff --git a/talimatname/genel/m/mininet/talimat b/talimatname/genel/m/mininet/talimat new file mode 100644 index 000000000..d03f8130b --- /dev/null +++ b/talimatname/genel/m/mininet/talimat @@ -0,0 +1,24 @@ +# Tanım: İşlem tabanlı ağ emülatörü +# URL: https://github.com/mininet/mininet/ +# Paketçi: Cihan_Alkan +# Gerekler: help2man python-setuptools python pynetworkx net-tools iputils iperf openvswitch +# Grup: ağ + +isim=mininet +surum=2.2.1 +devir=1 +kaynak=(https://github.com/mininet/mininet/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + grep python Makefile + grep -rIil '#!.*python' . | xargs -n1 sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:g' + grep -rIil '#!.*python' . | xargs -n1 sed -i 's:#!/usr/bin/python:#!/usr/bin/python2:g' + sed 's:BINDIR = /usr/bin:BINDIR = $(DESTDIR)/usr/bin:g' -i Makefile + sed 's:MANDIR = /usr/share/man/man1:MANDIR = $(DESTDIR)/usr/share/man/man1:g' -i Makefile + sed 's:install $(MNEXEC) $(BINDIR):mkdir -p $(BINDIR); install $(MNEXEC) $(BINDIR):g' -i Makefile + sed 's:install $(MANPAGES) $(MANDIR):mkdir -p $(MANDIR);install $(MANPAGES) $(MANDIR):g' -i Makefile + sed 's:python setup.py:python setup.py install --prefix=/usr --root="$(DESTDIR)" --optimize=1:g' -i Makefile + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/o/openvswitch/openvswitch.tmpfiles b/talimatname/genel/o/openvswitch/openvswitch.tmpfiles new file mode 100644 index 000000000..f99f19f89 --- /dev/null +++ b/talimatname/genel/o/openvswitch/openvswitch.tmpfiles @@ -0,0 +1 @@ +d /run/openvswitch 0770 root root - diff --git a/talimatname/genel/o/openvswitch/talimat b/talimatname/genel/o/openvswitch/talimat new file mode 100644 index 000000000..e8de2f954 --- /dev/null +++ b/talimatname/genel/o/openvswitch/talimat @@ -0,0 +1,32 @@ +# Tanım: Üretim Kalitesi, Çok Katmanlı Açık Sanal Anahtar +# URL: http://openvswitch.org +# Paketçi: Cihan_Alkan +# Gerekler: libcap-ng python-six +# Grup: ağ + +isim=openvswitch +surum=2.8.1 +devir=1 +kaynak=(http://openvswitch.org/releases/openvswitch-$surum.tar.gz + openvswitch.tmpfiles) + +derle() { + cd "$SRC/$isim-$surum" + sed -i \ + -e 's|$(sysconfdir)/bash_completion.d|/usr/share/bash-completion/completions|g' \ + Makefile.am + ./boot.sh + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-rundir=/run/openvswitch \ + --sbindir=/usr/bin \ + PYTHON=/usr/bin/python + make + + make DESTDIR="$PKG" install + install -Dm0644 "$SRC"/openvswitch.tmpfiles "$PKG/usr/lib/tmpfiles.d/openvswitch.conf" + install -dm0755 "$PKG/etc/openvswitch" + rm -rf "$PKG"/run +}