* rebased llvm/hotfix-sparcv9-not-64.diff
[t2sde.git] / package / php / phppgadmin / phppgadmin.conf
blob355346a02f18b2d2650e9089a08ff82794bed3da
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/phppgadmin/phppgadmin.conf
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
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 # use the php prefix
13 pkgprefix -t php
14 prefix=$(pkgprefix php)
15 set_confopt
17 makeopt=
18 makeinstopt=
20 hook_add postmake 5 'phppgadmin_install'
21 hook_add postdoc  5 'phppgadmin_installconf'
23 phppgadmin_install() {
24         local x="phpPgAdmin"
26         mkdir -vp $datadir/$x
27         mkdir -vp $sysconfdir/$x
29         # if $x/conf exists it's not overwritten, a new link is created
30         # inside, i.e. $x/conf/$x -> .
31         if [ ! -e $datadir/$x/conf ]; then
32                 ln -vfs $sysconfdir/$x $datadir/$x/conf
33         fi
35         # phpPgAdmin/conf/config.inc.php excluded, template can be
36         # found at phpPgAdmin/conf/config.inc.php-dist
37         rm -f conf/config.inc.php
38         tar -c * | tar -x -v -C $datadir/$x
40 phppgadmin_installconf() {
41         local x="phpPgAdmin"
43         cat <<- EOT > $sysconfdir/$x.conf-dist
44                 Alias /$x $datadir/$x
45                 <Directory $datadir/$x>
46                         DirectoryIndex index.php
47                 </Directory>
48         EOT