source: freewrt/package/procmail/patches/promail_openwrt.patch@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[475ad56]1This patch is required to make procmail cross compile - it tries to run some automatic tests which
2obviously do not work in a cross compiled environment.
3
4
5diff -Naur procmail-3.22_orig/autoconf.h procmail-3.22/autoconf.h
6--- procmail-3.22_orig/autoconf.h 1970-01-01 10:00:00.000000000 +1000
7+++ procmail-3.22/autoconf.h 2006-03-23 12:15:36.000000000 +1100
8@@ -0,0 +1,21 @@
9+/* This file was automagically generated by autoconf */
10+
11+/* 5 moves in 64 steps of size 16384 when reallocing */
12+#define NOpw_class
13+#define NOstrlcat
14+#define NOsetrgid
15+#define MAX_argc 7588
16+/* Your system's strstr() is 1.12 times FASTER than my C-routine */
17+#define UDP_protocolno 17
18+#define BIFF_serviceport "512"
19+#define IP_localhost {127,0,0,1}
20+#define MAILSPOOLDIR "/var/spool/mail/"
21+#define SENDMAIL "/usr/sbin/sendmail"
22+#define CF_no_procmail_yet
23+#define buggy_SENDMAIL
24+#define defPATH "PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
25+#define defSPATH "PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
26+#define PM_VERSION "3.22"
27+/* Hotwire LOCKINGTEST=100 */
28+/* Procmail will lock via: dotlocking, fcntl() */
29+/* autoconf completed */
30diff -Naur procmail-3.22_orig/Makefile.openwrt procmail-3.22/Makefile.openwrt
31--- procmail-3.22_orig/Makefile.openwrt 1970-01-01 10:00:00.000000000 +1000
32+++ procmail-3.22/Makefile.openwrt 2006-03-23 12:15:36.000000000 +1100
33@@ -0,0 +1,18 @@
34+PM_OBJ=cstdio.o common.o exopen.o goodies.o locking.o \
35+ mailfold.o foldinfo.o misc.o pipes.o regexp.o robust.o \
36+ sublib.o acommon.o mcommon.o lastdirsep.o authenticate.o \
37+ lmtp.o memblk.o variables.o from.o comsat.o
38+
39+FM_OBJ=common.o fields.o formisc.o sublib.o ecommon.o \
40+ acommon.o
41+
42+LDFLAGS = -lm -lnsl -ldl -lc
43+CFLAGS = -Os -DPROCMAIL
44+
45+all: procmail formail
46+
47+procmail: procmail.o $(PM_OBJ)
48+ $(CC) $(CFLAGS) $@.o $(PM_OBJ) -o $@ $(LDFLAGS)
49+
50+formail: formail.o $(FM_OBJ)
51+ $(CC) $(CFLAGS) $@.o $(FM_OBJ) -o $@ $(LDFLAGS)
Note: See TracBrowser for help on using the repository browser.