Changeset 151


Ignore:
Timestamp:
Jan 16, 2011, 3:34:12 PM (10 years ago)
Author:
amain
Message:

debian/buildenv: sudo now installs without interuptuon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debwrt/trunk/debian/buildenv/debian.mk

    r139 r151  
    6161        sudo chroot $(DEBIAN_BUILD_DIR) groupadd -g $(shell id -g) debwrt
    6262        sudo chroot $(DEBIAN_BUILD_DIR) useradd -g debwrt -s /bin/bash -m -u $(shell id -u) $$USER
    63         sudo bash -c "echo \"$(USER) ALL=(ALL) NOPASSWD: ALL\" >$(DEBIAN_BUILD_DIR)/etc/sudoers"
     63        sudo mkdir -p $(DEBIAN_BUILD_DIR)/etc/sudoers.d
     64        sudo bash -c "echo \"$(USER) ALL=(ALL) NOPASSWD: ALL\" >$(DEBIAN_BUILD_DIR)/etc/sudoers.d/debwrt"
     65        sudo chmod 0440 $(DEBIAN_BUILD_DIR)/etc/sudoers.d/debwrt
    6466        touch $@
    6567
     
    8991ifeq ($(DEBIAN_BUILD_VERSION),sid)
    9092        sudo chroot $(DEBIAN_BUILD_DIR) apt-get update
    91         sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install build-essential debootstrap fakeroot zlib1g-dev dh-make sudo openssh-client dpkg-cross apt-cross vim pkg-config dpatch libncurses5-dev devscripts subversion automake gcc-multilib g++-multilib"
     93        sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install build-essential debootstrap fakeroot zlib1g-dev dh-make openssh-client dpkg-cross apt-cross vim pkg-config dpatch libncurses5-dev devscripts subversion automake gcc-multilib g++-multilib"
    9294else
    9395        sudo bash -c "echo \"deb $(call qstrip,$(CONFIG_DEBIAN_BUILDENV_REPOSITORY)) sid main\" >> $(DEBIAN_BUILD_DIR)/etc/apt/sources.list"
     
    9597        sudo chroot $(DEBIAN_BUILD_DIR) apt-get update
    9698        sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install -t sid apt-cross libmpfr1ldbl
    97         sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install build-essential debootstrap fakeroot zlib1g-dev dh-make sudo openssh-client dpkg-cross vim pkg-config dpatch libncurses5-dev devscripts subversion automake gcc-multilib g++-multilib"
     99        sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install build-essential debootstrap fakeroot zlib1g-dev dh-make openssh-client dpkg-cross vim pkg-config dpatch libncurses5-dev devscripts subversion automake gcc-multilib g++-multilib"
    98100endif
    99101        sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install libc6-$(TARGET_ARCH)-cross libc6-dev-$(TARGET_ARCH)-cross binutils-$(TARGET_ARCH)-linux-gnu gcc-4.3-$(TARGET_ARCH)-linux-gnu g++-4.3-$(TARGET_ARCH)-linux-gnu linux-kernel-headers-$(TARGET_ARCH)-cross"
Note: See TracChangeset for help on using the changeset viewer.