# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sudo # sudo/pkg-descr # sudo/Makefile # sudo/distinfo # sudo/pkg-plist # sudo/files # sudo/files/pam.conf # sudo/files/patch-plugins__sudoers__Makefile.in # sudo/files/patch-plugins__sudoers__sudoers.in # echo c - sudo mkdir -p sudo > /dev/null 2>&1 echo x - sudo/pkg-descr sed 's/^X//' >sudo/pkg-descr << 'f8289ca9f82f60c8d6a71030162c181f' XThis is the CU version of sudo. X XSudo is a program designed to allow a sysadmin to give limited root Xprivileges to users and log root activity. The basic philosophy is to Xgive as few privileges as possible but still allow people to get their Xwork done. X XMAILING LISTS: X XPlease send bugs, problems, comments, etc to sudo-bugs@courtesan.com XThere is a mailing list that receives announcements whenever a new Xversion of sudo is released. You can subscribe to it by sending a Xmessage to "majordomo@courtesan.com" that includes the line X"subscribe sudo-announce". There is also a list for people working Xon sudo. The command to add yourself is "subscribe sudo-workers". X XWWW: http://www.courtesan.com/sudo/ f8289ca9f82f60c8d6a71030162c181f echo x - sudo/Makefile sed 's/^X//' >sudo/Makefile << '2ce07bd9c1f7ced00f259db672005f30' X# New ports collection makefile for: sudo X# Date created: Sun Aug 13 12:36:14 CDT 1995 X# Whom: erich@rrnet.com X# X# $FreeBSD: ports/security/sudo/Makefile,v 1.142 2012/02/06 02:47:25 wxs Exp $ X# X XPORTNAME= sudo XPORTVERSION= 1.8.4 XCATEGORIES= security XMASTER_SITES= ${MASTER_SITE_SUDO} XDISTNAME= sudo-${PORTVERSION}p2 X XMAINTAINER= wxs@FreeBSD.org XCOMMENT= Allow others to run commands as root X XLICENSE= sudo XLICENSE_NAME= Sudo license XLICENSE_FILE= ${WRKSRC}/doc/LICENSE XLICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept X XMAKE_JOBS_SAFE= yes XGNU_CONFIGURE= yes X XCONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \ X --with-ignore-dot \ X --with-tty-tickets \ X --with-env-editor \ X --with-logincap \ X --with-long-otp-prompt \ X --with-pam X XOPTIONS= LDAP "With LDAP support" off \ X INSULTS "With all insults" off \ X DISABLE_ROOT_SUDO "Disable root sudo" off \ X DISABLE_AUTH "Disable authentication" off \ X NOARGS_SHELL "Enable no arguments shell" off \ X AUDIT "Enable BSM audit support" on X XLOGFAC?= local2 XCONFIGURE_ARGS+= --with-logfac=${LOGFAC} X X.include X X.if !defined(WITHOUT_NLS) XUSE_GETTEXT= yes XLDFLAGS+= -L${LOCALBASE}/lib -lintl XCFLAGS+= -I${LOCALBASE}/include XPLIST_SUB+= NLS="" X.else XCONFIGURE_ARGS+= --disable-nls XPLIST_SUB+= NLS="@comment " X.endif X X# SUDO_SECURE_PATH is a PATH string that will override the user's PATH. X# ex: make SUDO_SECURE_PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" X.if defined(SUDO_SECURE_PATH) XCONFIGURE_ARGS+= --with-secure-path="${SUDO_SECURE_PATH}" X.endif X X.if defined(WITH_INSULTS) XCONFIGURE_ARGS+= --with-insults XCONFIGURE_ARGS+= --with-all-insults X.endif X X.if defined(WITH_LDAP) XUSE_OPENLDAP= yes XCONFIGURE_ARGS+= --with-ldap=${PREFIX} XSUDO_LDAP_CONF?= ldap.conf XCONFIGURE_ARGS+= --with-ldap-conf-file=${PREFIX}/etc/${SUDO_LDAP_CONF} XPLIST_SUB+= LDAP="" XMAN5+= sudoers.ldap.5 X.else XPLIST_SUB+= LDAP="@comment " X.endif X X.if defined(WITH_DISABLE_ROOT_SUDO) XCONFIGURE_ARGS+=--disable-root-sudo X.endif X X.if defined(WITH_DISABLE_AUTH) XCONFIGURE_ARGS+=--disable-authentication X.endif X X.if defined(WITH_NOARGS_SHELL) XCONFIGURE_ARGS+=--enable-noargs-shell X.endif X X.if defined(WITH_AUDIT) XCONFIGURE_ARGS+=--with-bsm-audit X.endif X XMAN5+= sudoers.5 XMAN8= sudo.8 visudo.8 sudoreplay.8 sudo_plugin.8 XMLINKS= sudo.8 sudoedit.8 X Xpost-patch: X @${REINPLACE_CMD} -E '/install-(binaries|noexec):/,/^$$/ \ X s/\$$\(INSTALL\)/& ${STRIP}/;s/-b\~/-b ~/' \ X ${WRKSRC}/src/Makefile.in X @${REINPLACE_CMD} -e 's,$$(srcdir)/sudoers2ldif $$(DESTDIR)$$(docdir),$$(srcdir)/sudoers2ldif $$(DESTDIR)$$(bindir),' ${WRKSRC}/plugins/sudoers/Makefile.in X.if defined(NOPORTDOCS) X @${REINPLACE_CMD} -e 's/mkinstalldirs $$(DESTDIR)$$(docdir)/mkinstalldirs/' \ X ${WRKSRC}/doc/Makefile.in X @${REINPLACE_CMD} -e '/for f in $$(OTHER_DOCS); do/d;/@LDAP@for f in $$(OTHER_DOCS_LDAP); do/d' ${WRKSRC}/doc/Makefile.in X @${REINPLACE_CMD} -e 's/$$(DESTDIR)$$(sudoersdir) $$(DESTDIR)$$(docdir)/$$(DESTDIR)$$(sudoersdir)/' ${WRKSRC}/plugins/sudoers/Makefile.in X.endif X Xpost-install: X ${INSTALL_DATA} ${FILESDIR}/pam.conf ${PREFIX}/etc/pam.d/sudo.default X if [ ! -f ${PREFIX}/etc/pam.d/sudo ]; then \ X ${CP} -p ${PREFIX}/etc/pam.d/sudo.default \ X ${PREFIX}/etc/pam.d/sudo ; \ X fi X if [ ! -f ${PREFIX}/etc/sudoers ]; then \ X ${CP} -p ${PREFIX}/etc/sudoers.sample ${PREFIX}/etc/sudoers; \ X fi X ${TOUCH} ${PREFIX}/etc/sudoers.d/.keep-me X X.include 2ce07bd9c1f7ced00f259db672005f30 echo x - sudo/distinfo sed 's/^X//' >sudo/distinfo << 'd31a262aafe6ac612dd44f81ce40db42' XSHA256 (sudo-1.8.4p2.tar.gz) = b1310b8548db5ea92f3063011c0fe6e843a1f95f548a4aeae54bcc2fdfea88a9 XSIZE (sudo-1.8.4p2.tar.gz) = 1608580 d31a262aafe6ac612dd44f81ce40db42 echo x - sudo/pkg-plist sed 's/^X//' >sudo/pkg-plist << '796f8ac94833aab345f4a4f7d8a1fded' Xbin/sudo Xbin/sudoedit Xbin/sudoreplay X@unexec if cmp -s %D/etc/sudoers.sample %D/etc/sudoers; then rm -f %D/etc/sudoers; fi Xetc/sudoers.sample X@exec if [ ! -f %D/etc/sudoers ] ; then cp -p %D/%F %B/sudoers; fi X@unexec if cmp -s %D/etc/pam.d/sudo.default %D/etc/pam.d/sudo; then rm -f %D/etc/pam.d/sudo ; fi Xetc/pam.d/sudo.default X@exec if [ ! -f %D/etc/pam.d/sudo ] ; then cp -p %D/%F %B/sudo; fi Xinclude/sudo_plugin.h Xlibexec/sudo_noexec.so Xlibexec/sudoers.so Xsbin/visudo X%%LDAP%%bin/sudoers2ldif X%%PORTDOCS%%%%DOCSDIR%%/CONTRIBUTORS X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog X%%PORTDOCS%%%%DOCSDIR%%/HISTORY X%%PORTDOCS%%%%DOCSDIR%%/LICENSE X%%PORTDOCS%%%%DOCSDIR%%/NEWS X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/TROUBLESHOOTING X%%PORTDOCS%%%%DOCSDIR%%/UPGRADE X%%PORTDOCS%%%%DOCSDIR%%/sample.pam X%%PORTDOCS%%%%DOCSDIR%%/sample.sudo.conf X%%PORTDOCS%%%%DOCSDIR%%/sample.sudoers X%%PORTDOCS%%%%DOCSDIR%%/sample.syslog.conf X%%LDAP%%%%PORTDOCS%%%%DOCSDIR%%/README.LDAP X%%LDAP%%%%PORTDOCS%%%%DOCSDIR%%/schema.OpenLDAP X%%LDAP%%%%PORTDOCS%%%%DOCSDIR%%/schema.iPlanet X%%LDAP%%%%PORTDOCS%%%%DOCSDIR%%/schema.ActiveDirectory X%%NLS%%share/locale/da/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/da/LC_MESSAGES/sudoers.mo X%%NLS%%share/locale/eo/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/eo/LC_MESSAGES/sudoers.mo X%%NLS%%share/locale/es/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/eu/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/eu/LC_MESSAGES/sudoers.mo X%%NLS%%share/locale/fi/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/fi/LC_MESSAGES/sudoers.mo X%%NLS%%share/locale/it/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/ja/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/ja/LC_MESSAGES/sudoers.mo X%%NLS%%share/locale/pl/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/pl/LC_MESSAGES/sudoers.mo X%%NLS%%share/locale/ru/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/sr/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/uk/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/uk/LC_MESSAGES/sudoers.mo X%%NLS%%share/locale/zh_CN/LC_MESSAGES/sudo.mo X%%NLS%%share/locale/zh_CN/LC_MESSAGES/sudoers.mo X%%PORTDOCS%%@dirrm %%DOCSDIR%% Xetc/sudoers.d/.keep-me X@dirrmtry etc/sudoers.d 796f8ac94833aab345f4a4f7d8a1fded echo c - sudo/files mkdir -p sudo/files > /dev/null 2>&1 echo x - sudo/files/pam.conf sed 's/^X//' >sudo/files/pam.conf << '0f22e80222b1c9617ce67cddb6e12100' X# X# $FreeBSD: ports/security/sudo/files/pam.conf,v 1.5 2008/04/09 16:44:28 tmclaugh Exp $ X# X# PAM configuration for the "sudo" service X# X X# auth Xauth include system X X# account Xaccount include system X X# session X# XXX: pam_lastlog (used in system) causes users to appear as though X# they are no longer logged in in system logs. Xsession required pam_permit.so X X# password Xpassword include system 0f22e80222b1c9617ce67cddb6e12100 echo x - sudo/files/patch-plugins__sudoers__Makefile.in sed 's/^X//' >sudo/files/patch-plugins__sudoers__Makefile.in << '48e9a7c73488d79c5d91437164155bc7' X--- ./plugins/sudoers/Makefile.in.orig 2011-04-11 08:28:33.000000000 -0400 X+++ ./plugins/sudoers/Makefile.in 2011-04-17 09:38:29.349385961 -0400 X@@ -358,9 +358,8 @@ X install-sudoers: install-dirs X $(INSTALL) -d -O $(sudoers_uid) -G $(sudoers_gid) -m 0750 \ X $(DESTDIR)$(sudoersdir)/sudoers.d X- test -r $(DESTDIR)$(sudoersdir)/sudoers || \ X- $(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -m $(sudoers_mode) \ X- sudoers $(DESTDIR)$(sudoersdir)/sudoers X+ $(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -m $(sudoers_mode) \ X+ sudoers $(DESTDIR)$(sudoersdir)/sudoers.sample X X uninstall: X -rm -f $(DESTDIR)$(plugindir)/sudoers$(soext) 48e9a7c73488d79c5d91437164155bc7 echo x - sudo/files/patch-plugins__sudoers__sudoers.in sed 's/^X//' >sudo/files/patch-plugins__sudoers__sudoers.in << 'a0f953cb6cb6a16959f7140fecf7620d' X--- ./plugins/sudoers/sudoers.in.orig 2010-08-18 07:45:38.000000000 -0400 X+++ ./plugins/sudoers/sudoers.in 2011-04-11 12:47:45.440272893 -0400 X@@ -31,6 +31,14 @@ X ## X ## Defaults specification X ## X+## Uncomment if needed to preserve environmental variables related to the X+## FreeBSD pkg_* utilities and fetch. X+# Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR FTP_PASSIVE_MODE" X+## X+## Additionally uncomment if needed to preserve environmental variables X+## related to portupgrade X+# Defaults env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF" X+## X ## You may wish to keep some of the following environment variables X ## when running commands via sudo. X ## a0f953cb6cb6a16959f7140fecf7620d exit