IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42993


Ignore:
Timestamp:
Apr 22, 2026, 11:56:11 AM (2 weeks ago)
Author:
eugene
Message:

install dsdbh.pm for working build, add example user-level commands

Location:
branches/eam_branches/ipp-pstamp-20260421/DataStoreServer
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/notes.txt

    r42992 r42993  
    1515  This generates the tables needed by the datastore web pages and tools
    1616
     17* choose a psbuild location:
     18  # psconfig ipp-pstamp
     19  * sets the build / install environment for code below which does not go into
     20    the apache server cgi location
     21
     22* in psconfig, to install needed perl libraries:
     23  # pscheckperl pstamp-ubuntu -build
     24
    1725* in DataStoreServer, to install the apache CGI elements:
    18   * ./autogen.sh --with-cgidir=/MY/DATASTORE/ds-cgi --with-dsroot=/MY/DATASTORE/dsroot
    19   * make cgi
     26  # ./autogen.sh --with-cgidir=/MY/DATASTORE/ds-cgi --with-dsroot=/MY/DATASTORE/dsroot
     27  # make cgi
    2028  * then edit /MY/DATASTORE/ds-cgi/dsshellconfig
    2129    ** supply the perl path of the user built to support the datastore
     
    4553
    4654* Things needed in the user build by the apache server:
    47   * dsdbh.pm in PERL
     55  * dsdbh.pm (installed as part of DataStoreServer : make cgi)
     56  * Devel::CheckLib
    4857  * DBD/mysql.pm
     58
     59* Edit the ippconfig/site.config to point at the datastore:
     60  * DS_DBSERVER     
     61  * DS_DBNAME       
     62  * DS_DBUSER       
     63  * DS_DBPASSWORD   
     64  * DATA_STORE_ROOT
    4965
    5066* Things installed as user tools:
    5167  * dsreg
    5268  * dsprodtool
    53 
    54 *
    5569
    5670----------
  • branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/web/cgi

    • Property svn:ignore set to
      Makefile
      Makefile.in
  • branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/web/cgi/Makefile.am

    r42992 r42993  
     1
     2installdir = $(libdir)
     3
     4install_files = dsdbh.pm
     5
     6install_SCRIPTS = $(install_files)
     7
     8ACLOCAL_AMFLAGS = -I m4
     9
     10cgi_config = dsshellconfig
     11
    112cgi_scripts = \
    213  dsindex.cgi \
     
    516  dsfsindex \
    617  dsprodindex \
    7   dsrootindex \
    8   dsshellconfig
     18  dsrootindex
    919
    1020dsroot_files = index.txt.template index.txt
    1121
    12 EXTRA_DIST = $(cgi_scripts) $(dsroot_files)
     22EXTRA_DIST = $(cgi_scripts) $(cgi_config) $(dsroot_files)
    1323
    1424install-cgi:
     
    2939          $(INSTALL_DATA) $$f $(DESTDIR)$(dsroot)/$$f; \
    3040        done
    31         @echo ""
    32         @echo "datastore apache CGI code installation complete."
    33         @echo "Now please edit $(DESTDIR)$(cgidir)/dsshellconfig"
    34         @echo "and add the required settings."
    35         @echo ""
     41
     42        @if test ! -f "$(DESTDIR)$(cgidir)/dsshellconfig"; then \
     43          $(INSTALL_DATA) dsshellconfig "$(DESTDIR)$(cgidir)/dsshellconfig"; \
     44          echo ""; \
     45          echo "Installed new dsshellconfig file:"; \
     46          echo "  $(DESTDIR)$(cgidir)/dsshellconfig"; \
     47          echo "Please edit it and add the required settings."; \
     48          echo ""; \
     49        else \
     50          echo ""; \
     51          echo "Preserving existing file:"; \
     52          echo "  $(DESTDIR)$(DESTDIR)$(cgidir)/dsshellconfig"; \
     53          echo "Template not reinstalled, so local edits were kept."; \
     54          echo ""; \
     55        fi
    3656
    3757uninstall-cgi:
Note: See TracChangeset for help on using the changeset viewer.