PKGBUILDs/core/tcp_wrappers/PKGBUILD
2009-09-26 12:10:12 -05:00

43 lines
1.5 KiB
Bash

# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
pkgname=tcp_wrappers
pkgver=7.6
pkgrel=2
pkgdesc="Monitors and Controls incoming TCP connections"
arch=(arm)
url="ftp://ftp.porcupine.org/pub/security/index.html"
license=('custom')
groups=('base')
backup=(opt/etc/hosts.allow etc/hosts.deny)
depends=()
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'
'384d92ca12f5950436d09a5cf8255cd6'
'a0ee30f6aeaca241c4d44f7c177eca6b'
'4a8f40f9a69f0848df92b232072e8561'
'1a6d7b11abb1fd69ace775d02a1c72cf'
'19c3badd4fbee547eb9de61ed93691af'
'b9236fe5102b103d999cdf87715756a6')
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=/opt/sbin STYLE=-DSYS_ERRLIST_DEFINED linux || return 1
# dumb makefile
mkdir -p $startdir/pkg/opt/{include,lib,sbin}
mkdir -p $startdir/pkg/opt/share/man/man{3,5,8}
make DESTDIR=$startdir/pkg install
install -D -m644 ../hosts.allow $startdir/pkg/opt/etc/hosts.allow
install -D -m644 ../hosts.deny $startdir/pkg/opt/etc/hosts.deny
# install license
mkdir -p $startdir/pkg/opt/share/licenses/$pkgname
install -m644 DISCLAIMER $startdir/pkg/opt/share/licenses/$pkgname/license.txt
}