summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2003-02-22 01:05:18 +0000
committerrh <rh@pkgsrc.org>2003-02-22 01:05:18 +0000
commita2b3f943e7fe0784a4db58a69272d4c34ae183af (patch)
treebb7a493dfc1a975f452e80864e9335b67f23c7ab /mail
parent40b35c5c2a2c5659e1fde6048e1b174464c0f06e (diff)
downloadpkgsrc-a2b3f943e7fe0784a4db58a69272d4c34ae183af.tar.gz
Initial import of libsieve-2.1.12, a RFC3028 sieve library
Diffstat (limited to 'mail')
-rw-r--r--mail/libsieve/DESCR2
-rw-r--r--mail/libsieve/Makefile32
-rw-r--r--mail/libsieve/PLIST9
-rw-r--r--mail/libsieve/buildlink2.mk26
-rw-r--r--mail/libsieve/distinfo4
-rw-r--r--mail/libsieve/files/Makefile19
6 files changed, 92 insertions, 0 deletions
diff --git a/mail/libsieve/DESCR b/mail/libsieve/DESCR
new file mode 100644
index 00000000000..9f33c4fd7af
--- /dev/null
+++ b/mail/libsieve/DESCR
@@ -0,0 +1,2 @@
+ This is the sieve library from the cyrus imapd distribution. It helps
+writing programs that parse RFC3028 mail filtering sieve scripts.
diff --git a/mail/libsieve/Makefile b/mail/libsieve/Makefile
new file mode 100644
index 00000000000..baaa584f845
--- /dev/null
+++ b/mail/libsieve/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/02/22 01:05:18 rh Exp $
+#
+
+DISTNAME= cyrus-imapd-2.1.12
+PKGNAME= ${DISTNAME:S/cyrus-imapd/libsieve/}
+WRKSRC= ${WRKDIR}/${DISTNAME}/sieve
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
+
+MAINTAINER= rh@netbsd.org
+HOMEPAGE= http://www.cyrusoft.com/sieve/
+COMMENT= RFC3028 sieve library
+
+USE_BUILDLINK2= YES
+USE_LIBTOOL= YES
+CPPFLAGS+= -I.
+CPPFLAGS+= -I${PREFIX}/include/cyrus
+LDFLAGS+= -lcyrus
+
+do-configure:
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
+
+do-install:
+ cd ${WRKSRC} && \
+ ${LIBTOOL} --mode=install ${INSTALL_DATA} libsieve.la ${PREFIX}/lib
+ ${INSTALL_DATA_DIR} ${PREFIX}/include/sieve
+.for hdr in sieve_err.h sieve_interface.h
+ ${INSTALL_DATA} ${WRKSRC}/${hdr} ${PREFIX}/include/sieve
+.endfor
+
+.include "../../mail/cyrus-imapd/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/libsieve/PLIST b/mail/libsieve/PLIST
new file mode 100644
index 00000000000..27e30199849
--- /dev/null
+++ b/mail/libsieve/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/22 01:05:18 rh Exp $
+include/sieve/sieve_err.h
+include/sieve/sieve_interface.h
+lib/libsieve.a
+lib/libsieve.la
+lib/libsieve.so
+lib/libsieve.so.1
+lib/libsieve.so.1.0
+@dirrm include/sieve
diff --git a/mail/libsieve/buildlink2.mk b/mail/libsieve/buildlink2.mk
new file mode 100644
index 00000000000..e6510ed19f9
--- /dev/null
+++ b/mail/libsieve/buildlink2.mk
@@ -0,0 +1,26 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/02/22 01:05:18 rh Exp $
+#
+# This Makefile fragment is included by packages that use libsieve.
+#
+# This file was created automatically using createbuildlink 2.4.
+#
+
+.if !defined(LIBSIEVE_BUILDLINK2_MK)
+LIBSIEVE_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= libsieve
+BUILDLINK_DEPENDS.libsieve?= libsieve>=2.1.12
+BUILDLINK_PKGSRCDIR.libsieve?= ../../mail/libsieve
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.libsieve=libsieve
+BUILDLINK_PREFIX.libsieve_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.libsieve+= include/sieve/*.h
+BUILDLINK_FILES.libsieve+= lib/libsieve.*
+
+.include "../../mail/cyrus-imapd/buildlink2.mk"
+
+BUILDLINK_TARGETS+= libsieve-buildlink
+
+libsieve-buildlink: _BUILDLINK_USE
+
+.endif # LIBSIEVE_BUILDLINK2_MK
diff --git a/mail/libsieve/distinfo b/mail/libsieve/distinfo
new file mode 100644
index 00000000000..0a5536571fc
--- /dev/null
+++ b/mail/libsieve/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/02/22 01:05:18 rh Exp $
+
+SHA1 (cyrus-imapd-2.1.12.tar.gz) = f77c7328faba7bdb6b2af55ec562433a29255e4a
+Size (cyrus-imapd-2.1.12.tar.gz) = 1664202 bytes
diff --git a/mail/libsieve/files/Makefile b/mail/libsieve/files/Makefile
new file mode 100644
index 00000000000..1e1678d7547
--- /dev/null
+++ b/mail/libsieve/files/Makefile
@@ -0,0 +1,19 @@
+#
+# $Id: Makefile,v 1.1.1.1 2003/02/22 01:05:18 rh Exp $
+#
+# Package Makefile for libsieve
+#
+OBJS= sieve_err.o sieve.o sieve-lex.o comparator.o interp.o message.o script.o tree.o addr.o addr-lex.o md5.o
+
+.c.o:
+ ${LIBTOOL} --mode=compile ${CC} ${CPPFLAGS} ${CFLAGS} -c ${.IMPSRC}
+
+#.y.c:
+# yacc -d ${.IMPSRC}
+# mv -f y.tab.c ${.TARGET}
+# mv -f y.tab.h ${.TARGET:.c=.h}
+
+all: libsieve.la
+
+libsieve.la: ${OBJS}
+ ${LIBTOOL} --mode=link ${CC} -o ${.TARGET} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 1:0 ${LDFLAGS}