# arg 1: the new package version pre_install() { # # do pre-install stuff here # /bin/true } # arg 1: the new package version post_install() { # # do post-install stuff here # echo "" echo "# @(#)COPYRIGHT 1.2 (Pangeia Informatica) 2/21/97" echo "Copyright 1996-2003 - Pangeia Informatica, All rights reserved." echo "" echo "Redistribution and use in source and binary forms, with or without " echo "modification, are permitted provided that the following conditions are met:" echo "" echo "1. Redistributions of source code must retain the above copyright" echo " notice, this list of conditions and the following disclaimer." echo "2. Redistributions in binary form must reproduce the above copyright" echo " notice, this list of conditions and the following disclaimer in the" echo " documentation and/or other materials provided with the distribution." echo "" echo "THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY " echo "EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED " echo "WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE " echo "DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY " echo "DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES " echo "(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;" echo "LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND " echo "ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT " echo "(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS " echo "SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." echo "" echo "" sleep 3 /bin/true } # arg 1: the new package version # arg 2: the old package version pre_upgrade() { # # do pre-upgrade stuff here # /bin/true } # arg 1: the new package version # arg 2: the old package version post_upgrade() { # # do post-upgrade stuff here # echo "" echo "# @(#)COPYRIGHT 1.2 (Pangeia Informatica) 2/21/97" echo "Copyright 1996-2003 - Pangeia Informatica, All rights reserved." echo "" echo "Redistribution and use in source and binary forms, with or without " echo "modification, are permitted provided that the following conditions are met:" echo "" echo "1. Redistributions of source code must retain the above copyright" echo " notice, this list of conditions and the following disclaimer." echo "2. Redistributions in binary form must reproduce the above copyright" echo " notice, this list of conditions and the following disclaimer in the" echo " documentation and/or other materials provided with the distribution." echo "" echo "THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY " echo "EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED " echo "WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE " echo "DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY " echo "DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES " echo "(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;" echo "LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND " echo "ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT " echo "(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS " echo "SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." echo "" sleep 3 /bin/true } # arg 1: the old package version pre_remove() { # # do pre-remove stuff here # /bin/true } # arg 1: the old package version post_remove() { # # do post-remove stuff here # /bin/true } op=$1 shift $op $*