usr/src/cmd/sudo/solaris.patch
author Jon Tibble <meths@btinternet.com>
Fri, 10 Feb 2012 16:19:42 +0000
branchoi_151a
changeset 114 b6d40d0a7b17
parent 50 6100357dc4bc
permissions -rw-r--r--
Added tag oi_151a_prestable1 for changeset b1282e88c680
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
     1
diff -c -r sudo-1.7.4p4/Makefile.in sudo-1.7.4p4.sun/Makefile.in
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
     2
*** sudo-1.7.4p4/Makefile.in	Fri Sep  3 23:43:57 2010
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
     3
--- sudo-1.7.4p4.sun/Makefile.in	Thu Sep 23 22:07:12 2010
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     4
***************
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
     5
*** 24,29 ****
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
     6
--- 24,31 ----
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     7
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     8
  #### Start of system configuration section. ####
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     9
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    10
+ TESTMACH:sh = if [ -z "$MACH64" ] ; then echo "Run make from Makfile.sfw" >&2 ; exit 1; else [ -d $MACH64 ] || mkdir $MACH64 ; fi
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    11
+ 
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    12
  srcdir = @srcdir@
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    13
  devdir = @devdir@
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    14
  authdir = $(srcdir)/auth
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    15
***************
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    16
*** 86,91 ****
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    17
--- 88,96 ----
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    18
  mandirsu = $(mandir)/$(mantype)$(mansectsu)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    19
  mandirform = $(mandir)/$(mantype)$(mansectform)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    20
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    21
+ datadir = @datadir@
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    22
+ ldifdir = $(datadir)/lib/ldif
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    23
+ 
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    24
  # User and group ids the installed files should be "owned" by
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    25
  install_uid = 0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    26
  install_gid = 0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    27
***************
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    28
*** 207,212 ****
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    29
--- 212,228 ----
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    30
  libsudo_noexec.la: sudo_noexec.lo
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    31
  	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    32
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    33
+ #
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    34
+ # Create 64-bit versions of the shared library
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    35
+ #
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    36
+ $(MACH64)/sudo_noexec.lo: $(srcdir)/sudo_noexec.c
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    37
+ 	$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS64) $(DEFS) $(OPTIONS) -o $(MACH64)/sudo_noexec.o $(srcdir)/sudo_noexec.c
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    38
+ 
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    39
+ $(MACH64)/libsudo_noexec.la: $(MACH64)/sudo_noexec.lo
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    40
+ 	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -m64 -o $@ $(MACH64)/sudo_noexec.lo -avoid-version -rpath $(noexecdir)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    41
+ 
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    42
+ libsudo_noexec: libsudo_noexec.la $(MACH64)/libsudo_noexec.la
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    43
+ 
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    44
  # Uncomment the following if you want "make distclean" to clean the parser
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    45
  @DEV@GENERATED = gram.h gram.c toke.c def_data.c def_data.h getdate
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    46
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    47
***************
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    48
*** 475,519 ****
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    49
  	    hg log --style=changelog -b default --date '<2010-01-18 00:00:00' >> $@; \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    50
  	fi
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    51
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    52
! install: install-dirs install-binaries @INSTALL_NOEXEC@ install-sudoers install-doc
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    53
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    54
  install-dirs:
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    55
  	$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(sudodir) \
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    56
  	    $(DESTDIR)$(visudodir) $(DESTDIR)$(noexecdir) \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    57
  	    $(DESTDIR)$(sudoersdir) $(DESTDIR)$(docdir) \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    58
