aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorstefan <stefan@FreeBSD.org>2006-05-28 23:43:33 +0800
committerstefan <stefan@FreeBSD.org>2006-05-28 23:43:33 +0800
commit5dd44b0241211e8d811d9ebeb90ec7d5aa161d6d (patch)
treea5151d4ba1d485e860207e4b6bfcf5f6d3faa8db /mail
parentf6e4fcca014a6c2197e55711833db68095d93cc2 (diff)
downloadfreebsd-ports-gnome-5dd44b0241211e8d811d9ebeb90ec7d5aa161d6d.tar.gz
freebsd-ports-gnome-5dd44b0241211e8d811d9ebeb90ec7d5aa161d6d.tar.zst
freebsd-ports-gnome-5dd44b0241211e8d811d9ebeb90ec7d5aa161d6d.zip
- Update to 1.2.1.
- Honor PREFIX. - Pass maintainership to myself. PR: 98000 Submitted by: stefan Approved by: Lefteris Chatzibarbas <lefcha@hellug.gr> (former maintainer) arved (mentor)
Diffstat (limited to 'mail')
-rw-r--r--mail/imapfilter/Makefile10
-rw-r--r--mail/imapfilter/distinfo6
-rw-r--r--mail/imapfilter/files/patch-configure (renamed from mail/imapfilter/files/patch-aa)40
3 files changed, 44 insertions, 12 deletions
diff --git a/mail/imapfilter/Makefile b/mail/imapfilter/Makefile
index d6ac8773ed69..31308981a9a8 100644
--- a/mail/imapfilter/Makefile
+++ b/mail/imapfilter/Makefile
@@ -6,14 +6,14 @@
#
PORTNAME= imapfilter
-PORTVERSION= 1.0.1
+PORTVERSION= 1.2.1
CATEGORIES= mail
MASTER_SITES= http://imapfilter.hellug.gr/source/
-MAINTAINER= lefcha@hellug.gr
+MAINTAINER= stefan@FreeBSD.org
COMMENT= IMAP mail filtering utility
-LIB_DEPENDS= lua.5:${PORTSDIR}/lang/lua50
+BUILD_DEPENDS= ${LOCALBASE}/include/lua.hpp:${PORTSDIR}/lang/lua
USE_BZIP2= yes
USE_OPENSSL= yes
@@ -30,6 +30,10 @@ PLIST_FILES= bin/imapfilter \
${EXAMPLESDIR:S%${PREFIX}/%%}/sample.extend.lua
PLIST_DIRS= ${DATADIR:S%${PREFIX}/%%} ${EXAMPLESDIR:S%${PREFIX}/%%}
+post-patch:
+ ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/configure
+
post-install:
${STRIP_CMD} ${PREFIX}/bin/imapfilter
@${MKDIR} ${DATADIR}
diff --git a/mail/imapfilter/distinfo b/mail/imapfilter/distinfo
index ecbd3756c26b..41f7b3e51ea9 100644
--- a/mail/imapfilter/distinfo
+++ b/mail/imapfilter/distinfo
@@ -1,3 +1,3 @@
-MD5 (imapfilter-1.0.1.tar.bz2) = df46132ef7c48cf0e093cf0100983103
-SHA256 (imapfilter-1.0.1.tar.bz2) = 1e40978bc2396c1e0f078907b8b4e2cc327752cacd7df9361e76703e7f6a6fbb
-SIZE (imapfilter-1.0.1.tar.bz2) = 28718
+MD5 (imapfilter-1.2.1.tar.bz2) = 6aaee99234b0f8ffcf97698786985232
+SHA256 (imapfilter-1.2.1.tar.bz2) = e25cd5c4cf1e3d0440e20b890f714ebed5d06d8482212c6947df03fa1982c3e4
+SIZE (imapfilter-1.2.1.tar.bz2) = 32110
diff --git a/mail/imapfilter/files/patch-aa b/mail/imapfilter/files/patch-configure
index 344ec80d63c0..4e6b39d8b00b 100644
--- a/mail/imapfilter/files/patch-aa
+++ b/mail/imapfilter/files/patch-configure
@@ -1,6 +1,32 @@
---- configure.orig Sun May 23 15:03:23 2004
-+++ configure Sun May 23 15:08:27 2004
-@@ -143,16 +143,16 @@
+--- configure.orig Thu Mar 9 23:58:22 2006
++++ configure Fri May 26 21:52:12 2006
+@@ -2,7 +2,7 @@
+
+ # Default values
+
+-destdir="/usr/local"
++destdir="%%PREFIX%%"
+ bindir="$destdir/bin"
+ sharedir="$destdir/share/imapfilter"
+ mandir="$destdir/man"
+@@ -10,13 +10,13 @@
+ ssltls="yes"
+ crammd5="yes"
+
+-incdirs="-I/usr/local/include"
+-libdirs="-L/usr/local/lib"
++incdirs="-I%%LOCALBASE%%/include"
++libdirs="-L%%LOCALBASE%%/lib"
+
+ mycflags="-Wall -O"
+ myldflags=""
+
+-libs="-lm -llua -llualib"
++libs="-lm -llua"
+ libssl="-lssl"
+ libcrypto="-lcrypto"
+
+@@ -145,16 +145,16 @@
SHAREDIR = $sharedir
MANDIR = $mandir
@@ -22,7 +48,7 @@
LIBS = $libs
-@@ -181,17 +181,9 @@
+@@ -184,19 +184,9 @@
imapfilter.o: version.h
install: \$(BIN)
@@ -34,9 +60,11 @@
- cp -f \$(AUXILIARY_LUA) \$(SHAREDIR) && \\
- chmod 0644 \$(SHAREDIR)/\$(AUXILIARY_LUA)
- if test ! -d \$(MANDIR)/man1; then mkdir -p \$(MANDIR)/man1; fi
-- cp -f \$(MAN_BIN) \$(MANDIR)/man1 && chmod 0644 \$(MANDIR)/man1/\$(MAN_BIN)
+- cp -f \$(MAN_BIN) \$(MANDIR)/man1 && \\
+- chmod 0644 \$(MANDIR)/man1/\$(MAN_BIN)
- if test ! -d \$(MANDIR)/man5; then mkdir -p \$(MANDIR)/man5; fi
-- cp -f \$(MAN_CONFIG) \$(MANDIR)/man5 && chmod 0644 \$(MANDIR)/man5/\$(MAN_CONFIG)
+- cp -f \$(MAN_CONFIG) \$(MANDIR)/man5 && \\
+- chmod 0644 \$(MANDIR)/man5/\$(MAN_CONFIG)
+ \$(INST_BIN) \$(BIN) \$(BINDIR)
+ \$(INST_DOC) \$(MAN_BIN) \$(MANDIR)/man1
+ \$(INST_DOC) \$(MAN_CONFIG) \$(MANDIR)/man5