From 3b795153381137342846159dc31bb75f7a5aefe4 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Mon, 20 Jun 2011 12:19:37 +0200
Subject: [PATCH] sudo: update to 1.8.1p2.

---
 srcpkgs/sudo/template | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template
index 15fbefb3b4..e062795f21 100644
--- a/srcpkgs/sudo/template
+++ b/srcpkgs/sudo/template
@@ -1,6 +1,6 @@
 # Template build file for 'sudo'.
 pkgname=sudo
-version=1.8.1p1
+version=1.8.1p2
 distfiles="http://www.courtesan.com/sudo/dist/$pkgname-$version.tar.gz"
 build_style=gnu_configure
 configure_args="--with-ignore-dot -with-all-insults --with-env-editor
@@ -8,7 +8,9 @@ configure_args="--with-ignore-dot -with-all-insults --with-env-editor
 --disable-root-sudo --with-logfac=auth --disable-root-mailer"
 short_desc="Allow others to run commands as root"
 maintainer="Juan RP <xtraeme@gmail.com>"
-checksum=c6bd76bda54aab022b758e0f321f008403cdaf73621a7f316c22c44e28133e13
+homepage="http://www.gratisoft.us/sudo/"
+license="ISC, BSD, zlib"
+checksum=281f90c80547cf22132e351e7f61c25ba4ba9cf393438468f318f9a7884026fb
 long_desc="
  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
@@ -27,5 +29,6 @@ Add_dependency build pam-devel
 
 post_install()
 {
-	install -D -m644 ${FILESDIR}/sudo.pam ${DESTDIR}/etc/pam.d/sudo
+	install -Dm644 ${FILESDIR}/sudo.pam ${DESTDIR}/etc/pam.d/sudo
+	install -Dm644 doc/LICENSE ${DESTDIR}/usr/share/licenses/sudo/LICENSE
 }