! 	    $(DESTDIR)$(mandirsu) $(DESTDIR)$(mandirform)
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    59
  	$(SHELL) $(srcdir)/mkinstalldirs -m 0700 $(DESTDIR)$(timedir)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    60
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    61
  install-binaries: install-dirs $(PROGS)
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    62
! 	$(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -M 04111 sudo $(DESTDIR)$(sudodir)/sudo
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    63
  	rm -f $(DESTDIR)$(sudodir)/sudoedit
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    64
  	ln $(DESTDIR)$(sudodir)/sudo $(DESTDIR)$(sudodir)/sudoedit
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    65
! 	if [ -f sudoreplay ]; then $(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -M 0111 sudoreplay $(DESTDIR)$(sudodir)/sudoreplay; fi
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    66
! 	$(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -M 0111 visudo $(DESTDIR)$(visudodir)/visudo
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    67
! 	if [ -f sesh ]; then $(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -M 0111 sesh $(DESTDIR)$(libexecdir)/sesh; fi
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    68
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    69
! install-noexec: install-dirs libsudo_noexec.la
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    70
! 	if [ -f .libs/lib$(noexecfile) ]; then $(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -M 0755 .libs/lib$(noexecfile) $(DESTDIR)$(noexecdir)/$(noexecfile); fi
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    71
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    72
  install-sudoers: install-dirs
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    73
! 	$(INSTALL) -d -O $(sudoers_uid) -G $(sudoers_gid) -M 0750 \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    74
  	    $(DESTDIR)$(sudoersdir)/sudoers.d
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    75
  	test -f $(DESTDIR)$(sudoersdir)/sudoers || \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    76
! 	    $(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -M $(sudoers_mode) \
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    77
  		sudoers $(DESTDIR)$(sudoersdir)/sudoers
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    78
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    79
  install-doc: install-dirs ChangeLog
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    80
! 	(cd $(srcdir) && for f in ChangeLog HISTORY LICENSE NEWS README TROUBLESHOOTING UPGRADE sample.*; do $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 $$f $(DESTDIR)$(docdir); done)
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    81
! 	@LDAP@(cd $(srcdir) && for f in README.LDAP schema.* sudoers2ldif; do $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 $$f $(DESTDIR)$(docdir); done)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    82
! 	$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/sudo.$(mantype) $(DESTDIR)$(mandirsu)/sudo.$(mansectsu)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    83
  	@rm -f $(DESTDIR)$(mandirsu)/sudoedit.$(mansectsu)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    84
  	ln $(DESTDIR)$(mandirsu)/sudo.$(mansectsu) $(DESTDIR)$(mandirsu)/sudoedit.$(mansectsu)
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    85
! 	@REPLAY@$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/sudoreplay.$(mantype) $(DESTDIR)$(mandirsu)/sudoreplay.$(mansectsu)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    86
! 	$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/visudo.$(mantype) $(DESTDIR)$(mandirsu)/visudo.$(mansectsu)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    87
! 	$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/sudoers.$(mantype) $(DESTDIR)$(mandirform)/sudoers.$(mansectform)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    88
! 	@LDAP@$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/sudoers.ldap.$(mantype) $(DESTDIR)$(mandirform)/sudoers.ldap.$(mansectform)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    89
  @MAN_POSTINSTALL@
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    90
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    91
  check:
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    92
  	@echo nothing to check
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    93
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    94
--- 491,542 ----
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    95
  	    hg log --style=changelog -b default --date '<2010-01-18 00:00:00' >> $@; \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    96
  	fi
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    97
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    98
! install: install-dirs install-binaries @INSTALL_NOEXEC@ install-sudoers install-doc install-ldif
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    99
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   100
  install-dirs:
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   101
  	$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(sudodir) \
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   102
  	    $(DESTDIR)$(visudodir) $(DESTDIR)$(noexecdir) \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   103
  	    $(DESTDIR)$(sudoersdir) $(DESTDIR)$(docdir) \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   104
! 	    $(DESTDIR)$(mandirsu) $(DESTDIR)$(mandirform) \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   105
! 	    $(DESTDIR)$(ldifdir)
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   106
  	$(SHELL) $(srcdir)/mkinstalldirs -m 0700 $(DESTDIR)$(timedir)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   107
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   108
  install-binaries: install-dirs $(PROGS)
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   109
! 	$(INSTALL) -O $(install_uid) -G $(install_gid) -m 04511 sudo $(DESTDIR)$(sudodir)/sudo
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   110
  	rm -f $(DESTDIR)$(sudodir)/sudoedit
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   111
  	ln $(DESTDIR)$(sudodir)/sudo $(DESTDIR)$(sudodir)/sudoedit
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   112
! 	if [ -f sudoreplay ]; then $(INSTALL) -O $(install_uid) -G $(install_gid) -m 0111 sudoreplay $(DESTDIR)$(sudodir)/sudoreplay; fi
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   113
! 	$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0511 visudo $(DESTDIR)$(visudodir)/visudo
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   114
! 	if [ -f sesh ]; then $(INSTALL) -O $(install_uid) -G $(install_gid) -m 0511 sesh $(DESTDIR)$(libexecdir)/sesh; fi
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   115
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   116
! install-noexec: install-dirs libsudo_noexec.la $(MACH64)/libsudo_noexec.la
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   117
! 	if [ -f .libs/lib$(noexecfile) ]; then $(INSTALL) -O $(install_uid) -G $(install_gid) -m 0755 .libs/lib$(noexecfile) $(DESTDIR)$(noexecdir)/$(noexecfile); fi
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   118
! 	if [ -f $(MACH64)/.libs/lib$(noexecfile) ]; then $(INSTALL) -O $(install_uid) -G $(install_gid) -m 0755 $(MACH64)/.libs/lib$(noexecfile) $(DESTDIR)$(noexecdir)/$(MACH64)/$(noexecfile); fi
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   119
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   120
  install-sudoers: install-dirs
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   121
! 	$(INSTALL) -d -O $(sudoers_uid) -G $(sudoers_gid) -m 0750 \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   122
  	    $(DESTDIR)$(sudoersdir)/sudoers.d
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   123
  	test -f $(DESTDIR)$(sudoersdir)/sudoers || \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   124
! 	    $(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -m $(sudoers_mode) \
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   125
  		sudoers $(DESTDIR)$(sudoersdir)/sudoers
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   126
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   127
  install-doc: install-dirs ChangeLog
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   128
! 	(cd $(srcdir) && for f in ChangeLog HISTORY LICENSE NEWS README TROUBLESHOOTING UPGRADE sample.*; do $(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 $$f $(DESTDIR)$(docdir); done)
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   129
! 	@LDAP@(cd $(srcdir) && for f in README.LDAP schema.* sudoers2ldif; do $(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 $$f $(DESTDIR)$(docdir); done)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   130
! 	$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 @mansrcdir@/sudo.$(mantype) $(DESTDIR)$(mandirsu)/sudo.$(mansectsu)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   131
  	@rm -f $(DESTDIR)$(mandirsu)/sudoedit.$(mansectsu)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   132
  	ln $(DESTDIR)$(mandirsu)/sudo.$(mansectsu) $(DESTDIR)$(mandirsu)/sudoedit.$(mansectsu)
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   133
! 	@REPLAY@$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 @mansrcdir@/sudoreplay.$(mantype) $(DESTDIR)$(mandirsu)/sudoreplay.$(mansectsu)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   134
! 	$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 @mansrcdir@/visudo.$(mantype) $(DESTDIR)$(mandirsu)/visudo.$(mansectsu)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   135
! 	$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 @mansrcdir@/sudoers.$(mantype) $(DESTDIR)$(mandirform)/sudoers.$(mansectform)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   136
! 	@LDAP@$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 @mansrcdir@/sudoers.ldap.$(mantype) $(DESTDIR)$(mandirform)/sudoers.ldap.$(mansectform)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   137
  @MAN_POSTINSTALL@
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   138
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   139
+ install-ldif:
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   140
+ 	$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 $(srcdir)/schema.OpenLDAP $(DESTDIR)$(ldifdir)/sudo-schema.OpenLDAP
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   141
+ 	$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 $(srcdir)/schema.iPlanet $(DESTDIR)$(ldifdir)/sudo-schema.iPlanet
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   142
+ 	$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 $(srcdir)/sudoers2ldif $(DESTDIR)$(ldifdir)/sudoers2ldif
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   143
+ 
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   144
  check:
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   145
  	@echo nothing to check
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   146
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   147
***************
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   148
*** 524,530 ****
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   149
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   150
  distclean: clean
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   151
  	-rm -rf Makefile pathnames.h config.h config.status config.cache \
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   152
! 		config.log libtool sudoers sudo_noexec.lo .libs $(GENERATED) \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   153
  		sudo.man sudoers.man sudoers.ldap.man sudoreplay.man \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   154
  		visudo.man sudo_usage.h Makefile.binary
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   155
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   156
--- 547,554 ----
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   157
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   158
  distclean: clean
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   159
  	-rm -rf Makefile pathnames.h config.h config.status config.cache \
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   160
! 		config.log libtool sudoers sudo_noexec.lo $(MACH64) \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   161
! 		.libs $(GENERATED) \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   162
  		sudo.man sudoers.man sudoers.ldap.man sudoreplay.man \
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   163
  		visudo.man sudo_usage.h Makefile.binary
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   164
  
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   165
Common subdirectories: sudo-1.7.4p4/auth and sudo-1.7.4p4.sun/auth
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   166
diff -c -r sudo-1.7.4p4/configure sudo-1.7.4p4.sun/configure
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   167
*** sudo-1.7.4p4/configure	Mon Sep  6 14:03:39 2010
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   168
--- sudo-1.7.4p4.sun/configure	Fri Sep 17 14:22:18 2010
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   169
***************
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   170
*** 18438,18444 ****
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   171
  	fi
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   172
      fi
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   173
      if test X"$with_noexec" != X"no"; then
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   174
! 	PROGS="${PROGS} libsudo_noexec.la"
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   175
  	INSTALL_NOEXEC="install-noexec"
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   176
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   177
  	eval noexec_file="$with_noexec"
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   178
--- 18438,18444 ----
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   179
  	fi
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   180
      fi
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   181
      if test X"$with_noexec" != X"no"; then
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   182
! 	PROGS="${PROGS} libsudo_noexec"
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   183
  	INSTALL_NOEXEC="install-noexec"
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   184
  
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   185
  	eval noexec_file="$with_noexec"
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   186
Common subdirectories: sudo-1.7.4p4/emul and sudo-1.7.4p4.sun/emul
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   187
diff -c -r sudo-1.7.4p4/env.c sudo-1.7.4p4.sun/env.c
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   188
*** sudo-1.7.4p4/env.c	Wed Aug 18 21:27:03 2010
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   189
--- sudo-1.7.4p4.sun/env.c	Fri Sep 17 14:32:17 2010
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   190
***************
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   191
*** 792,798 ****
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   192
--- 792,819 ----
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   193
  #  ifdef _AIX
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   194
  	sudo_setenv("LDR_PRELOAD", def_noexec_file, TRUE);
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   195
  #  else
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   196
+ #    ifdef __sun
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   197
+ 	{
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   198
+ 	    char *p = NULL;
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   199
+ 	    char path[MAXPATHLEN], path64[MAXPATHLEN];
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   200
+ 
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   201
+ 	    if (strlcpy(path, def_noexec_file, sizeof (path)) < sizeof (path))
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   202
+ 	        p = strrchr(path, '/');
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   203
+ 	    if (p != NULL) {
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   204
+ 	        /* full pathname specified; set both 32/64 LD_PRELOAD vars */
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   205
+ 		*p = '\0';
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   206
+ 		if (snprintf(path64, sizeof (path64), "%s/64/%s",
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   207
+ 			path, p+1) < sizeof (path64))
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   208
+ 		    sudo_setenv("LD_PRELOAD_64", path64, TRUE);
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   209
+ 		sudo_setenv("LD_PRELOAD_32", def_noexec_file, TRUE);
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   210
+ 	    } else {
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   211
+ 	        /* relative pathname specified, ld.so.1 will search */
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   212
+ 		sudo_setenv("LD_PRELOAD", def_noexec_file,  TRUE);
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   213
+ 	    }
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   214
+ 	}
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   215
+ #    else
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   216
  	sudo_setenv("LD_PRELOAD", def_noexec_file, TRUE);
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   217
+ #    endif /* __sun */
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   218
  #  endif /* _AIX */
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   219
  # endif /* __osf__ || __sgi */
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   220
  #endif /* __darwin__ || __APPLE__ */
50
6100357dc4bc Import sfw build 151
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
   221
Common subdirectories: sudo-1.7.4p4/m4 and sudo-1.7.4p4.sun/m4