summaryrefslogtreecommitdiff
path: root/data/sudo
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
committerJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
commitd699a01fabaa04a1aad60f6ca5777f82ee24839a (patch)
tree1eb62bad23b14a0877c5b9171f2a5f9358c8d592 /data/sudo
parent8a49e427447f40fdd43fc4b5f513b166dd639e2a (diff)
Drastic, sweeping modifications to support iPhone 1.2.0/2.0.
git-svn-id: http://svn.telesphoreo.org/trunk@199 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/sudo')
-rw-r--r--data/sudo/strip.diff39
1 files changed, 15 insertions, 24 deletions
diff --git a/data/sudo/strip.diff b/data/sudo/strip.diff
index f0d9215e4..c432d97fb 100644
--- a/data/sudo/strip.diff
+++ b/data/sudo/strip.diff
@@ -1,26 +1,17 @@
-diff -ru sudo-1.6.9p12/install-sh sudo-1.6.9p12+iPhone/install-sh
---- sudo-1.6.9p12/install-sh 2002-01-10 18:00:58.000000000 +0000
-+++ sudo-1.6.9p12+iPhone/install-sh 2008-02-13 20:44:20.000000000 +0000
-@@ -15,7 +15,7 @@
- MKDIR=mkdir
- MV=mv
- RM=rm
--STRIP=strip
-+STRIP=arm-apple-darwin-strip
- WHOAMI="echo root"
+diff -ru sudo-1.6.9p12/Makefile.in sudo-1.6.9p12+iPhone/Makefile.in
+--- sudo-1.6.9p12/Makefile.in 2008-01-14 12:22:57.000000000 +0000
++++ sudo-1.6.9p12+iPhone/Makefile.in 2008-04-05 05:54:13.000000000 +0000
+@@ -310,11 +310,11 @@
+ $(DESTDIR)$(noexecdir)
- ## Some systems don't support -x, so we have to use -f.
-@@ -35,13 +35,6 @@
- fi
- done
+ install-binaries: $(PROGS)
+- $(INSTALL) -O $(install_uid) -G $(install_gid) -M 4111 -s sudo $(DESTDIR)$(sudodir)/sudo
++ $(INSTALL) -O $(install_uid) -G $(install_gid) -M 4111 sudo $(DESTDIR)$(sudodir)/sudo
+ rm -f $(DESTDIR)$(sudodir)/sudoedit
+ ln $(DESTDIR)$(sudodir)/sudo $(DESTDIR)$(sudodir)/sudoedit
--for d in /usr/ccs/bin /usr/bin /bin; do
-- if [ -f $d/strip ]; then
-- STRIP=${d}/strip
-- break
-- fi
--done
--
- ## Defaults.
- CHOWNIT=false
- CHGROUPIT=false
+- $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 -s visudo $(DESTDIR)$(visudodir)/visudo
++ $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 visudo $(DESTDIR)$(visudodir)/visudo
+
+ install-noexec: sudo_noexec.la
+ $(LIBTOOL) --mode=install $(INSTALL) sudo_noexec.la $(DESTDIR)$(noexecdir)