summaryrefslogtreecommitdiff
path: root/mail/panda-imap/files/patch-src_imapd_Makefile
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2014-12-14 17:56:14 +0000
committerThierry Thomas <thierry@FreeBSD.org>2014-12-14 17:56:14 +0000
commit69d0a0a2587baa86415d5b3cdc6a59afa7ae2ca1 (patch)
tree04a33ff4ac942f99bcc586ad49b302bf830b43bf /mail/panda-imap/files/patch-src_imapd_Makefile
parent- Install missing file latency.txt (diff)
Adding mail/panda-cclient and mail/panda-imap.
Since Mark Crispin left the UW, development on UW-IMAP paused. Mark however continued developing the toolkit under the name Panda-IMAP. Since Mark passed, Jonathan Abbey created a project on GitHub, by concatenating all of the public releases of UW IMAP with the last version of Panda IMAP. Add conflict lines with the original ports.
Diffstat (limited to 'mail/panda-imap/files/patch-src_imapd_Makefile')
-rw-r--r--mail/panda-imap/files/patch-src_imapd_Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/mail/panda-imap/files/patch-src_imapd_Makefile b/mail/panda-imap/files/patch-src_imapd_Makefile
new file mode 100644
index 000000000000..ef72fc24c6aa
--- /dev/null
+++ b/mail/panda-imap/files/patch-src_imapd_Makefile
@@ -0,0 +1,61 @@
+--- src/imapd/Makefile.orig 2013-06-21 23:29:17.000000000 +0200
++++ src/imapd/Makefile 2014-12-14 14:44:16.000000000 +0100
+@@ -26,11 +26,11 @@
+ # http://www.apache.org/licenses/LICENSE-2.0
+
+
+-ALERT=/etc/imapd.alert
++ALERT=$(PREFIX)/etc/imapd.alert
+ USERALERT=.imapalert
+-SHUTDOWN=/etc/nologin
+-ANO=/etc/anonymous.newsgroups
+-NNTP=/etc/imapd.nntp
++SHUTDOWN=$(PREFIX)/etc/nologin
++ANO=$(PREFIX)/etc/anonymous.newsgroups
++NNTP=$(PREFIX)//etc/imapd.nntp
+ SHELL= /bin/sh
+
+
+@@ -38,7 +38,9 @@
+ # causes the "Manage Mail" menu item to open the given URL, e.g. to point to
+ # an alternative IMAP client (e.g. Pine) or perhaps to a homebrew mail
+ # account management page.
+-#NSBD= -DNETSCAPE_BRAIN_DAMAGE=\"http://sourceforge.net/projects/re-alpine\"
++.if defined(WITH_NETSCAPE_BRAIN_DAMAGE)
++NSBD= -DNETSCAPE_BRAIN_DAMAGE=\"http://sourceforge.net/projects/re-alpine\"
++.endif
+
+ # Un-comment to enable the ESEARCH command. Unfortunately, the iOS4 Mail
+ # client misinterprets the ESEARCH results due to an ambiguity in RFC 4731.
+@@ -46,23 +48,21 @@
+
+ # Get local definitions from c-client directory
+
+-C = ../c-client
+-CCLIENTLIB = $C/c-client.a
+-CC = `cat $C/CCTYPE`
+-CFLAGS = -I$C `cat $C/CFLAGS` $(NSBD) $(ESEARCH) -DANOFILE=\"$(ANO)\" \
++CFLAGS = -DNFSKLUDGE -I$(LOCALBASE)/include/c-client $(NSBD) \
++ -DANOFILE=\"$(ANO)\" \
+ -DALERTFILE=\"$(ALERT)\" -DNNTPFILE=\"$(NNTP)\" \
+ -DUSERALERTFILE=\"$(USERALERT)\" -DSHUTDOWNFILE=\"$(SHUTDOWN)\"
+-LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
++LDFLAGS+= $(EXTRALDFLAGS) -L$(LOCALBASE)/lib -lc-client4
++.if defined(WITH_DRAC)
++CFLAGS+= -DETC_DIR=\"$(PREFIX)/etc\" -DDRAC_AUTH
++LDFLAGS+= -ldrac
++.endif
+
+ all: imapd
+
+-imapd: $(CCLIENTLIB) imapd.o
++imapd: imapd.o
+ $(CC) $(CFLAGS) -o imapd imapd.o $(LDFLAGS)
+
+-imapd.o: $C/mail.h $C/misc.h $C/osdep.h
+-
+-$(CCLIENTLIB):
+- cd $C;make
+
+ clean:
+ rm -f *.o imapd || true