summaryrefslogtreecommitdiffstats
path: root/tcp_wrappers/Pkgfile
blob: 81ca719869d97b63f8b404413a7b2beb5b7e1c32 (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
# Description: Supervise et contrôle les flux TCP entrants
# URL: http://ftp.porcupine.org/pub/security/index.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=tcp_wrappers
version=7.6
release=1
source=( ftp://ftp.porcupine.org/pub/security/tcp_wrappers_$version.tar.gz\
         http://www.linuxfromscratch.org/patches/blfs/svn/tcp_wrappers-7.6-shared_lib_plus_plus-1.patch\
         hosts.allow hosts.deny)


build() {
	cd tcp_wrappers_$version
        patch -Np1 -i ../tcp_wrappers-7.6-shared_lib_plus_plus-1.patch
        sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c
	make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux
	mkdir -p $PKG/usr/{sbin,lib,include,share/man/man{3,5,8}}
        mkdir $PKG/etc
        mv ../hosts.{allow,deny} $PKG/etc
	make DESTDIR=$PKG install
}