From 90ad4c6975400184f3bcafda69f18e54facdb7a8 Mon Sep 17 00:00:00 2001 From: ccsmart Date: Mon, 1 Aug 2005 08:58:41 +0000 Subject: Initial ready to use changes. --- packages/cyrus-sasl/cyrus-sasl_2.1.19.bb | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'packages/cyrus-sasl/cyrus-sasl_2.1.19.bb') diff --git a/packages/cyrus-sasl/cyrus-sasl_2.1.19.bb b/packages/cyrus-sasl/cyrus-sasl_2.1.19.bb index 19f1206f18..4bb3738c9b 100644 --- a/packages/cyrus-sasl/cyrus-sasl_2.1.19.bb +++ b/packages/cyrus-sasl/cyrus-sasl_2.1.19.bb @@ -1,8 +1,8 @@ SECTION = "console/network" -DEPENDS = "db openssl" +DEPENDS = "db3 openssl" DESCRIPTION = "Generic client/server library for SASL authentication." LICENSE = "BSD" -PR = "r2" +PR = "r3" SRC_URI = "ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-${PV}.tar.gz \ file://berkdb.m4.patch;patch=1" @@ -43,3 +43,14 @@ do_stage () { install -m 0644 ${S}/include/saslutil.h ${STAGING_INCDIR}/sasl/ install -m 0644 ${S}/include/prop.h ${STAGING_INCDIR}/sasl/ } + +pkg_postinst () { + grep cyrus /etc/passwd || adduser --disabled-password --home=/var/spool/mail --ingroup mail cyrus + echo "cyrus" | saslpasswd2 -c cyrus + chgrp mail /etc/sasldb2 +} + +pkg_postrm () { + grep cyrus /etc/passwd && deluser cyrus +} + -- cgit v1.2.3