summaryrefslogtreecommitdiff
path: root/community/miredo/PKGBUILD
blob: 98beee6ebeb6e64c680f13e302df2fe8900f6e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 31503 2010-11-01 10:29:17Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=miredo
pkgver=1.2.3
pkgrel=1
pkgdesc="Teredo client and server."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.remlab.net/miredo/"
license=('GPL')
depends=(judy iproute2)
backup=('etc/miredo/miredo.conf' 'etc/miredo/miredo-server.conf' 'etc/miredo/isatapd.conf')
source=(http://www.remlab.net/files/${pkgname}/${pkgname}-${pkgver}.tar.bz2
	isatapd.rc.d
	miredo.install
	miredo.rc.d
	miredo-server.rc.d)
md5sums=('6ba484ad5e331514a8a3452da2b144e7'
         '51ab6d091192605ee9206944869cb2ab'
         'd1b655d7a851cdb46c91c3418ed1962f'
         'c5a9be5c3175fecec387f1710bfd2788'
         '319aba1ae06349b76cb25fda0dba60a9')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-Judy
  make
  make DESTDIR="$pkgdir" install

  install -D -m755 $startdir/miredo.rc.d $pkgdir/etc/rc.d/miredo
  install -D -m755 $startdir/miredo-server.rc.d $pkgdir/etc/rc.d/miredo-server
  install -D -m755 $startdir/isatapd.rc.d $pkgdir/etc/rc.d/isatapd
  sed -i 's#/sbin/ip#/usr/sbin/ip#' $pkgdir/etc/miredo/client-hook
}