summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 121f8d302ee6e7e4eb37dbc148eb4d4d614e130d (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
36
37
38
39
40
41
42
# Maintainer: Martin Brodbeck <martin at brodbeck-online dot de>
pkgname=fritzident
pkgver=0.1
pkgrel=3
pkgdesc="Allows internet access limits for individual users on an AVM Fritz!Box"
arch=('i686' 'x86_64')
url="https://github.com/naund/fritzident"
license=('GPL3')
depends=('glibc')
optdepends=('xinetd: to run fritzident through xinetd')
backup=('etc/xinetd.d/fritzident')
install='fritzident.install'
source=($pkgname-$pkgver.tar.gz)
md5sums=('c96c82b6892299bf20f208757544331e')

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

  make
}

package() {
  cd "$pkgname-$pkgver"
  mkdir -p $pkgdir/usr/bin
  mkdir -p $pkgdir/etc/xinetd.d

  cp fritzident $pkgdir/usr/bin/

  cat >$pkgdir/etc/xinetd.d/fritzident <<EOL
service fritzident
{
  port = 14013
  socket_type = stream
  protocol = tcp
  wait = no
  user = root
  server = /usr/bin/fritzident
  server_args = fritzident
  disable = no
}
EOL
}