summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/dsniff/PKGBUILD18
-rw-r--r--community/llvm-amdgpu-snapshot/PKGBUILD87
-rw-r--r--community/usb_modeswitch/PKGBUILD9
3 files changed, 18 insertions, 96 deletions
diff --git a/community/dsniff/PKGBUILD b/community/dsniff/PKGBUILD
index 8dea9cf86..d93df5e98 100644
--- a/community/dsniff/PKGBUILD
+++ b/community/dsniff/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 61947 2012-01-11 15:21:36Z stephane $
+# $Id: PKGBUILD 91568 2013-05-24 09:42:47Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: ViNS <gladiator@fastwebnet.it>
pkgname=dsniff
pkgver=2.4b1
-pkgrel=21
+pkgrel=22
pkgdesc="Collection of tools for network auditing and penetration testing"
url="http://www.monkey.org/~dugsong/dsniff/"
arch=('i686' 'x86_64')
@@ -15,22 +15,26 @@ source=("http://www.monkey.org/~dugsong/${pkgname}/beta/$pkgname-$pkgver.tar.gz"
md5sums=('2f761fa3475682a7512b0b43568ee7d6'
'fbc9f62f9ab2f98f24f53ad497c1ce5d')
-build() {
+prepare() {
cd $srcdir/$pkgname-2.4
patch -N < "${srcdir}"/dsniff_2.4b1+debian-18.diff
for i in *.dpatch; do
patch -N < "$i"
done
+ sed -i 's|${CC-cc} -E|${CC-cc} -O2 -E|g' configure
+}
- LDFLAGS="-lresolv -lglib-2.0 -lgthread-2.0 $LDFLAGS" ./configure --prefix=/usr
- make
+build() {
+ cd $srcdir/$pkgname-2.4
+ LDFLAGS="-lresolv -lglib-2.0 -lgthread-2.0 $LDFLAGS" ./configure \
+ --prefix=/usr --sbindir=/usr/bin
+ make -j1
}
package() {
cd "$srcdir"/$pkgname-2.4
- make prefix="$pkgdir"/usr install
+ make install_prefix="$pkgdir" install
install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
-
install -d "$pkgdir"/usr/share
mv "$pkgdir"/usr/man "$pkgdir"/usr/share/
}
diff --git a/community/llvm-amdgpu-snapshot/PKGBUILD b/community/llvm-amdgpu-snapshot/PKGBUILD
deleted file mode 100644
index cd96dcb81..000000000
--- a/community/llvm-amdgpu-snapshot/PKGBUILD
+++ /dev/null
@@ -1,87 +0,0 @@
-# $Id: PKGBUILD 90882 2013-05-15 07:40:34Z lcarlier $
-# Maintainer: Laurent Carlier <lordheavym@gmail.com>
-# Contributor: Thomas Dziedzic < gostrc at gmail >
-# Contributor: Roberto Alsina <ralsina@kde.org>
-# Contributor: Tomas Lindquist Olsen <tomas@famolsen.dk>
-# Contributor: Anders Bergh <anders@archlinuxppc.org>
-# Contributor: Tomas Wilhelmsson <tomas.wilhelmsson@gmail.com>
-
-pkgbase=llvm-amdgpu-snapshot
-pkgname=('llvm-amdgpu-snapshot' 'llvm-amdgpu-lib-snapshot')
-pkgver=20130403
-pkgrel=2
-pkgdesc='Low Level Virtual Machine with AMDGPU enabled to build r600g shader llvm support'
-arch=('i686' 'x86_64')
-url="http://llvm.org"
-license=('custom:University of Illinois/NCSA Open Source License')
-makedepends=('libffi' 'python2' 'ocaml')
-source=(ftp://ftp.archlinux.org/other/community/llvm-amdgpu/llvm-amdgpu-master.${pkgver}.tar.gz)
-md5sums=('4baa7b8da9eff4811952b6f855c141ca')
-
-prepare() {
- cd "$srcdir"/llvm-c*
-
- sed -i 's/python$/python2/' utils/llvm-build/llvm-build
-}
-
-build() {
- cd "$srcdir"/llvm-c*
-
- # Apply strip option to configure
- _optimized_switch="enable"
- [[ $(check_option strip) == n ]] && _optimized_switch="disable"
-
- # Include location of libffi headers in CPPFLAGS
- export CPPFLAGS="$CPPFLAGS $(pkg-config --cflags libffi)"
-
- # Force the use of GCC instead of clang
- PYTHON=python2 CC=gcc CXX=g++ \
- ./configure \
- --prefix=/usr \
- --libdir=/usr/lib/llvm \
- --sysconfdir=/etc \
- --enable-shared \
- --enable-libffi \
- --enable-targets=all \
- --enable-experimental-targets=R600 \
- --disable-expensive-checks \
- --with-binutils-include=/usr/include \
- --$_optimized_switch-optimized
-
- make REQUIRES_RTTI=1
-}
-
-package_llvm-amdgpu-snapshot() {
- depends=("llvm-amdgpu-lib-snapshot=${pkgver}" 'python2')
- conflicts=('llvm')
-
- cd "$srcdir"/llvm-c*
-
- make DESTDIR="$pkgdir" install
-
- # Remove useless files
- rm -r "$pkgdir"/usr/{docs,lib/ocaml}
- # moved to llvm-amdgpu-lib-snapshot
- rm "$pkgdir"/usr/lib/libLLVM-3.2svn.so
- # Fix permissions of static libs
- chmod -x "$pkgdir"/usr/lib/lib*.a
-
- install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_llvm-amdgpu-lib-snapshot() {
- depends=('libffi' 'gcc-libs')
-
- cd "$srcdir"/llvm-c*
-
- make DESTDIR="$pkgdir" install
-
- mv -v "$pkgdir"/usr/lib/libLLVM-3.2svn.so "$pkgdir"/
-
- # Remove useless files
- rm -r "$pkgdir"/usr/{bin,include,docs,lib/*}
-
- mv "$pkgdir"/libLLVM-3.2svn.so "$pkgdir"/usr/lib/
-
- install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
diff --git a/community/usb_modeswitch/PKGBUILD b/community/usb_modeswitch/PKGBUILD
index 1e8402072..9f2ec6816 100644
--- a/community/usb_modeswitch/PKGBUILD
+++ b/community/usb_modeswitch/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 91506 2013-05-23 10:15:55Z spupykin $
+# $Id: PKGBUILD 91584 2013-05-24 18:58:11Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=usb_modeswitch
pkgver=1.2.5
-pkgrel=2
+pkgrel=3
_pkgdata=20121109
pkgdesc="Activating switchable USB devices on Linux."
arch=('i686' 'x86_64')
@@ -19,6 +19,11 @@ md5sums=('c393603908eceab95444c5bde790f6f0'
'a7d23a03157871013a0d708ab2b1b6df'
'9918bbdc0f68873410688604c80d25c4')
+prepare() {
+ cd $srcdir/usb-modeswitch-$pkgver/
+ sed -i 's|/usr/sbin/usb_mode|/usr/bin/usb_mode|g' usb_modeswitch.{conf,tcl,sh}
+}
+
build() {
cd $srcdir/usb-modeswitch-$pkgver/
make clean