updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sslsniff / PKGBUILD
blob4b2b36396e97b805f3affe291ff473fee9f704dc
1 # Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
3 pkgname=sslsniff
4 pkgver=0.8
5 pkgrel=1
6 pkgdesc="sslsniff is designed to MITM all SSL connections on a LAN and dynamically generates certs for the domains that are being accessed on the fly."
7 arch=('i686' 'x86_64')
8 url="http://www.thoughtcrime.org/software/sslsniff/"
9 license=('custom')
10 depends=('boost' 'log4cpp' 'dsniff')
11 source=("http://www.thoughtcrime.org/software/${pkgname}/${pkgname}-${pkgver}.tar.gz"
12         "boost-1.47.patch")
13 md5sums=('030fe31af33c22a932393c7a5f33bb2e'
14          '439f5cd6a853e6b279a4cb1a89cec54d')
16 build()
18   cd $pkgname-$pkgver
20   patch -p0 < "${srcdir}"/boost-1.47.patch
21   ./configure --prefix=/usr
22   make || return 1
25 package()
27   cd $pkgname-$pkgver
28   make install DESTDIR="${pkgdir}"
30   # Package some example material.
31   install -d -m 0755 "${pkgdir}"/usr/share/${pkgname}/{updates,certs}
32   install -m 0644 leafcert.pem IPSCACLASEA1.crt "${pkgdir}"/usr/share/$pkgname
33   install -m 0644 updates/*xml "${pkgdir}"/usr/share/$pkgname/updates
34   install -m 0644 certs/* "${pkgdir}"/usr/share/$pkgname/certs
35   install -D -m 0644 README "${pkgdir}"/usr/share/doc/${pkgname}/README
37   # Install license.
38   install -D -m 0644 COPYING "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE