]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Bug 6638 - Solaris is starting to remind me of RedHat...
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 3 Mar 2006 17:13:37 +0000 (17:13 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 3 Mar 2006 17:13:37 +0000 (17:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@11715 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
build_tools/make_build_h

index 5f90fe6a5b79d070c44700d25f8401fd9d4610e0..5afc43a560d6743795fdb2c6d4df5998146585b0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -212,10 +212,12 @@ ifeq ($(OSARCH),Linux)
 endif
 
 GREP=grep
+ID=id
 
 ifeq ($(OSARCH),SunOS)
   GREP=/usr/xpg4/bin/grep
   M4=/usr/local/bin/m4
+  ID=/usr/xpg4/bin/id
 endif
 
 INCLUDE+=-Iinclude -I../include
@@ -539,7 +541,7 @@ clean:
        $(MAKE) -C stdtime clean
 
 datafiles: all
-       if [ x`id -un` = xroot ]; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
+       if [ x`$(ID) -un` = xroot ]; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
        mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits
        mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros
        for x in sounds/digits/*.gsm; do \
index a9b04198564c9009d61ad5c8af2d88d42044cca9..167785340e9c8ac4b0e7b168356f8c127469a9e4 100755 (executable)
@@ -3,7 +3,11 @@ HOSTNAME=`uname -n`
 KERNEL=`uname -r`
 MACHINE=`uname -m`
 OS=`uname -s`
-USER=`id -un`
+if [ `uname -s` = "SunOS" ]; then
+  USER=`/usr/xpg4/bin/id -un`
+else
+  USER=`id -un`
+fi
 DATE=`date -u "+%Y-%m-%d %H:%M:%S"`
 cat << END
 /*