# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. Format: V2 Pkgname: madlib Architecture: @CPACK_RPM_PACKAGE_ARCHITECTURE@ Version: @MADLIB_VERSION_STRING_NO_HYPHEN@@GPPKG_VER@-@GPDB_VARIANT_SHORT@@GPDB_VERSION_LC@ OS: rhel@RH_MAJOR_VERSION@ GPDBVersion: @GPDB_VERSION_LC@ Description: Madlib is an open source library which provides scalable in-database analytics. It provides data-parallel implementations of mathematical, statistical and machine learning methods for structured and unstructured data. PostInstall: Coordinator: "echo 'Please run the following command to deploy MADlib'; echo 'usage: madpack install [-s schema_name] -p @PORT_NAME@ -c user@host:port/database'; echo 'Example:'; echo ' $ $GPHOME/madlib/bin/madpack install -s madlib -p @PORT_NAME@ -c gpadmin@mdw:5432/testdb'; echo ' This will install MADlib objects into a @GPDB_VARIANT@ database named \"testdb\"'; echo ' running on server \"mdw\" on port 5432. Installer will try to login as \"gpadmin\"'; echo ' and will prompt for password. The target schema will be \"madlib\".'; echo ' To upgrade to a new version of MADlib from version v@UPGRADE_SUPPORT@ or later, use option \"upgrade\",'; echo ' instead of \"install\" '; echo 'For additional options run:'; echo '$ madpack --help'; echo 'Release notes and additional documentation can be found at http://madlib.apache.org';" All: # Remove existing soft links find $GPHOME/madlib/bin -depth -type l -exec rm {} \; 2>/dev/null; find $GPHOME/madlib/doc -depth -type l -exec rm {} \; 2>/dev/null; find $GPHOME/madlib/Current -depth -type l -exec rm {} \; 2>/dev/null; ln -nsf $GPHOME/madlib/Versions/@MADLIB_VERSION_STRING@ $GPHOME/madlib/Current; ln -nsf $GPHOME/madlib/Current/bin $GPHOME/madlib/bin; ln -nsf $GPHOME/madlib/Current/doc $GPHOME/madlib/doc; PostUpgrade: All: # Remove existing soft links find $GPHOME/madlib/bin -depth -type l -exec rm {} \; 2>/dev/null; find $GPHOME/madlib/doc -depth -type l -exec rm {} \; 2>/dev/null; find $GPHOME/madlib/Current -depth -type l -exec rm {} \; 2>/dev/null; ln -nsf $GPHOME/madlib/Versions/@MADLIB_VERSION_STRING@ $GPHOME/madlib/Current; ln -nsf $GPHOME/madlib/Current/bin $GPHOME/madlib/bin; ln -nsf $GPHOME/madlib/Current/doc $GPHOME/madlib/doc; PostUninstall: All: # Remove existing soft links find $GPHOME/madlib/bin -depth -type l -exec rm {} \; 2>/dev/null; find $GPHOME/madlib/doc -depth -type l -exec rm {} \; 2>/dev/null; find $GPHOME/madlib/Current -depth -type l -exec rm {} \; 2>/dev/null;