| 1 | NAME = coreutils |
|---|
| 2 | VERSION = 8.15 |
|---|
| 3 | CATEGORIES = utils |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | # seq has issues related to the handling of long double's with -O2. |
|---|
| 7 | # this issue manifested on sol8 and sol9 x86 only. sparc was unaffected |
|---|
| 8 | # and sol10 x86 was fine too. |
|---|
| 9 | # OPT_FLAGS_GCC = -O1 -pipe |
|---|
| 10 | |
|---|
| 11 | # building with gcc gets us extra tools (eg: stdbuf) |
|---|
| 12 | GARCOMPILER = GCC4 |
|---|
| 13 | |
|---|
| 14 | SHELL = /opt/csw/bin/bash |
|---|
| 15 | |
|---|
| 16 | BUILD_DEP_PKGS = CSWautomake CSWautoconf CSWbison CSWggettext-dev CSWgit |
|---|
| 17 | BUILD_DEP_PKGS += CSWgperf CSWgzip CSWperl CSWrsync CSWgtar CSWbash |
|---|
| 18 | |
|---|
| 19 | RUNTIME_DEP_PKGS_CSWcoreutils += CSWlibintl8 |
|---|
| 20 | RUNTIME_DEP_PKGS_CSWcoreutils += CSWlibgcc-s1 |
|---|
| 21 | RUNTIME_DEP_PKGS_CSWcoreutils += CSWlibiconv2 |
|---|
| 22 | RUNTIME_DEP_PKGS_CSWcoreutils += CSWlibgmp10 |
|---|
| 23 | |
|---|
| 24 | INCOMPATIBLE_PKGS = CSWshutils CSWtextutils |
|---|
| 25 | |
|---|
| 26 | DESCRIPTION = GNU core utilities |
|---|
| 27 | define BLURB |
|---|
| 28 | 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. |
|---|
| 29 | |
|---|
| 30 | 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 Coreutils. |
|---|
| 31 | endef |
|---|
| 32 | |
|---|
| 33 | MASTER_SITES = $(GNU_MIRROR) |
|---|
| 34 | DISTFILES = $(NAME)-$(VERSION).tar.xz |
|---|
| 35 | |
|---|
| 36 | # We define upstream file regex so we can be notifed of new upstream |
|---|
| 37 | # software release |
|---|
| 38 | UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz |
|---|
| 39 | |
|---|
| 40 | sysconfdir = /etc/opt/csw |
|---|
| 41 | localstatedir = /var/opt/csw |
|---|
| 42 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 43 | CONFIGURE_ARGS += --program-prefix=g |
|---|
| 44 | CONFIGURE_ARGS += --with-libintl-prefix=/opt/csw |
|---|
| 45 | CONFIGURE_ARGS += --with-libiconv-prefix=/opt/csw |
|---|
| 46 | # handle su manually to avoid needing fakeroot or some such. this is now |
|---|
| 47 | # explicitly required as we modify both --enable-*install-program lists |
|---|
| 48 | CONFIGURE_ARGS += --enable-no-install-program=chcon,su |
|---|
| 49 | CONFIGURE_ARGS += --enable-install-program=hostname,arch |
|---|
| 50 | |
|---|
| 51 | # required for eaccess and not picked up automatically. |
|---|
| 52 | EXTRA_LDFLAGS = -lgen |
|---|
| 53 | |
|---|
| 54 | PROTOTYPE_FILTER = awk '$$$$3 == "/opt/csw/bin/gsu" { $$$$4 = "4555" }; { print }' |
|---|
| 55 | |
|---|
| 56 | # move the pegs forward |
|---|
| 57 | ifneq ($(VERSION), 8.13) |
|---|
| 58 | else |
|---|
| 59 | TEST_SCRIPTS = |
|---|
| 60 | endif |
|---|
| 61 | |
|---|
| 62 | include gar/category.mk |
|---|
| 63 | |
|---|
| 64 | PATH := ~/bin:/opt/csw/gnu:/opt/csw/bin:$(PATH) |
|---|
| 65 | |
|---|
| 66 | post-install-modulated: |
|---|
| 67 | @echo Cleaning up install directory... |
|---|
| 68 | rm -rf $(DESTDIR)/$(libdir) |
|---|
| 69 | @echo Manually install gsu \(so no root rights required\) |
|---|
| 70 | cp $(WORKSRC)/src/su $(DESTDIR)$(bindir)/gsu |
|---|
| 71 | |
|---|
| 72 | post-merge: |
|---|
| 73 | @(cd $(PKGROOT)$(prefix); \ |
|---|
| 74 | mkdir gnu; cd gnu; \ |
|---|
| 75 | for f in ../bin/g*; do \ |
|---|
| 76 | echo Linking $$f; \ |
|---|
| 77 | base=$$(basename $$f); \ |
|---|
| 78 | gln -s $$f ./$${base/g/}; \ |
|---|
| 79 | done ) |
|---|
| 80 | @(cd $(PKGROOT)$(datadir)/info; \ |
|---|
| 81 | perl -pi -e 's#/usr/local/bin/printf#/opt/csw/bin/gprintf#g;' \ |
|---|
| 82 | -e 's#/usr/local/bin/listusers#/my/bin/showusers#;' \ |
|---|
| 83 | coreutils.info) |
|---|
| 84 | @$(MAKECOOKIE) |
|---|