1 #############################################################
5 #############################################################
8 SUDO_SOURCE
:=sudo-
$(SUDO_VERSION
).
tar.gz
9 SUDO_SITE
:=http
://www.courtesan.com
/sudo
/dist
10 SUDO_DIR
:=$(BUILD_DIR
)/sudo-
$(SUDO_VERSION
)
13 $(DL_DIR
)/$(SUDO_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(SUDO_SITE
)/$(SUDO_SOURCE
)
16 sudo-source
: $(DL_DIR
)/$(SUDO_SOURCE
) $(SUDO_CONFIG_FILE
)
18 $(SUDO_DIR
)/.unpacked
: $(DL_DIR
)/$(SUDO_SOURCE
)
19 $(SUDO_UNZIP
) $(DL_DIR
)/$(SUDO_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
20 toolchain
/patch-kernel.sh
$(SUDO_DIR
) package
/sudo sudo\
*.patch
21 touch
$(SUDO_DIR
)/.unpacked
23 $(SUDO_DIR
)/.configured
: $(SUDO_DIR
)/.unpacked
$(SUDO_CONFIG_FILE
)
24 (cd
$(SUDO_DIR
); rm -rf config.cache
; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 $(TARGET_CONFIGURE_ARGS
) \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
36 --libexecdir
=/usr
/lib \
38 --datadir=/usr
/share \
39 --localstatedir
=/var \
42 $(DISABLE_LARGEFILE
) \
46 --with-logging
=syslog \
47 --without-interfaces \
48 --disable-authentication \
49 $(SUDO_EXTRA_CONFIG
) \
52 touch
$(SUDO_DIR
)/.configured
54 $(SUDO_DIR
)/sudo
: $(SUDO_DIR
)/.configured
55 $(MAKE
) -C
$(SUDO_DIR
)
56 touch
-c
$(SUDO_DIR
)/sudo
58 $(TARGET_DIR
)/usr
/bin
/sudo
: $(SUDO_DIR
)/sudo
59 $(INSTALL
) -m
4555 -D
$(SUDO_DIR
)/sudo
$(TARGET_DIR
)/usr
/bin
/sudo
60 $(INSTALL
) -m
0555 -D
$(SUDO_DIR
)/visudo
$(TARGET_DIR
)/usr
/sbin
/visudo
61 $(INSTALL
) -m
0440 -D
$(SUDO_DIR
)/sudoers
$(TARGET_DIR
)/etc
/sudoers
62 $(STRIPCMD
) $(TARGET_DIR
)/usr
/bin
/sudo
$(TARGET_DIR
)/usr
/sbin
/visudo
63 touch
-c
$(TARGET_DIR
)/usr
/bin
/sudo
65 sudo
: $(TARGET_DIR
)/usr
/bin
/sudo
68 rm -f
$(TARGET_DIR
)/usr
/bin
/sudo
$(TARGET_DIR
)/etc
/sudoers \
69 $(TARGET_DIR
)/usr
/sbin
/visudo
70 -$(MAKE
) -C
$(SUDO_DIR
) clean
74 #############################################################
76 # Toplevel Makefile options
78 #############################################################
79 ifeq ($(BR2_PACKAGE_SUDO
),y
)
83 ifeq ($(BR2_PACKAGE_LIBPAM
),y
)
84 SUDO_EXTRA_CONFIG
=--enable-pam