summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2004-09-15 06:54:39 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2004-09-15 06:54:39 +0000
commit8a133bb907eba302ead8e1984510829d59d37a88 (patch)
treeb809dc2f1b429d60e5600cab270c359be5176731 /dev-libs/libmcal/libmcal-0.7-r3.ebuild
parentforgot to commit changelog (Manifest recommit) (diff)
downloadgentoo-2-8a133bb907eba302ead8e1984510829d59d37a88.tar.gz
gentoo-2-8a133bb907eba302ead8e1984510829d59d37a88.tar.bz2
gentoo-2-8a133bb907eba302ead8e1984510829d59d37a88.zip
Fix bug #61969 with PAM.
Diffstat (limited to 'dev-libs/libmcal/libmcal-0.7-r3.ebuild')
-rw-r--r--dev-libs/libmcal/libmcal-0.7-r3.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/libmcal/libmcal-0.7-r3.ebuild b/dev-libs/libmcal/libmcal-0.7-r3.ebuild
new file mode 100644
index 000000000000..070322ea6a97
--- /dev/null
+++ b/dev-libs/libmcal/libmcal-0.7-r3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmcal/libmcal-0.7-r3.ebuild,v 1.1 2004/09/15 06:54:39 robbat2 Exp $
+
+inherit eutils
+
+DRIVERS="mcaldrivers-0.9"
+SRC_URI_BASE="mirror://sourceforge/libmcal"
+DESCRIPTION="Modular Calendar Access Library"
+HOMEPAGE="http://mcal.chek.com/"
+SRC_URI="${SRC_URI_BASE}/${P}.tar.gz ${SRC_URI_BASE}/${DRIVERS}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~ppc ~sparc ~mips ~alpha arm ~hppa ~amd64 ~ia64 ~s390"
+IUSE="pam"
+
+DEPEND="pam? ( sys-libs/pam )"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ mv ${S}/../mcal-drivers/* ${S}/
+ einfo "Using /var/spool/calendar instead of /var/calendar"
+ for i in FAQ-MCAL HOW-TO-MCAL mstore/mstore.c mstore/README mstore/Changelog; do
+ sed -e 's|/var/calendar|/var/spool/calendar|g' -i ${i}
+ done
+ cd ${S}
+ epatch ${FILESDIR}/${P}-fpic.patch
+}
+
+src_compile() {
+ use pam && CFLAGS="${CFLAGS} -DUSE_PAM -lpam" LDFLAGS="${LDFLAGS} -lpam"
+ einfo "Setting up mstore back-end"
+ cd ${S}/mstore
+ emake CFLAGS="${CFLAGS} -I.." LDFLAGS="${LDFLAGS}" || die
+
+ einfo "Setting up icap back-end"
+ cd ${S}/icap
+ emake CFLAGS="${CFLAGS} -I.." LDFLAGS="${LDFLAGS}" || die
+
+ cd ${S}
+ myconf="--with-mstore --with-icap"
+ econf ${myconf} || die
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
+}
+
+src_install() {
+ einstall DESTDIR=${D} || die
+ dodoc CHANGELOG FAQ-MCAL FEATURE-IMPLEMENTATION HOW-TO-MCAL LICENSE README
+ newdoc mstore/README mstore-README
+ newdoc mstore/Changelog mstore-Changelog
+ newdoc icap/Changelog icap-Changelog
+ dohtml FUNCTION-REF.html
+ keepdir /var/spool/calendar
+ fperms 1777 /var/spool/calendar
+}
+
+pkg_postinst() {
+ einfo "You should start adding users to your calendar. ( e.g. htpasswd -c /etc/mpasswd username )"
+ # enforce perms
+ chmod 1777 ${ROOT}/var/spool/calendar
+}