Filewatcher File Search
FTP Search
  
Directory 
  
Content Search 
   
pkg://af_2.0-6_arm.deb:370932/postinst  info  downloads

#!/bin/bash

# Are we configuring af?
if test $# -ge "1" && test "$1" = "configure"; then
    # Set up /etc/mailname if it's not already there
    if test ! -f /etc/mailname; then
	# Get the default mailname
	hostname=`hostname --fqdn`

	# Prompt the user for the mail name
	echo "Please enter the \"mail name\" of your system.  This is the
	echo "hostname portion of the address to be shown on outgoing mail
	echo "messages.  The default is $hostname, your system's host name."
	echo
	echo -n "Mail name [$hostname]: "
	read mailname

	# Default mailname if not set and apply it
	test -z "$mailname" && mailname="$hostname"
	echo $mailname >/etc/mailname
    fi

    # Check we can run the afconfig script
    if test -x /usr/bin/afconfig; then
	afconfig
    else
    	echo "Af postinst can't run afconfig" >&2
    fi
fi
# Permission processing inserted by debstd
if [ -x /usr/sbin/suidregister ]; then
	suidregister -s af /usr/lib/af/readmbox root mail 2755
else
	chown root.mail /usr/lib/af/readmbox
	chmod 2755 /usr/lib/af/readmbox
fi
# Permission processing inserted by debstd
if [ -x /usr/sbin/suidregister ]; then
	suidregister -s af /usr/lib/af/writembox root mail 2755
else
	chown root.mail /usr/lib/af/writembox
	chmod 2755 /usr/lib/af/writembox
fi
# symlink management generated by debstd
if [ "$1" = "configure" ]; then
  if [ -d /usr/doc -a ! -e /usr/doc/af -a -d /usr/share/doc/af ]; then
    ln -sf ../share/doc/af /usr/doc/af
  fi
fi
if [ -x /usr/bin/update-menus ] ; then update-menus ; fi
# info file installation generated by debstd
install-info --quiet --section "General commands" "General commands" \
             --description="An advanced mail reader and composer." /usr/share/info/af.info
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2009 MARUHN Internet Solutions