This commit is contained in:
milisbir 2018-04-06 19:40:30 +03:00
parent 054bf1dc45
commit e580c337c1
3 changed files with 57 additions and 0 deletions

View File

@ -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
}

View File

@ -0,0 +1 @@
d /run/openvswitch 0770 root root -

View File

@ -0,0 +1,32 @@
# Tanım: Üretim Kalitesi, Çok Katmanlıı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
}