head	1.10;
access;
symbols
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.6
	RELEASE_7_1_0:1.6
	RELEASE_6_4_0:1.6
	RELEASE_5_EOL:1.6
	RELEASE_7_0_0:1.6
	RELEASE_6_3_0:1.6
	PRE_XORG_7:1.5
	RELEASE_4_EOL:1.5
	RELEASE_6_2_0:1.5
	RELEASE_6_1_0:1.5
	RELEASE_5_5_0:1.5
	RELEASE_6_0_0:1.4
	RELEASE_5_4_0:1.4
	RELEASE_4_11_0:1.4
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.2
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1
	RELEASE_4_1_1:1.1
	RELEASE_4_1_0:1.1
	RELEASE_3_5_0:1.1
	RELEASE_4_0_0:1.1
	RELEASE_3_4_0:1.1
	RELEASE_3_3_0:1.1
	RELEASE_3_2_0:1.1
	RELEASE_3_1_0:1.1
	RELEASE_2_2_8:1.1
	RELEASE_3_0_0:1.1
	RELEASE_2_2_7:1.1
	sudo_1_5_4:1.1
	RELEASE_2_2_6:1.1
	RELEASE_2_2_5:1.1
	RELEASE_2_2_1:1.1
	RELEASE_2_2_2:1.1;
locks; strict;
comment	@# @;


1.10
date	2011.04.17.13.50.10;	author wxs;	state dead;
branches;
next	1.9;

1.9
date	2011.04.12.03.42.45;	author wxs;	state Exp;
branches;
next	1.8;

1.8
date	2011.04.11.19.43.39;	author wxs;	state Exp;
branches;
next	1.7;

1.7
date	2010.08.16.13.06.02;	author wxs;	state dead;
branches;
next	1.6;

1.6
date	2007.07.21.03.15.13;	author tmclaugh;	state Exp;
branches;
next	1.5;

1.5
date	2005.12.17.22.12.41;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2004.07.20.08.30.14;	author edwin;	state Exp;
branches;
next	1.3;

1.3
date	2004.07.19.08.15.33;	author edwin;	state Exp;
branches;
next	1.2;

1.2
date	2001.11.21.02.09.13;	author petef;	state Exp;
branches;
next	1.1;

1.1
date	96.07.19.21.00.42;	author asami;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Update to 1.8.1p1.
No longer need to worry about etc/sudoers.d problem, as it is no longer
a fatal error.
@
text
@#! /bin/sh
#
# $FreeBSD: ports/security/sudo/pkg-install,v 1.9 2011/04/12 03:42:45 wxs Exp $

PATH=/bin:/usr/bin:/usr/sbin

case $2 in

PRE-INSTALL)
  install -d -o 0 -g 0 -m 0750 ${PKG_PREFIX}/etc/sudoers.d
  ;;

esac
@


1.9
log
@Fix a typo in pkg-install. Should use -m and not -M for install(1).

Noticed by:	sunpoet@@
@
text
@d3 1
a3 1
# $FreeBSD: ports/security/sudo/pkg-install,v 1.8 2011/04/11 19:43:39 wxs Exp $
@


1.8
log
@The install process checks the validity of sudoers before installing
etc/sudoers.d. If you have an sudoers with the includedir directive the
install will fail. Fix this by creating the directory in a pre-install
target.

This should fix "The Great sudo Debacle of 2011" once and for all.

Tested by:	dougb@@
@
text
@d3 1
a3 1
# $FreeBSD$
d10 1
a10 1
  install -d -o 0 -g 0 -M 0750 ${PKG_PREFIX}/etc/sudoers.d
@


1.7
log
@Fix problems when upgrading using packages:
 - Always install sudoers.sample.
 - There is no need for pkg-install anymore.
 - Bump PORTREVISION.
@
text
@d1 13
a13 15
#!/bin/sh
if [ $2 != "POST-INSTALL" ]; then
  exit 0
fi
if [ -e ${PKG_PREFIX}/etc/sudoers ]; then
  echo "Will not overwrite existing ${PKG_PREFIX}/etc/sudoers file."
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.6
log
@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.
@
text
@@


1.5
log
@- Remove etc/sudoers on deinstall if user haven't modified it

PR:		ports/69288 (based on)
Approved by:	maintainer timeout (mharo; year and a half)
@
text
@d11 5
@


1.4
log
@Undo yesterdays change after sysutils/porttools suddenly failed.

Kris (bento (noh! pointyhat)) reported it

PR:		ports/58387
@
text
@d8 1
a8 1
  cp -p ${PKG_PREFIX}/etc/sudoers.sample ${PKG_PREFIX}/etc/sudoers
@


1.3
log
@[PATCH] security/sudo: Utilize EXAMPLESDIR

	Utilize EXAMPLESDIR to improves layout; i.e.,

	  configuration file        -> ${PREFIX}/etc
	  sample configuration file -> ${PREFIX}/share/examples/${PORTNAME}

	This change helps if many configuration files and sample ones exist.

PR:		ports/58387
Submitted by:	Hideyuki KURASHINA <rushani@@FreeBSD.org>
@
text
@d8 1
a8 1
  cp -p ${EXAMPLESDIR}/sudoers ${PKG_PREFIX}/etc/sudoers
@


1.2
log
@Fix permissions on the sudoers file when installed from package

PR:		30450
Submitted by:	Dimitry Andric <dim@@xs4all.nl>
Approved by:	maintainer timeout
@
text
@d8 1
a8 1
  cp -p ${PKG_PREFIX}/etc/sudoers.sample ${PKG_PREFIX}/etc/sudoers
@


1.1
log
@Put "sudoers.sample" in the package and copy it to "sudoers" if the
latter doesn't already exist.  Closes PR ports/1405 ("why can Satoshi
sudo on my machine?").
@
text
@d9 1
@

