Submitted By: Uwe Düffert (lfs at uwe-dueffert dot de)
Date: 2004-05-11
Initial Package Version: 2.4.1
Origin: self-created, http://www.uwe-dueffert.de/lfs/ownpatches/inn-2.4.1-myposix-1.patch
Upstream Status: not reported
Description: use posix head and tail syntax
 
diff -Naur inn-2.4.1.orig/aclocal.m4 inn-2.4.1/aclocal.m4
--- inn-2.4.1.orig/aclocal.m4	2004-01-07 22:47:20.000000000 +0000
+++ inn-2.4.1/aclocal.m4	2004-05-10 21:36:48.000000000 +0000
@@ -1341,7 +1341,7 @@
     # If the export-symbols file already is a .def file (1st line
     # is EXPORTS), use it as is.
     # If DATA tags from a recent dlltool are present, honour them!
-    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
+    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
 	cp $export_symbols $output_objdir/$soname-def;
       else
 	echo EXPORTS > $output_objdir/$soname-def;
@@ -3314,7 +3314,7 @@
   lt_cv_file_magic_cmd='/usr/bin/file -L'
   case "$host_os" in
   rhapsody* | darwin1.[[012]])
-    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
+    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -n 1`
     ;;
   *) # Darwin 1.3 on
     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
diff -Naur inn-2.4.1.orig/backends/actsyncd.in inn-2.4.1/backends/actsyncd.in
--- inn-2.4.1.orig/backends/actsyncd.in	2004-01-07 22:47:20.000000000 +0000
+++ inn-2.4.1/backends/actsyncd.in	2004-05-10 21:36:48.000000000 +0000
@@ -53,23 +53,23 @@
 
 # parse config_file
 #
-host="`sed -n -e 's/^host=[ 	]*//p' $cfg | tail -1`"
+host="`sed -n -e 's/^host=[ 	]*//p' $cfg | tail -n 1`"
 if [ -z "$host" ]; then
     echo "$0: no host specified in $cfg" 1>&2
     exit 3
 fi
-flags="`sed -n -e 's/^flags=[ 	]*//p' $cfg | tail -1`"
+flags="`sed -n -e 's/^flags=[ 	]*//p' $cfg | tail -n 1`"
 if [ -z "$flags" ]; then
     echo "$0: no flags specified in $cfg" 1>&2
     exit 4
 fi
-ign="`sed -n -e 's/^ignore_file=[ 	]*//p' $cfg | tail -1`"
+ign="`sed -n -e 's/^ignore_file=[ 	]*//p' $cfg | tail -n 1`"
 if [ -z "$ign" ]; then
     echo "$0: no ignore file specified in $cfg" 1>&2
     exit 5
 fi
-ftp="`sed   -n -e 's/^ftppath=[ 	]*//p' $cfg | tail -1`"
-spool="`sed -n -e 's/^spool=[ 	]*//p' $cfg | tail -1`"
+ftp="`sed   -n -e 's/^ftppath=[ 	]*//p' $cfg | tail -n 1`"
+spool="`sed -n -e 's/^spool=[ 	]*//p' $cfg | tail -n 1`"
 if [ -z "$spool" ]; then
     spool=$SPOOL
     #echo "$0: no spool directory specified in $cfg" 1>&2
diff -Naur inn-2.4.1.orig/configure inn-2.4.1/configure
--- inn-2.4.1.orig/configure	2004-01-07 22:47:20.000000000 +0000
+++ inn-2.4.1/configure	2004-05-10 21:36:48.000000000 +0000
@@ -1786,7 +1786,7 @@
   lt_cv_file_magic_cmd='/usr/bin/file -L'
   case "$host_os" in
   rhapsody* | darwin1.[012])
-    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
+    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -n 1`
     ;;
   *) # Darwin 1.3 on
     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
@@ -3265,7 +3265,7 @@
     # If the export-symbols file already is a .def file (1st line
     # is EXPORTS), use it as is.
     # If DATA tags from a recent dlltool are present, honour them!
-    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
+    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
 	cp $export_symbols $output_objdir/$soname-def;
       else
 	echo EXPORTS > $output_objdir/$soname-def;
@@ -8087,7 +8087,7 @@
 echo "configure:8088: checking for Perl linkage" >&5
     inn_perl_core_path=`$_PATH_PERL -MConfig -e 'print $Config{archlibexp}'`
     inn_perl_core_flags=`$_PATH_PERL -MExtUtils::Embed -e ccopts`
-    inn_perl_core_libs=`$_PATH_PERL -MExtUtils::Embed -e ldopts 2>&1 | tail -1`
+    inn_perl_core_libs=`$_PATH_PERL -MExtUtils::Embed -e ldopts 2>&1 | tail -n 1`
     inn_perl_core_libs=" $inn_perl_core_libs "
     inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lc / /'`
     for i in $LIBS ; do
diff -Naur inn-2.4.1.orig/configure.in inn-2.4.1/configure.in
--- inn-2.4.1.orig/configure.in	2004-01-07 22:47:20.000000000 +0000
+++ inn-2.4.1/configure.in	2004-05-10 21:36:48.000000000 +0000
@@ -852,7 +852,7 @@
     AC_MSG_CHECKING(for Perl linkage)
     inn_perl_core_path=`$_PATH_PERL -MConfig -e 'print $Config{archlibexp}'`
     inn_perl_core_flags=`$_PATH_PERL -MExtUtils::Embed -e ccopts`
-    inn_perl_core_libs=`$_PATH_PERL -MExtUtils::Embed -e ldopts 2>&1 | tail -1`
+    inn_perl_core_libs=`$_PATH_PERL -MExtUtils::Embed -e ldopts 2>&1 | tail -n 1`
     inn_perl_core_libs=" $inn_perl_core_libs "
     inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lc / /'`
     for i in $LIBS ; do
diff -Naur inn-2.4.1.orig/support/fixscript.in inn-2.4.1/support/fixscript.in
--- inn-2.4.1.orig/support/fixscript.in	2004-01-07 22:47:20.000000000 +0000
+++ inn-2.4.1/support/fixscript.in	2004-05-10 21:36:48.000000000 +0000
@@ -51,7 +51,7 @@
     exit 1
 fi
 
-interpretor=`head -1 "$input"`
+interpretor=`head -n 1 "$input"`
 case "$interpretor" in
 */sh|*SH*)
     path="$SHPATH"
