mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
- Work around broken configure script and explicitly set location of
sudo_noexec.so to unbreak NOEXEC option. [1] - Build using --with-secure-path if SUDO_SECURE_PATH is set when building the port. SUDO_SECURE_PATH should be set to a PATH string. [2] - Don't bother deleting sudo_noexec.la. Deleting the file after it's installed is ugly and since it's not harmful it's not worth patching the install. - Set CONFIGURE_TARGET. PR: 115442 [1], 115381 [2] Submitted by: vd [1], Janos Mohacsi [2]
This commit is contained in:
parent
b1da6a5050
commit
70b0d9b221
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197550
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= sudo
|
||||
PORTVERSION= 1.6.9.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.sudo.ws/sudo/dist/ \
|
||||
http://probsd.org/sudoftp/ \
|
||||
@ -26,6 +26,7 @@ COMMENT= Allow others to run commands as root
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
|
||||
--disable-log-wrap \
|
||||
--with-ignore-dot \
|
||||
@ -33,7 +34,8 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
|
||||
--with-env-editor \
|
||||
--with-logincap \
|
||||
--with-long-otp-prompt \
|
||||
--with-pam
|
||||
--with-pam \
|
||||
--with-noexec=${PREFIX}/libexec/sudo_noexec.so
|
||||
|
||||
OPTIONS= LDAP "With LDAP support" off \
|
||||
INSULTS "With all insults" off \
|
||||
@ -41,6 +43,12 @@ OPTIONS= LDAP "With LDAP support" off \
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# SUDO_SECURE_PATH is a PATH string that will override the user's PATH.
|
||||
# ex: make SUDO_SECURE_PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
|
||||
.if defined(SUDO_SECURE_PATH)
|
||||
CONFIGURE_ARGS+=--with-secure-path="${SUDO_SECURE_PATH}"
|
||||
.endif
|
||||
|
||||
.if defined(WITH_INSULTS)
|
||||
CONFIGURE_ARGS+=--with-insults
|
||||
CONFIGURE_ARGS+=--with-all-insults
|
||||
@ -64,12 +72,11 @@ MAN8= sudo.8 visudo.8
|
||||
MLINKS= sudo.8 sudoedit.8
|
||||
|
||||
post-install:
|
||||
${RM} ${PREFIX}/libexec/sudo_noexec.la
|
||||
${INSTALL_DATA} ${WRKSRC}/sudoers ${PREFIX}/etc/sudoers.default
|
||||
${INSTALL_DATA} ${FILESDIR}/pam.conf ${PREFIX}/etc/pam.d/sudo.default
|
||||
|
||||
if [ ! -e ${PREFIX}/etc/pam.d/sudo ]; then \
|
||||
cp -p ${PREFIX}/etc/pam.d/sudo.default \
|
||||
${CP} -p ${PREFIX}/etc/pam.d/sudo.default \
|
||||
${PREFIX}/etc/pam.d/sudo ;\
|
||||
fi
|
||||
|
||||
|
@ -4,6 +4,7 @@ bin/sudo
|
||||
bin/sudoedit
|
||||
etc/pam.d/sudo.default
|
||||
etc/sudoers.default
|
||||
libexec/sudo_noexec.la
|
||||
libexec/sudo_noexec.so
|
||||
sbin/visudo
|
||||
%%PORTDOCS%%%%DOCSDIR%%/BUGS
|
||||
|
Loading…
Reference in New Issue
Block a user