mininet
This commit is contained in:
		
							parent
							
								
									054bf1dc45
								
							
						
					
					
						commit
						e580c337c1
					
				
					 3 changed files with 57 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								talimatname/genel/m/mininet/talimat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								talimatname/genel/m/mininet/talimat
									
										
									
									
									
										Normal 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
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										1
									
								
								talimatname/genel/o/openvswitch/openvswitch.tmpfiles
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								talimatname/genel/o/openvswitch/openvswitch.tmpfiles
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
d /run/openvswitch 0770 root root -
 | 
			
		||||
							
								
								
									
										32
									
								
								talimatname/genel/o/openvswitch/talimat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								talimatname/genel/o/openvswitch/talimat
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue