the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: coreutils
Version: 6.9
Epoch: 1
Revision: 3
BuildDepends: expat1, help2man, libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev
Depends: libgettext3-shlibs, libiconv
NoSetLDFLAGS: true
SetLIBS: -L%p/lib
Source: mirror:gnu:%n/%n-%v.tar.bz2
Source-MD5: c9607d8495f16e98906e7ed2d9751a06
Patch: %n.patch
ConfigureParams: --bindir=%p/lib/%N/bin --mandir=%p/lib/%N/share/man --infodir=%p/share/info
CompileScript: <<
#!/bin/sh -ex
case `uname -r` in
[0-8].*) ./configure %c;;
*) ./configure jm_cv_func_svid_putenv=yes gl_cv_func_working_acl_get_file=no %c;;
esac
make
make check
<<
InstallScript: <<
#!/bin/sh -ex
set +x # We don't want -x, but fink validateor complains
go() { echo "$@"; "$@"; }
go make install DESTDIR=%d
go rm -f %i/lib/charset.alias
go rm -f %i/lib/%N/bin/su %i/lib/%N/bin/users %i/lib/%N/bin/who
go ln -s share/man %i/lib/%N/man
for d in bin share/man/man1; do
dd=`echo "$d" | sed 's,[^/]*,..,g'`/lib/%N/$d
go mkdir -p "%I/$d"
go cd "%I/$d"
for f in "$dd/"*; do
ff=`basename "$f"`
case $ff in
\[) ;;
rm) go ln -s "$f" "$ff.gnu";;
rm.1) go ln -s "$f" "$ff.gnu.1";;
*) go ln -s "$f" "g$ff";;
esac
done
done
<<
DocFiles: COPYING README
InfoDocs: coreutils.info
Description: GNU flavoured basic commands
DescDetail: <<
The GNU Core Utilities are the basic file, shell and text manipulation
utilities of the GNU operating system. These are the core utilities
which are expected to exist on every operating system.
Previously these utilities were offered as three individual sets of
GNU utilities, fileutils, shellutils, and textutils. Those three have
been combined into a single set of utilities called the coreutils.
The commands are named with 'g' prefix like 'gls' or 'gcp'. If you want
to use them as 'ls' or 'cp', add %p/lib/coreutils/bin to your PATH
or install the coreutils-default package.
As the exception, the 'rm' command is named as 'rm.gnu' instead of 'grm'
because the cwp-su package has another 'grm'.
<<
DescUsage: <<
The exotic commands like mknod may or may not work in a useful manner
on Darwin. Following commands are removed due to their breakage:
- su
- users
- who
<<
DescPort: <<
charset.alias is deleted because it is empty on Darwin anyway and
causes unnecessary conflicts between packages.
About the jm_cv_func_svid_putenv=yes, see:
http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00514.html
Since the ACL support in 10.5 looks buggy and breaks make check,
I turned off it. I can't tell whether MacOS or coreutils is wrong.
<<
SplitOff: <<
Package: coreutils-default
Description: GNU flavoured basic commands without 'g' prefix
Depends: coreutils (>= %e:%v-%r)
Conflicts: fileutils (<< 1:5-1), textutils (<< 1:5-1), shellutils (<< 1:5-1)
Replaces: fileutils (<< 1:5-1), textutils (<< 1:5-1), shellutils (<< 1:5-1)
DescDetail: <<
The GNU Core Utilities are the basic file, shell and text manipulation
utilities of the GNU operating system. These are the core utilities
which are expected to exist on every operating system.
This package serves the commands without 'g' prefix like 'ls' or 'cp'.
<<
DescPort: <<
Symlinks to md5sum and readlink are not created, they are already
contained in the dpkg package.
Symlink to tsort (topological sort) is not created because it breaks
other packages. The GNU version of tsort doesn't output files that are
part of a cycle, while the BSD tsort that ships with Darwin does.
Symlink to base64 is not created because it conflicts against
the base64 package.
<<
InstallScript: <<
#!/bin/sh -ex
set +x # We don't want -x, but fink validateor complains
go() { echo "$@"; "$@"; }
for d in bin share/man/man1; do
dd=`echo "$d" | sed 's,[^/]*,..,g'`/lib/%N/$d
go mkdir -p "%i/$d"
go cd "%I/$d"
for f in "$dd/"*; do
ff=`basename "$f"`
case $ff in
md5sum*|readlink*|tsort*|base64*) ;;
*) go ln -s "$f" "%i/$d/$ff";;
esac
done
done
go mkdir -p %i/share/doc/installed-packages
go touch %i/share/doc/installed-packages/%n
go ln -s %N %i/share/doc/%n
<<
<<
SplitOff2: <<
Package: fileutils
Description: Placeholder to help migration coreutils
Depends: coreutils-default (>= %e:%v-%r), fink-obsolete-packages
InstallScript: <<
mkdir -p %i/share/doc
ln -s %N %i/share/doc/%n
<<
<<
SplitOff3: <<
Package: textutils
Description: Placeholder to help migration coreutils
Depends: coreutils-default (>= %e:%v-%r), fink-obsolete-packages
InstallScript: <<
mkdir -p %i/share/doc
ln -s %N %i/share/doc/%n
<<
<<
SplitOff4: <<
Package: shellutils
Description: Placeholder to help migration coreutils
Depends: coreutils-default (>= %e:%v-%r), fink-obsolete-packages
InstallScript: <<
mkdir -p %i/share/doc
ln -s %N %i/share/doc/%n
<<
<<
License: GPL
Maintainer: AIDA Shinra
Homepage: http://www.gnu.org/software/coreutils/