summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/tcp_wrappers/PKGBUILD
blob: 5612e2370ee360ea72076427acbf42b18e37ba1b (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 356 2008-04-18 22:56:27Z aaron $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=tcp_wrappers
pkgver=7.6
pkgrel=17
pkgdesc="Monitors and Controls incoming TCP connections"
arch=(i686 x86_64)
url="ftp://ftp.porcupine.org/pub/security/index.html"
license=('custom')
groups=('base')
backup=(etc/hosts.allow etc/hosts.deny)
depends=('bash' 'glibc')
source=(ftp://ftp.porcupine.org/pub/security/${pkgname}_$pkgver.tar.gz \
        hosts.allow hosts.deny try-from.8 safe_finger.8 gcc340.patch \
        shared_lib_plus_plus-1.patch)
md5sums=('e6fa25f71226d090f34de3f6b122fb5a' '32cfeeed797161034f62bb45f3167baa'\
         'a0ee30f6aeaca241c4d44f7c177eca6b' '4a8f40f9a69f0848df92b232072e8561'\
         '1a6d7b11abb1fd69ace775d02a1c72cf' '19c3badd4fbee547eb9de61ed93691af'\
         'e39dc7e099b741b6d2b1799a56ab77af')

build() {
  cd $startdir/src/${pkgname}_$pkgver
  patch -Np1 -i ../gcc340.patch || return 1
  patch -Np1 -i ../shared_lib_plus_plus-1.patch || return 1
  make REAL_DAEMON_DIR=/usr/sbin STYLE=-DSYS_ERRLIST_DEFINED linux || return 1
  # dumb makefile
  mkdir -p $startdir/pkg/usr/{include,lib,sbin}
  mkdir -p $startdir/pkg/usr/share/man/man{3,5,8}
  make DESTDIR=$startdir/pkg install
  install -D -m644 ../hosts.allow $startdir/pkg/etc/hosts.allow
  install -D -m644 ../hosts.deny $startdir/pkg/etc/hosts.deny
  # install license
  mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
  install -m644 DISCLAIMER $startdir/pkg/usr/share/licenses/$pkgname/license.txt
}