Patch for saslfinger

Patrick Ben Koetter p at state-of-mind.de
Thu Nov 1 08:49:34 UTC 2007


* Roberto C. Sánchez <roberto at connexer.com>:
> Patrick,
> 
> I am incorporating saslfinger into the Debian sasl package right now.  I
> have modified the install script to allow installation to locations
> other than /.  Please see the attached patch.

Patch attached and published in saslfinger 1.0.5.

p at rick



> 
> Regards,
> 
> -Roberto
> 
> -- 
> Roberto C. Sánchez
> http://people.connexer.com/~roberto
> http://www.connexer.com

> diff -ur saslfinger-1.0.4/install.sh saslfinger/install.sh
> --- saslfinger-1.0.4/install.sh	2007-01-30 17:31:33.000000000 -0500
> +++ saslfinger/install.sh	2007-10-31 17:56:53.000000000 -0400
> @@ -3,6 +3,10 @@
>  scriptname="saslfinger"
>  man_paths=(/usr/share/man)
>  
> +if [ ! -z "$DESTDIR" ] ; then
> +        echo "DESTDIR ($DESTDIR) found in the environment. Will be used as install prefix."
> +fi
> +
>  # verify_man_page ()
>  # Check if the man page for this script has been installed and install it
>  # if it isn't there.
> @@ -12,7 +16,7 @@
>  for man_path in ${man_paths[@]}
>  do
>  local man_source="${scriptname}.1"
> -local man_dest="${man_path}/man1/${scriptname}.1"
> +local man_dest="$DESTDIR${man_path}/man1/${scriptname}.1"
>  if ! [[ -e ${man_dest} ]]; then
>  	echo "Installing man page..."
>  	$(cp ${man_source} ${man_dest})
> @@ -29,7 +33,7 @@
>  verify_script ()
>  {
>  local source_dir="${scriptname}"
> -local install_dir="/usr/bin/${scriptname}"
> +local install_dir="$DESTDIR/usr/bin/${scriptname}"
>  if ! [[ -e ${install_dir} ]]; then
>  	echo "Installing ${scriptname}..."
>  	`cp ${source_dir} ${install_dir}`
> Only in saslfinger: saslfinger.1
> Only in saslfinger-1.0.4: saslfinger.1.gz




-- 
The Book of Postfix
<http://www.postfix-book.com>
saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>



More information about the Pkg-cyrus-sasl2-debian-devel mailing list