CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
procps: updated to 3.3.3 and aligned with upstream. Cleaned cross patches.
[crossrootfs.git] / tcp_wrappers / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: Monitors and Controls incoming TCP connections
2# URL: ftp://ftp.porcupine.org/pub/security/index.html
3# Maintainer: CRUX System Team, core-ports at crux dot nu
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on:
6
7name=tcp_wrappers
8version=7.6
9c92f2a7
JB
9release=10
10source=(ftp://ftp.porcupine.org/pub/security/${name}_${version}.tar.gz \
11 ftp://ftp.uni-frankfurt.de/pub/Mirrors/gentoo.org/distfiles/tcp-wrappers-$version-patches-1.0.tar.bz2 \
12 hosts.allow hosts.deny try-from.8 safe_finger.8)
6dca1d21
JB
13
14build() {
9c92f2a7
JB
15 cd ${name}_${version}
16
17 patch -p1 -i $SRC/$version/tcp-wrappers-$version-makefile.patch
18 patch -p1 -i $SRC/$version/generic/01_all_redhat-bug11881.patch
19 patch -p0 -i $SRC/$version/generic/02_all_redhat-bug17795.patch
20 patch -p0 -i $SRC/$version/generic/03_all_wildcard.patch
21 patch -p1 -i $SRC/$version/generic/04_all_fixgethostbyname.patch
22 patch -p1 -i $SRC/$version/generic/07_all_sig.patch
23 patch -p1 -i $SRC/$version/generic/08_all_strerror.patch
24 patch -p1 -i $SRC/$version/generic/09_all_gcc-3.4.patch
25 patch -p1 -i $SRC/$version/generic/10_all_more-headers.patch
26 patch -p1 -i $SRC/$version/tcp-wrappers-$version-shared.patch
27 patch -p2 -i $SRC/$version/tcp-wrappers-$version-ipv6-1.14.diff
28
29 export GENTOO_OPT="-DHAVE_WEAKSYMS -DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len"
30 export RANLIB=$RANLIB
31 export MAJOR=0 MINOR=${version:0:1} REL=${version:2:3}
32 make config-check
33 make linux
34
35 install -d $PKG/{etc,usr/{sbin,lib,include,man/{man3,man5,man8}}}
36
37 install -m 0755 safe_finger tcpd tcpdchk tcpdmatch try-from $PKG/usr/sbin
38 install -m 0644 tcpd.h $PKG/usr/include
39 install -m 0644 libwrap.a $PKG/usr/lib
40 cp --no-dereference --preserve=links libwrap.so* $PKG/usr/lib
41
42 install -m 0644 *.3 $PKG/usr/man/man3
43 install -m 0644 *.5 $PKG/usr/man/man5
44 install -m 0644 $SRC/*.8 *.8 $PKG/usr/man/man8
45 ln -s hosts_access.3.gz $PKG/usr/man/man3/hosts_ctl.3.gz
46 ln -s hosts_access.3.gz $PKG/usr/man/man3/request_init.3.gz
47 ln -s hosts_access.3.gz $PKG/usr/man/man3/request_set.3.gz
48 ln -s hosts_access.5.gz $PKG/usr/man/man5/host.allow.5.gz
49 ln -s hosts_access.5.gz $PKG/usr/man/man5/host.deny.5.gz
50
51 install -m 0644 $SRC/hosts.{deny,allow} $PKG/etc
6dca1d21 52}