* mark python sqlite DEP opt and update .cache
[t2sde.git] / package / network / tcp_wrappers / tcp_wrappers.conf
blob9785d27ed42ab20191a1712123707eeca33dbda8
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/tcp_wrappers/tcp_wrappers.conf
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # inject hotfixes
14 tcpw_prepatch() {
15         tar $taropt `match_source_file -p debian`
16         var_insert patchfiles ' ' "$(cat debian/patches/series | sed 's,^,debian/patches/,')"
18 hook_add prepatch 5 "tcpw_prepatch"
20 # config
21 var_append makeopt ' ' 'NETGROUP= TLI= EXTRA_CFLAGS="-DBROKEN_SO_LINGER -DHAVE_STRERROR -DSYS_ERRLIST_DEFINED"'
23 # we do not use the silly per OS config, also we need RANLIB for cross builds
24 var_append makeopt ' ' 'RANLIB=$RANLIB ARFLAGS=rv all'
26 # for parallel build
27 hook_add premake 5 'eval $MAKE ${makeopt/all/config-check}'
29 tcpw_install() {
30         cp -v hosts_access.3 $root$datadir/man/man3
31         cp -v hosts_access.5 hosts_options.5 $root$datadir/man/man5
33         cp -v tcpd.8 tcpdchk.8 tcpdmatch.8 $root$datadir/man/man8
34         ln -sf hosts_access.5 $root$datadir/man/man5/hosts.allow.5
35         ln -sf hosts_access.5 $root$datadir/man/man5/hosts.deny.5
36         cp -v libwrap.a $root$libdir
37         cp -v tcpd.h $root$includedir
38         install -m755 safe_finger tcpd tcpdchk tcpdmatch try-from $root$sbindir
40 hook_add postmake 3 "tcpw_install"
41 makeinstopt=