1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/djbdns/djbdns.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if [ "$prefix_auto" == 1 ]; then
17 makeopt="$makeopt prog"
23 echo /$prefix > conf-home
24 echo -e "#include \"auto_home.h\"
25 const char auto_home[]=\"/$prefix\";" > auto_home.c
28 pkg_djbdns_install() {
29 while read dir file; do
30 mkdir -p $root/$prefix/$dir
31 cp $file $root/$prefix/$dir/$file
32 done < <( grep "c(.*man\|c(.*bin" hier.c | cut -d \" --output-delimiter ' ' -f 2,4 )
35 hook_add premake 5 'pkg_djbdns_config'
36 hook_add postmake 4 'pkg_djbdns_install'
37 hook_add postmake 5 'pkg_djbdns_installman'
38 pkg_djbdns_installman() {
39 local x= saved_pwd=$PWD
42 tar -v $taropt `match_source_file -p djbdns.*man`
46 mkdir -p $root$mandir/man$x/
47 cp -v *.$x.gz $root$mandir/man$x/
53 [ "$SDECFG_PKG_DJBDNS_SIGHUP" = "1" ] &&
54 var_append patchfiles ' ' "`match_source_file -p tinydns_sighup`"
55 [ "$SDECFG_PKG_DJBDNS_MULTIDATA" = "1" ] &&
56 var_append patchfiles ' ' "`match_source_file -p multi_data`"
57 if [ "$SDECFG_PKG_DJBDNS_DUMPCACHE" = "1" ]; then
58 [ "$SDECFG_PKG_DJBDNS_SIGHUP" = "1" ] &&
59 var_append patchfiles ' ' "`match_source_file -p dumpcache_over_sighup-v4`" ||
60 var_append patchfiles ' ' "`match_source_file -p dumpcache-v4`"
62 [ "$SDECFG_PKG_DJBDNS_FWDZONE" = "1" ] &&
63 var_append patchfiles ' ' "`match_source_file -p fwdzone`"