mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
747 B

  1. # use the apache prefix
  2. . $base/package/*/apache/apache.conf
  3. phppgadmin_main() {
  4. local x="phpPgAdmin"
  5. mkdir -vp $localstatedir/$x
  6. mkdir -vp $sysconfdir/$x
  7. ln -vfs $localstatedir/$x $x
  8. # if $x/conf exists it's not overwritten, a new link is created
  9. # inside, i.e. $x/conf/$x -> .
  10. # ( /me hates these stupid behavior of ln )
  11. [ -e $x/conf ] || ln -vfs $sysconfdir/$x $x/conf
  12. # phpPgAdmin/conf/config.inc.php excluded, template can be
  13. # found at phpPgAdmin/conf/config.inc.php-dist
  14. tar -v --exclude config.inc.php \
  15. $taropt $archdir/$x-$ver.tar.bz2
  16. cat <<- EOT > $sysconfdir/$x.conf-dist
  17. Alias /$x $localstatedir/$x
  18. <Directory $localstatedir/$x>
  19. DirectoryIndex index.php
  20. </Directory>
  21. EOT
  22. }
  23. mainfunction='phppgadmin_main'