Changeset 61579 for trunk/dports/java


Ignore:
Timestamp:
Dec 15, 2009, 1:20:22 PM (10 years ago)
Author:
krischik@…
Message:

Relational database implemented entirely in Java (incl. server components)

Location:
trunk/dports/java/derby-server
Files:
1 added
1 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/derby-server

    • Property svn:ignore set to
      .backups
      work
  • trunk/dports/java/derby-server/Portfile

    • Property svn:mime-type set to text/x-shellscript
    r57411 r61579  
     1# -*- coding: utf-8; mode: tcl; tab-width: 8; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4
    12# $Id$
     3# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
    24
    35PortSystem 1.0
    46
    5 name                    derby
    6 version                 10.5.3.0
     7name                derby-server
     8set packagename     derby
     9version             10.5.3.0
     10revision            0
     11categories          java
     12maintainers         krischik
     13platforms           darwin
    714
    8 categories              java
    9 maintainers             blair
    10 platforms               darwin
     15description         Relational database implemented entirely in Java (incl. server components)
     16long_description    Apache Derby, an Apache DB subproject, is an open       \
     17                    source relational database implemented entirely in      \
     18                    Java and available under the Apache License, Version    \
     19                    2.0.  Some key advantages include:  1) Derby has a      \
     20                    small footprint -- about 2 megabytes for the base       \
     21                    engine and embedded JDBC driver.  2) Derby is based     \
     22                    on the Java, JDBC, and SQL standards.  3) Derby         \
     23                    provides an embedded JDBC driver that lets you          \
     24                    embed Derby in any Java-based solution.  4) Derby       \
     25                    also supports the more familiar client/server mode      \
     26                    with the Derby Network Client JDBC driver and Derby     \
     27                    Network Server.  5) Derby is easy to install, deploy,   \
     28                    and use. This version includes the server components.
    1129
    12 description             Relational database implemented entirely in Java
    13 long_description        Apache Derby, an Apache DB subproject, is an open \
    14                         source relational database implemented entirely in \
    15                         Java and available under the Apache License, Version \
    16                         2.0.  Some key advantages include:  1) Derby has a \
    17                         small footprint -- about 2 megabytes for the base \
    18                         engine and embedded JDBC driver.  2) Derby is based \
    19                         on the Java, JDBC, and SQL standards.  3) Derby \
    20                         provides an embedded JDBC driver that lets you \
    21                         embed Derby in any Java-based solution.  4) Derby \
    22                         also supports the more familiar client/server mode \
    23                         with the Derby Network Client JDBC driver and Derby \
    24                         Network Server.  5) Derby is easy to install, deploy, \
    25                         and use.
    26 homepage                http://db.apache.org/derby/
     30homepage            http://db.apache.org/${packagename}
     31master_sites        apache:db/${packagename}/db-${packagename}-${version}
     32distname            db-${packagename}-${version}-bin
     33checksums           md5 35367c636ce035102a039a19ca707986            \
     34                    sha1 5293ce194f4c99b6d981ccac248799c766f0270c   \
     35                    rmd160 886eb0de5f3e1cb45bee8b13acb62d600ac21ae2
    2736
    28 master_sites            apache:db/derby/db-${name}-${version}
    29 distname                db-${name}-${version}-bin
    30 checksums               md5 35367c636ce035102a039a19ca707986 \
    31                         sha1 5293ce194f4c99b6d981ccac248799c766f0270c \
    32                         rmd160 886eb0de5f3e1cb45bee8b13acb62d600ac21ae2
     37depends_lib         bin:java:kaffe
     38conflicts           ${packagename}
     39default_variants    +symlinks
     40use_configure       no
     41build.cmd           true
    3342
    34 depends_lib             bin:java:kaffe
    35 
    36 use_configure           no
    37 
    38 build.cmd               true
     43pre-destroot {
     44    foreach f [glob -directory ${worksrcpath}/bin *.bat] {
     45        file delete $f
     46    }
     47}
    3948
    4049destroot {
    41         # Ensure needed directories
    42         xinstall -m 755 -d ${destroot}${prefix}/share \
    43                 ${destroot}${prefix}/share/doc/${name}
     50    xinstall -m 755 -d ${destroot}${prefix}/share/java
     51    xinstall -m 755 -d ${destroot}/${applications_dir}/Utilities
    4452
    45         foreach f { dblook derby_common.sh ij sysinfo } {
    46                 file copy ${worksrcpath}/bin/$f ${destroot}${prefix}/bin
    47         }
     53    file copy ${worksrcpath} ${destroot}${prefix}/share/java/${packagename}
    4854
    49         foreach f { KEYS LICENSE NOTICE RELEASE-NOTES.html } {
    50                 file copy ${worksrcpath}/$f \
    51                         ${destroot}${prefix}/share/doc/${name}
    52         }
    53 
    54         file copy ${worksrcpath}/lib ${destroot}${prefix}/share/java
     55    foreach script {Start_Derby} {
     56        xinstall -m 755                                                 \
     57           -W ${filespath}                                              \
     58            ${script}.command                                           \
     59            ${destroot}/${applications_dir}/Utilities/${script}.command
     60        reinplace s|@PREFIX@|${prefix}|g                                \
     61            ${destroot}${applications_dir}/Utilities/${script}.command
     62    }
    5563}
    5664
    57 variant doc description {Install HTML and PDF documentation and javadocs} {
    58         post-destroot {
    59                 foreach f { docs javadoc } {
    60                         file copy ${worksrcpath}/$f \
    61                                 ${destroot}${prefix}/share/doc/${name}
    62                 }
     65variant symlinks description {Installs symlinks into ${prefix}/bin} {
     66    post-destroot {
     67        foreach f { NetworkServerControl dblook derby_common.sh ij setEmbeddedCP setNetworkClientCP setNetworkServerCP startNetworkServer stopNetworkServer sysinfo } {
     68            system "ln -fs ${prefix}/share/java/${packagename}/bin/$f ${destroot}${prefix}/bin/$f"
    6369        }
     70        ui_msg "#############################################################"
     71        ui_msg "#  The Derby symblinks in ${prefix}/bin need \${DERBY_HOME} #"
     72        ui_msg "#  to be set to ${prefix}/java/derby                        #"
     73        ui_msg "#############################################################"
     74    }
    6475}
    6576
    66 livecheck.type          regex
    67 livecheck.url           "http://db.apache.org/derby/releases/?C=N;O=D"
    68 livecheck.regex         release-(\[0-9.\]+)\.html
     77livecheck.type      regex
     78livecheck.url       "http://db.apache.org/${packagename}/releases/?C=N;O=D"
     79livecheck.regex     release-(\[0-9.\]+)\.html
  • trunk/dports/java/derby-server/files/Start_Derby.command

    r61569 r61579  
    99setopt X_Trace;
    1010
    11 if test "${USER}" = "root"; then
    12     if test -d "@PREFIX@/share/java/glassfishv3/glassfish/domains/domain1"; then
    13         gchown -R martin "@PREFIX@/share/java/glassfishv3/glassfish/domains/domain1"
    14     fi;
    15 else
    16     sudo ${0} ${USER}
     11if test -d "@PREFIX@/share/java/derby"; then
     12    typeset -x -g -U -T CLASSPATH classpath ":";
     13    typeset -x -g DERBY_HOME="@PREFIX@/share/java/derby";
     14    typeset -x -g JAVA_HOME="/Library/Java/Home";
    1715
    18     if test -d "@PREFIX@/share/java/glassfishv3"; then
    19         typeset -x -g -U -T CLASSPATH classpath ":";
    20         typeset -x -g JAVA_HOME="/Library/Java/Home";
     16    path+="${DERBY_HOME}/bin"
     17    classpath+="${DERBY_HOME}/lib/derbyclient.jar";
     18fi;
    2119
    22         path+="@PREFIX@/share/java/glassfishv3/bin";
    23     fi;
    24    
    25     asadmin start-domain domain1
     20if test ! -d ~/.derby; then
     21    mkdir ~/.derby
    2622fi;
     23
     24pushd ~/.derby     
     25    startNetworkServer
     26popd;
    2727
    2828############################################################ {{{1 ###########
Note: See TracChangeset for help on using the changeset viewer.