diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-21 13:52:43 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-21 13:52:43 +0000 |
commit | ae5ff6bc509e53f95198e461af40a4c06b743e70 (patch) | |
tree | 8ea4db3457da242c6d26695a8ab64f38da681b52 /package/sudo/sudo.mk | |
parent | 3c9baee374857de425a0e14f0f13ad27491006be (diff) |
- bump version and make it work
Diffstat (limited to 'package/sudo/sudo.mk')
-rw-r--r-- | package/sudo/sudo.mk | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk index bf7ce4655..26216512d 100644 --- a/package/sudo/sudo.mk +++ b/package/sudo/sudo.mk @@ -4,7 +4,7 @@ # ############################################################# -SUDO_VER:=1.6.8p9 +SUDO_VER:=1.6.8p12 SUDO_SOURCE:=sudo-$(SUDO_VER).tar.gz SUDO_SITE:=http://www.courtesan.com/sudo/dist SUDO_DIR:=$(BUILD_DIR)/sudo-$(SUDO_VER) @@ -24,6 +24,7 @@ $(SUDO_DIR)/.configured: $(SUDO_DIR)/.unpacked $(SUDO_CONFIG_FILE) (cd $(SUDO_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ ./configure \ + CFLAGS="$(TARGET_CFLAGS)" \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ @@ -54,15 +55,17 @@ $(SUDO_DIR)/sudo: $(SUDO_DIR)/.configured touch -c $(SUDO_DIR)/sudo $(TARGET_DIR)/usr/bin/sudo: $(SUDO_DIR)/sudo - # Use fakeroot to pretend to do 'make install' as root - echo "$(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR="$(TARGET_DIR)" -C $(SUDO_DIR) install" \ - > $(STAGING_DIR)/.fakeroot.sudo + $(INSTALL) -m 4555 -D $(SUDO_DIR)/sudo $(TARGET_DIR)/usr/bin/sudo + $(INSTALL) -m 0555 -D $(SUDO_DIR)/visudo $(TARGET_DIR)/usr/sbin/visudo + $(INSTALL) -m 0440 -D $(SUDO_DIR)/sudoers $(TARGET_DIR)/etc/sudoers + $(STRIP) $(TARGET_DIR)/usr/bin/sudo $(TARGET_DIR)/usr/sbin/visudo touch -c $(TARGET_DIR)/usr/bin/sudo -sudo: uclibc host-fakeroot $(TARGET_DIR)/usr/bin/sudo +sudo: uclibc $(TARGET_DIR)/usr/bin/sudo sudo-clean: - rm -f $(TARGET_DIR)/usr/bin/sudo + rm -f $(TARGET_DIR)/usr/bin/sudo $(TARGET_DIR)/etc/sudoers \ + $(TARGET_DIR)/usr/sbin/visudo -$(MAKE) -C $(SUDO_DIR) clean sudo-dirclean: |