You are not logged in.

#1 2015-01-11 14:00:51

toni
Member
Registered: 2011-10-15
Posts: 437

[SOLVED] Cannot install pyrit

I am trying to install pyrit 0.4.0-1 but it seems there is a problem in pkgbuild... package() function is missed:

pyrit 0.4.0-1  (Wed Aug  5 23:34:46 CEST 2009)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> pyrit dependencies:
 - openssl (already installed)
 - python2 (already installed)
 - zlib (already installed)
 - libpcap (already installed)
 - gcc (already installed)
 - python2 (already installed)


==> Continue building pyrit ? [Y/n]
==> -------------------------------
==> 
==> Building and installing package
==> ERROR: Missing package() function in /tmp/yaourt-tmp-toni/aur-pyrit/./PKGBUILD
==> ERROR: Makepkg was unable to build pyrit.
==> Restart building pyrit ? [y/N]

How to add package function in PKGBUILD?

Last edited by toni (2015-01-15 19:45:44)

Offline

#2 2015-01-11 14:05:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [SOLVED] Cannot install pyrit

Moved to AUR issues.

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python2 setup.py build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python2 setup.py install --root=${pkgdir}
}

I posted a comment about this on the AUR page for pyrit, but I saw that this same maintainer has another package that has been flagged out of date for over 2 years and that hasn't been touched.  I suspect they also will not fix this one.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-01-15 19:45:27

toni
Member
Registered: 2011-10-15
Posts: 437

Re: [SOLVED] Cannot install pyrit

Trilby wrote:

Moved to AUR issues.

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python2 setup.py build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python2 setup.py install --root=${pkgdir}
}

I posted a comment about this on the AUR page for pyrit, but I saw that this same maintainer has another package that has been flagged out of date for over 2 years and that hasn't been touched.  I suspect they also will not fix this one.


Thanks, it worked!

Offline

Board footer

Powered by FluxBB