You are not logged in.

#1 2012-05-25 23:27:06

dodo3773
Member
Registered: 2011-03-17
Posts: 820

PKGBUILD Request: webshag

I am using it already. Seems like it would be pretty trivial to put together and I would do it myself if I knew how. Here is the website:

http://www.scrt.ch/en/attack/downloads/webshag

Also, on a side note (off-topic): Can any recommend to me any similar (or better) programs like this one?

Offline

#2 2012-05-26 12:17:27

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: PKGBUILD Request: webshag

The following 2 wiki articles explain how you can setup your own PKGBUILD:

PKGBUILD
Creating packages


Burninate!

Offline

#3 2012-05-26 15:13:40

dodo3773
Member
Registered: 2011-03-17
Posts: 820

Re: PKGBUILD Request: webshag

Gcool wrote:

The following 2 wiki articles explain how you can setup your own PKGBUILD:

PKGBUILD
Creating packages


Yeah well I guess I can try to do it myself. I am familiar with the wiki. Thanks for looking up the links I guess. I thought that was why this forum section was called: "AUR Issues, Discussion & PKGBUILD Requests" though.

Offline

#4 2012-05-26 15:24:54

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

Re: PKGBUILD Request: webshag

In your OP it sounded like you wanted to do it yourself but needed to know how ... so you were told how.

Here's a start

# Maintainer: Include your own info here if this goes to the AUR
pkgname=webshag
pkgver=1.10
pkgrel=1
pkgdesc="Webshag is a multi-threaded, multi-platform web server audit tool."
url="http://www.scrt.ch/en/attack/downloads/webshag"
arch=('x86_64' 'i686')
#license=('?')
depends=('python2' 'wxpython' 'nmap')
optdepends=('') #include AppID for domain information module - I don't know what package provides this.
source=("http://www.scrt.ch/outils/webshag/ws110.tar.gz")
md5sums=('14c0a579e6fe72ab691e063c06d33ed3')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  # include installs here for other needed files/man pages that are not handled by the Makefile
}

If you've already compiled it, you'll know if it needs anything more than the ./configure make make install series.  See the comments for potentially needed additions.  Note, in particular, the missing license.  I didn't look it up, I'll leave that to you.

Last edited by Trilby (2012-05-26 15:25:57)


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

Offline

#5 2012-05-26 15:46:17

dodo3773
Member
Registered: 2011-03-17
Posts: 820

Re: PKGBUILD Request: webshag

Trilby wrote:

In your OP it sounded like you wanted to do it yourself but needed to know how ... so you were told how.

Now that I look at it you are totally right. I did make it sound that way. I was looking at it and it looks like I am going to have to do a sed -i python|python2 deal and dump the files in the right place and all that. Also, I have nmap as an opt depend. This will probably take me a long time to figure out because after looking at some examples I am a little unsure of how the install function works and where to dump all this stuff on the system. I will try to sort out the details if I can.



@Gcool Sorry for biting your head off hahaha. Thanks for trying to help.

Edit: Also, there is no compiling needed at all. It is just a python script.

Last edited by dodo3773 (2012-05-26 16:44:44)

Offline

#6 2012-05-26 17:16:47

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

Re: PKGBUILD Request: webshag

If no compiling is needed, then there's a fair change the build function could be left empty(but see edit2); the package function could do all the work.

The "install" command is useful, but it is really just a 'cp' that sets file permissions.  Sometimes a simple cp is sufficient, or a cp + chmod, thought this is essentially what 'install' is for.  Just make sure you copy the files to something under ${pkgdir}.

Check out other python PKGBUILDS for reference.  I don't do much in python, so I don't have great suggestions there.

Edit: you may want to check the Editra PKGBUILD as it is a fairly simple python project with some similar dependencies.

Edit2: similar python packages, like editra, use the python2 build and python2 install tools.  The former may belong in the build function if required.

Last edited by Trilby (2012-05-26 17:21:38)


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

Offline

Board footer

Powered by FluxBB