You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							1.0 KiB
						
					
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							1.0 KiB
						
					
					
				#!/bin/sh | 
						|
# --- T2-COPYRIGHT-NOTE-BEGIN --- | 
						|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. | 
						|
#  | 
						|
# T2 SDE: package/.../sendmail/parse-config | 
						|
# Copyright (C) 2004 - 2006 The T2 SDE Project | 
						|
# Copyright (C) 1998 - 2003 Clifford Wolf | 
						|
#  | 
						|
# More information can be found in the files COPYING and README. | 
						|
#  | 
						|
# This program is free software; you can redistribute it and/or modify | 
						|
# it under the terms of the GNU General Public License as published by | 
						|
# the Free Software Foundation; version 2 of the License. A copy of the | 
						|
# GNU General Public License can be found in the file COPYING. | 
						|
# --- T2-COPYRIGHT-NOTE-END --- | 
						|
 | 
						|
install_setmailer() { | 
						|
	# protect from install_wrapper | 
						|
	local OLDIWF="$INSTALL_WRAPPER_FILTER" | 
						|
	unset INSTALL_WRAPPER_FILTER | 
						|
 | 
						|
	sed "s,@mailer@,$1,g" > $root/usr/sbin/setmailer_$1 \ | 
						|
		< $base/package/*/sendmail/setmailer.sh | 
						|
	chmod +x $root/usr/sbin/setmailer_$1 | 
						|
 | 
						|
	if [ "$SDECFG_DEFAULT_MTA" = "$1" ] ; then | 
						|
		$root/usr/sbin/setmailer_$1 | 
						|
	fi | 
						|
 | 
						|
	# restore install_wrapper | 
						|
	INSTALL_WRAPPER_FILTER="$OLDIWF" | 
						|
} | 
						|
 | 
						|
 |