#!/bin/sh # Packager version 2.6b made by Lightning 3/9/2005 # # Packaged by nab . /etc/colors NAME=postserv_0.2_nab FILES="postserv_0.2_nab.tgz" EXFILE="" FREESCO="0.3.0 0.3.x" PACKED=31 UNPACKED=50 LIBS="" DEPEND="" INFO="Configure package for Postal System of Russia" quit() { rm -r $3 killall pkg sync sync exit 1 } case $1 in preinstall) echo " ***-- This package is officially unapproved at this time --***" echo " ***-- loading this program could damage your system --***" exit 0;; postinstall) # echo -n "Start PostServ [y/n]? (y)" # read t # if [ t = n ]; then rc_postserv start # fi exit 0;; info) echo "$INFO";; uninstall) rc_postserv stop [ -f /pkg/disabled/rc_postserv ] && rm -f /pkg/disabled/rc_postserv || rm -f /pkg/rc/rc_postserv rm -rf /pkg/addons/PostServ rm -f /pkg/bin/telnet rm -f /pkg/etc/postserv.cfg rm -f /etc/postserv.cfg rm -rf /pkg/usr/local/postserv ;; esac