- Timestamp:
- 11/03/20 15:38:37 (4 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r771 r797 100 100 @mkdir -p $(DESTDIR)${datadir}/$(PKG_LEAF)/templates 101 101 @$(INSTALL_DATA) $(TEMPLATES) $(DESTDIR)${datadir}/$(PKG_LEAF)/templates 102 @# munge in necessary 'use lib ...' bits so scripts can find libs and config...103 @# datadir is correct; no arch-specific files104 102 @for i in $(SCRIPTS) $(MODULES); do \ 105 103 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${datadir}/$(PKG_LEAF)/$$i ; \ 106 perl -pi -e "s|use lib '.';\s+##uselib##|use lib '${datadir}/$(PKG_LEAF)/';|;" $(DESTDIR)${datadir}/$(PKG_LEAF)/$$i ; \107 104 done 108 105 @$(INSTALL) -d $(DESTDIR)${sysconfdir}/$(CFG_LEAF)/ -
trunk/compact-recs.pl
r786 r797 4 4 ## 5 5 # $Id$ 6 # Copyright 2013,2014,2018 Kris Deugau <kdeugau@deepnet.cx>6 # Copyright 2013,2014,2018,2020 Kris Deugau <kdeugau@deepnet.cx> 7 7 # 8 8 # This program is free software: you can redistribute it and/or modify … … 23 23 use warnings; 24 24 25 use lib '.'; ##uselib## 25 # push "the directory the script is in" into @INC 26 use FindBin; 27 use lib "$FindBin::RealBin/"; 28 26 29 use DNSDB; 27 30 -
trunk/dns-rpc.cgi
r794 r797 3 3 ## 4 4 # $Id$ 5 # Copyright 2012-2016 Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2012-2016,2020 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 22 22 use warnings; 23 23 24 # don't remove! required for GNU/FHS-ish install from tarball 25 use lib '.'; ##uselib## 24 # push "the directory the script is in" into @INC 25 use FindBin; 26 use lib "$FindBin::RealBin/"; 27 26 28 use DNSDB; 27 29 -
trunk/dns.cgi
r788 r797 3 3 ## 4 4 # $Id$ 5 # Copyright 2008-20 19Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2008-2020 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 41 41 #die "argh! \@INC got tainted!" if is_tainted(@INC); 42 42 43 # don't remove! required for GNU/FHS-ish install from tarball 44 use lib '.'; ##uselib## 43 # push "the directory the script is in" into @INC 44 use FindBin; 45 use lib "$FindBin::RealBin/"; 45 46 46 47 use DNSDB; -
trunk/export.pl
r581 r797 22 22 use warnings; 23 23 24 # don't remove! required for GNU/FHS-ish install from tarball 25 use lib '.'; ##uselib## 24 # push "the directory the script is in" into @INC 25 use FindBin; 26 use lib "$FindBin::RealBin/"; 26 27 27 28 use DNSDB; -
trunk/mergerecs
r786 r797 3 3 ## 4 4 # $Id$ 5 # Copyright 2014,2016,2018 Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2014,2016,2018,2020 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 27 27 use Data::Dumper; 28 28 29 # don't remove! required for GNU/FHS-ish install from tarball 30 use lib '.'; ##uselib## 29 # push "the directory the script is in" into @INC 30 use FindBin; 31 use lib "$FindBin::RealBin/"; 31 32 32 33 use DNSDB; -
trunk/textrecs.cgi
r745 r797 3 3 ## 4 4 # $Id$ 5 # Copyright 2012-2014 Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2012-2014,2020 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 28 28 use DBI; 29 29 30 # don't remove! required for GNU/FHS-ish install from tarball 31 use lib '.'; ##uselib## 30 # push "the directory the script is in" into @INC 31 use FindBin; 32 use lib "$FindBin::RealBin/"; 32 33 33 34 use DNSDB; -
trunk/tiny-import.pl
r791 r797 3 3 ## 4 4 # $Id$ 5 # Copyright 2012-2014 Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2012-2014,2020 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 28 28 use Time::TAI64 qw(:tai); 29 29 30 use lib '.'; ##uselib## 30 # push "the directory the script is in" into @INC 31 use FindBin; 32 use lib "$FindBin::RealBin/"; 33 31 34 use DNSDB; 32 35 -
trunk/vega-import.pl
r496 r797 3 3 ## 4 4 # $Id$ 5 # Copyright 2011-2013 Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2011-2013,2020 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 28 28 use DBI; 29 29 use Data::Dumper; 30 31 # push "the directory the script is in" into @INC 32 use FindBin; 33 use lib "$FindBin::RealBin/"; 30 34 31 35 use DNSDB;
Note:
See TracChangeset
for help on using the changeset viewer.