mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
Update to 1.6.9
Application changes: - PAM, since present, is used by default. - Environment variable handling has changed significantly. - Sudo checks the user's supplemental group vector so nsswitch order is no longer important for group based rules. (See UPGRADE and CHANGING under share/doc/sudo/ for more.) Port changes: - PAM file is no longer clobered on reinstall. - OPIE option has been removed due to PAM being used by default. - Selected documentation is now installed.
This commit is contained in:
parent
17d1a0c169
commit
ff833c5c46
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=195970
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= sudo
|
||||
PORTVERSION= 1.6.8.12
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 1.6.9
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.sudo.ws/sudo/dist/ \
|
||||
http://probsd.org/sudoftp/ \
|
||||
@ -19,7 +18,6 @@ MASTER_SITES= http://www.sudo.ws/sudo/dist/ \
|
||||
http://pluto.cdpa.nsysu.edu.tw/sudo/ \
|
||||
ftp://ftp.cs.colorado.edu/pub/sysadmin/sudo/ \
|
||||
ftp://ftp.stikman.com/pub/sudo/
|
||||
DISTNAME= ${PORTNAME}-1.6.8p12
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Allow others to run commands as root
|
||||
@ -36,7 +34,6 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
|
||||
--with-pam
|
||||
|
||||
OPTIONS= LDAP "With LDAP support" off \
|
||||
OPIE "With OPIE support" off \
|
||||
INSULTS "With all insults" off \
|
||||
SHELL_SETS_HOME "Set HOME env to target user in shell mode" off
|
||||
|
||||
@ -51,12 +48,9 @@ CONFIGURE_ARGS+=--with-all-insults
|
||||
USE_OPENLDAP=yes
|
||||
CONFIGURE_ARGS+=--with-ldap=${PREFIX}
|
||||
CONFIGURE_ARGS+=--with-ldap-conf-file=${PREFIX}/etc/ldap.conf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_OPIE) || ${OSVERSION} > 500021
|
||||
CONFIGURE_ARGS+=--with-opie
|
||||
PLIST_SUB+= LDAP=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--with-skey
|
||||
PLIST_SUB= LDAP="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SHELL_SETS_HOME)
|
||||
@ -67,13 +61,28 @@ MAN5= sudoers.5
|
||||
MAN8= sudo.8 visudo.8
|
||||
MLINKS= sudo.8 sudoedit.8
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|^|#|g' ${WRKSRC}/sample.sudoers
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${PREFIX}/etc/sudoers.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/sudoers ${PREFIX}/etc/sudoers.default
|
||||
${RM} ${PREFIX}/libexec/sudo_noexec.la
|
||||
${INSTALL_DATA} ${FILESDIR}/pam.conf ${PREFIX}/etc/pam.d/sudo
|
||||
${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 \
|
||||
${PREFIX}/etc/pam.d/sudo ;\
|
||||
fi
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/BUGS ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/TROUBLESHOOTING ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/UPGRADE ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${DOCSDIR}
|
||||
.if defined(WITH_LDAP)
|
||||
${INSTALL_DATA} ${WRKSRC}/README.LDAP ${DOCSDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/sudoers2ldif ${DOCSDIR}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (sudo-1.6.8p12.tar.gz) = b29893c06192df6230dd5f340f3badf5
|
||||
SHA256 (sudo-1.6.8p12.tar.gz) = 56f7d86032538a4a98d90af3742903a09ba16d6db82b593e4a47605f87fa581a
|
||||
SIZE (sudo-1.6.8p12.tar.gz) = 585643
|
||||
MD5 (sudo-1.6.9.tar.gz) = 7eeb0d89a7c358012377c8d150581cd7
|
||||
SHA256 (sudo-1.6.9.tar.gz) = 7c657029eaebe5dfa3617e47fcb90c1ed8a5eddebc48b8efeb85c88ee647787f
|
||||
SIZE (sudo-1.6.9.tar.gz) = 557692
|
||||
|
@ -1,8 +1,9 @@
|
||||
This is the CU version of sudo.
|
||||
|
||||
Sudo is a program designed to allow a sysadmin to give limited root privileges
|
||||
to users and log root activity. The basic philosophy is to give as few
|
||||
privileges as possible but still allow people to get their work done.
|
||||
Sudo is a program designed to allow a sysadmin to give limited root
|
||||
privileges to users and log root activity. The basic philosophy is to
|
||||
give as few privileges as possible but still allow people to get their
|
||||
work done.
|
||||
|
||||
MAILING LISTS:
|
||||
|
||||
|
@ -8,3 +8,8 @@ else
|
||||
cp -p ${PKG_PREFIX}/etc/sudoers.default ${PKG_PREFIX}/etc/sudoers
|
||||
chmod 440 ${PKG_PREFIX}/etc/sudoers
|
||||
fi
|
||||
if [ -e ${PKG_PREFIX}/etc/pam.d/sudo ]; then
|
||||
echo "Will not overwrite existing ${PKG_PREFIX}/etc/pam.d/sudo file."
|
||||
else
|
||||
cp -p ${PKG_PREFIX}/etc/pam.d/sudo.default ${PKG_PREFIX}/etc/pam.d/sudo
|
||||
fi
|
||||
|
@ -1,8 +1,17 @@
|
||||
@unexec if cmp -s %D/etc/sudoers %D/etc/sudoers.default; then rm -f %D/etc/sudoers; fi
|
||||
@unexec if cmp -s %D/etc/pam.d/sudo %D/etc/pam.d/sudo.default; then rm -f %D/etc/pam.d/sudo; fi
|
||||
bin/sudo
|
||||
bin/sudoedit
|
||||
etc/pam.d/sudo
|
||||
etc/pam.d/sudo.default
|
||||
etc/sudoers.default
|
||||
etc/sudoers.sample
|
||||
libexec/sudo_noexec.so
|
||||
sbin/visudo
|
||||
%%PORTDOCS%%%%DOCSDIR%%/BUGS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/TROUBLESHOOTING
|
||||
%%PORTDOCS%%%%DOCSDIR%%/UPGRADE
|
||||
%%PORTDOCS%%%%DOCSDIR%%/sample.sudoers
|
||||
%%LDAP%%%%PORTDOCS%%%%DOCSDIR%%/README.LDAP
|
||||
%%LDAP%%%%PORTDOCS%%%%DOCSDIR%%/sudoers2ldif
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user