Added libpcap, yaourt, and package-query

This commit is contained in:
Mike Staszel 2010-07-13 05:45:29 -07:00
parent e4e3431712
commit 3b5e691910
4 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# Contributor: tuxce <tuxce.net@gmail.com>
# Plugbox didn't change anything. This is from AUR.
pkgname=package-query
pkgver=0.3
pkgrel=2
pkgdesc="Query ALPM and AUR"
arch=('i686' 'x86_64' 'arm')
url="http://gitweb.archlinux.fr/cgit/package-query.git"
license=('GPL')
depends=(pacman curl yajl)
source=(http://mir.archlinux.fr/~tuxce/releases/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('34d27cd1cb85ec71f1a320b2aa8a016b')
build() {
cd "$srcdir/$pkgname-$pkgver"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/man/man8"
make DESTDIR="$pkgdir" install
}

28
community/yaourt/PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# Author: Julien MISCHKOWITZ <wain@archlinux.fr>
# Author: tuxce <tuxce.net@gmail.com>
# Plugbox didn't change anything. This is from AUR.
pkgname=yaourt
pkgver=0.9.4.3
pkgrel=1
pkgdesc="A Pacman frontend with more features and AUR support"
arch=(any)
url="http://www.archlinux.fr/yaourt-en/"
license="GPL"
depends=('diffutils' 'pacman>=3.3.3' 'package-query>=0.3')
makedepends=('gettext')
optdepends=('aurvote: vote for favorite packages from AUR for inclusion in [community]'
'customizepkg: automatically modify PKGUILD during install/upgrade'
'pacman-color: fully colorized output'
'rsync: retrieve PKGBUILD from official repositories'
'colordiff: colorized output with yaourt -C')
install=yaourt.install
backup=('etc/yaourtrc')
source=(http://archiwain.free.fr/os/i686/$pkgname/$pkgname-$pkgver.src.tar.gz)
md5sums=('8f5508d4d3db0f7211fd1c898cb58d9a')
build() {
cd $startdir/src/$pkgname-$pkgver
make install DESTDIR=$pkgdir || return 1
}

View file

@ -0,0 +1,14 @@
post_install() {
echo "==> Check /etc/yaourtrc, syntax of configuration file changes."
echo " -> man yaourtrc"
echo "==> To use yaourt as a user, add these entries to /etc/sudoers:"
echo " -> user ALL=NOPASSWD: /usr/bin/pacman"
echo " -> user ALL=NOPASSWD: /usr/bin/pacdiffviewer"
echo " (Please, use sudo carefully.)"
echo "==> For fully colorized output via pacman-color:"
echo " -> Set the PacmanBin option in /etc/yaourtrc"
}
post_upgrade() {
post_install $1
}

35
core/libpcap/PKGBUILD Executable file
View file

@ -0,0 +1,35 @@
# Maintainer: Mike Staszel <mikestaszel@plugboxlinux.org>
# Plugbox changes:
# - Commented out 2 ln -s lines
pkgname=libpcap
pkgver=1.1.1
pkgrel=1
pkgdesc="A system-independent interface for user-level packet capture"
arch=('i686' 'x86_64')
url="http://www.tcpdump.org/"
license=('BSD')
depends=('glibc' 'libnl')
makedepends=('flex')
source=(http://www.tcpdump.org/release/libpcap-${pkgver}.tar.gz)
sha256sums=('508cca15547e55d1318498b838456a21770c450beb2dc7d7d4a96d90816e5a85')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --enable-ipv6
make || return 1
make shared || return 1
install -d -m755 ${pkgdir}/usr/bin
make DESTDIR=${pkgdir} install install-shared || return 1
# ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so.1
# ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so
# backwards compatibility, programs often look for net/bpf.h
mkdir -p ${pkgdir}/usr/include/net
cd ${pkgdir}/usr/include/net
ln -s ../pcap-bpf.h bpf.h
#install the license
install -D -m644 ${srcdir}/$pkgname-$pkgver/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}