[arch-commits] Commit in (kamene kamene/trunk/PKGBUILD scapy3k)

Levente Polyak anthraxx at archlinux.org
Tue Nov 6 20:58:16 UTC 2018


    Date: Tuesday, November 6, 2018 @ 20:58:16
  Author: anthraxx
Revision: 402167

renamed scapy3k to kamene

Added:
  kamene/
Modified:
  kamene/trunk/PKGBUILD
Deleted:
  scapy3k/

----------+
 PKGBUILD |   32 ++++++++++++--------------------
 1 file changed, 12 insertions(+), 20 deletions(-)

Modified: kamene/trunk/PKGBUILD
===================================================================
--- scapy3k/trunk/PKGBUILD	2018-11-06 20:58:12 UTC (rev 402166)
+++ kamene/trunk/PKGBUILD	2018-11-06 20:58:16 UTC (rev 402167)
@@ -1,11 +1,10 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 
-pkgname=scapy3k
-_pkgname=scapy-python3
-pkgver=0.25
+pkgname=kamene
+pkgver=0.32
 pkgrel=1
 pkgdesc='Powerful interactive packet manipulation program (based on scapy) written in Python'
-url='https://github.com/phaethon/scapy'
+url='https://github.com/phaethon/kamene'
 depends=('tcpdump' 'python' )
 optdepends=('python-cryptography: WEP decryption, IPsec and certificate support'
             'python-pyx: psdump() and pdfdump() functions'
@@ -14,36 +13,29 @@
             'graphviz: conversations() method support'
             'sox: for VOIP support')
 checkdepends=('python-cryptography' 'python-pyx' 'python-matplotlib' 'python-netifaces' 'graphviz' 'sox')
-conflicts=('scapy')
+replaces=('scapy3k')
 arch=('any')
 license=('GPL2')
-source=(https://pypi.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz)
-sha256sums=('2ae1b3bd9759844e830a6cc3ba11c3f25b08433a8ee3e7eddc08224905e5ef2b')
-sha512sums=('74cb8149e843962394425aec54f3aecc894c8d003efd6eb3d1a7ca0dea760cc30ed8fe7f08769c3dc2f959a32169adccf97006571c6f450cb678e624ac68da3d')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/phaethon/kamene/archive/v${pkgver}.tar.gz)
+sha256sums=('8254333ddc1404ee2bcd73c4a2c23e4f9c59320738610512f23ea3dad3cde28d')
+sha512sums=('ba0e7ceb41e0687a8b8deb743f4cc8dc00021200ae028faac0afc3a1f202ac2c2cfdc7ebd7ea6ab3af4790e8393c9d1ed5b8f80f16bf0783e5058f29d2038ea6')
 
-prepare() {
-  cd ${_pkgname}-${pkgver}
-  sed -r 's|((bin\|doc)/(UT)?scapy)|\13k|g' -i setup.py
-  mv doc/scapy.1.gz doc/scapy3k.1.gz
-  mv bin/scapy{,3k}
-  mv bin/UTscapy{,3k}
-}
-
 build() {
-  cd ${_pkgname}-${pkgver}
+  cd ${pkgname}-${pkgver}
   python setup.py build
 }
 
 check() {
-  cd ${_pkgname}-${pkgver}/test
+  cd ${pkgname}-${pkgver}/test
   # Run only main tests, without network access
   #./run_tests -K netaccess -F
 }
 
 package() {
-  cd ${_pkgname}-${pkgver}
+  cd ${pkgname}-${pkgver}
   python setup.py install -O1 --skip-build --root="${pkgdir}" --prefix=/usr
-  install -Dm 644 doc/scapy/*.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 doc/kamene/*.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 doc/kamene.1.gz -t "${pkgdir}/usr/share/man/man1"
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list