Waldemar Brodkorb 3 месяцев назад
Родитель
Сommit
78261f3113

+ 0 - 35
package/procmail/Makefile

@@ -1,35 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include ${ADK_TOPDIR}/rules.mk
-
-PKG_NAME:=		procmail
-PKG_VERSION:=		3.22
-PKG_RELEASE:=		1
-PKG_HASH:=		087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117
-PKG_DESCR:=		mail processing tools
-PKG_SECTION:=		net/mail
-PKG_URL:=		http://www.procmail.org/
-PKG_SITES:=		ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/
-
-DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
-
-include ${ADK_TOPDIR}/mk/package.mk
-
-$(eval $(call PKG_template,PROCMAIL,procmail,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-
-CONFIG_STYLE:=          manual
-BUILD_STYLE:=           manual
-INSTALL_STYLE:=         manual
-
-TARGET_CPPFLAGS+=	-DPROCMAIL
-
-do-build:
-	${MAKE} -C ${WRKBUILD}/src -f ../Makefile.new
-
-do-install:
-	${INSTALL_DIR} ${IDIR_PROCMAIL}/usr/bin
-	${INSTALL_BIN} ${WRKBUILD}/src/procmail ${IDIR_PROCMAIL}/usr/bin/
-	${INSTALL_BIN} ${WRKBUILD}/src/formail ${IDIR_PROCMAIL}/usr/bin/
-
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 0 - 22
package/procmail/patches/patch-Makefile_new

@@ -1,22 +0,0 @@
---- procmail-3.22.orig/Makefile.new	1970-01-01 00:00:00.000000000 +0100
-+++ procmail-3.22/Makefile.new	2010-01-28 20:54:16.474334142 +0100
-@@ -0,0 +1,19 @@
-+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)
-+

+ 0 - 28
package/procmail/patches/patch-autoconf_h

@@ -1,28 +0,0 @@
-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.
-
---- procmail-3.22.orig/autoconf.h	1970-01-01 00:00:00.000000000 +0100
-+++ procmail-3.22/autoconf.h	2009-06-04 22:52:50.000000000 +0200
-@@ -0,0 +1,22 @@
-+/* This file was automagically generated by autoconf */
-+
-+/* 5 moves in 64 steps of size 16384 when reallocing */
-+#define NOpow
-+#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 */

+ 0 - 23
package/procmail/patches/patch-src_fields_c

@@ -1,23 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- procmail-3.22.orig/src/fields.c	2001-09-11 06:57:08.000000000 +0200
-+++ procmail-3.22/src/fields.c	2009-06-02 00:23:11.000000000 +0200
-@@ -110,16 +110,16 @@ void dispfield(p)register const struct f
- 		    /* try and append one valid field to rdheader from stdin */
- int readhead P((void))
- { int idlen;
--  getline();
-+  getline2();
-   if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */
-      return 0;
-   if(idlen==STRLEN(FROM)&&eqFrom_(buf))			/* it's a From_ line */
-    { if(rdheader)
- 	return 0;			       /* the From_ line was a fake! */
--     for(;buflast=='>';getline());	    /* gather continued >From_ lines */
-+     for(;buflast=='>';getline2());	    /* gather continued >From_ lines */
-    }
-   else
--     for(;;getline())		      /* get the rest of the continued field */
-+     for(;;getline2())		      /* get the rest of the continued field */
-       { switch(buflast)			     /* will this line be continued? */
- 	 { case ' ':case '\t':				  /* yep, it sure is */
- 	      continue;

+ 0 - 12
package/procmail/patches/patch-src_formail_c

@@ -1,12 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- procmail-3.22.orig/src/formail.c	2001-09-11 06:57:32.000000000 +0200
-+++ procmail-3.22/src/formail.c	2009-06-02 00:22:47.000000000 +0200
-@@ -819,7 +819,7 @@ splitit:       { if(!lnl)   /* did the p
-       { if(split)		       /* gobble up the next start separator */
- 	 { buffilled=0;
- #ifdef sMAILBOX_SEPARATOR
--	   getline();buffilled=0;		 /* but only if it's defined */
-+	   getline2();buffilled=0;		 /* but only if it's defined */
- #endif
- 	   if(buflast!=EOF)					   /* if any */
- 	      goto splitit;

+ 0 - 12
package/procmail/patches/patch-src_formisc_c

@@ -1,12 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- procmail-3.22.orig/src/formisc.c	2001-06-29 04:20:45.000000000 +0200
-+++ procmail-3.22/src/formisc.c	2009-06-02 00:23:57.000000000 +0200
-@@ -115,7 +115,7 @@ void loadchar(c)const int c;		      /* a
-   buf[buffilled++]=c;
- }
- 
--int getline P((void))			   /* read a newline-terminated line */
-+int getline2 P((void))			   /* read a newline-terminated line */
- { if(buflast==EOF)			 /* at the end of our Latin already? */
-    { loadchar('\n');					  /* fake empty line */
-      return EOF;					  /* spread the word */

+ 0 - 9
package/procmail/patches/patch-src_formisc_h

@@ -1,9 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- procmail-3.22.orig/src/formisc.h	1999-04-19 08:42:15.000000000 +0200
-+++ procmail-3.22/src/formisc.h	2009-06-02 00:22:16.000000000 +0200
-@@ -17,4 +17,4 @@ void
- char*
-  skipwords P((char*start));
- int
-- getline P((void));
-+ getline2 P((void));

+ 0 - 19
package/procmail/src/Makefile.new

@@ -1,19 +0,0 @@
-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 -ldl -lc
-CFLAGS ?= -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)
-