summaryrefslogtreecommitdiff
path: root/openwrt/package/procmail/patches/promail_openwrt.patch
blob: c33d8260534e85e4e9aff171b8391987e64fc82f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
This patch is required to make procmail cross compile - it tries to run some automatic tests which
obviously do not work in a cross compiled environment.


diff -Naur procmail-3.22_orig/autoconf.h procmail-3.22/autoconf.h
--- procmail-3.22_orig/autoconf.h	1970-01-01 10:00:00.000000000 +1000
+++ procmail-3.22/autoconf.h	2006-03-23 12:15:36.000000000 +1100
@@ -0,0 +1,21 @@
+/* This file was automagically generated by autoconf */
+
+/* 5 moves in 64 steps of size 16384 when reallocing */
+#define NOpw_class
+#define NOstrlcat
+#define NOsetrgid
+#define MAX_argc 7588
+/* Your system's strstr() is 1.12 times FASTER than my C-routine */
+#define UDP_protocolno 17
+#define BIFF_serviceport "512"
+#define IP_localhost {127,0,0,1}
+#define MAILSPOOLDIR "/var/spool/mail/"
+#define SENDMAIL "/usr/sbin/sendmail"
+#define CF_no_procmail_yet
+#define buggy_SENDMAIL
+#define defPATH "PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
+#define defSPATH "PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
+#define PM_VERSION "3.22"
+/* Hotwire LOCKINGTEST=100 */
+/* Procmail will lock via: dotlocking, fcntl() */
+/* autoconf completed */
diff -Naur procmail-3.22_orig/Makefile.openwrt procmail-3.22/Makefile.openwrt
--- procmail-3.22_orig/Makefile.openwrt	1970-01-01 10:00:00.000000000 +1000
+++ procmail-3.22/Makefile.openwrt	2006-03-23 12:15:36.000000000 +1100
@@ -0,0 +1,18 @@
+PM_OBJ=cstdio.o common.o exopen.o goodies.o locking.o \
+ mailfold.o foldinfo.o misc.o pipes.o regexp.o robust.o \
+ sublib.o acommon.o mcommon.o lastdirsep.o authenticate.o \
+ lmtp.o memblk.o variables.o from.o comsat.o
+
+FM_OBJ=common.o fields.o formisc.o sublib.o ecommon.o \
+ acommon.o
+
+LDFLAGS = -lm -lnsl -ldl -lc
+CFLAGS = -Os -DPROCMAIL
+
+all: procmail formail
+
+procmail: procmail.o $(PM_OBJ)
+	$(CC) $(CFLAGS) $@.o $(PM_OBJ) -o $@ $(LDFLAGS)
+
+formail: formail.o $(FM_OBJ)
+	$(CC) $(CFLAGS) $@.o $(FM_OBJ) -o $@ $(LDFLAGS)