diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/procmail |
Initial import
Diffstat (limited to 'package/procmail')
-rw-r--r-- | package/procmail/Config.in | 11 | ||||
-rw-r--r-- | package/procmail/Makefile | 27 | ||||
-rw-r--r-- | package/procmail/extra/Makefile.new | 19 | ||||
-rw-r--r-- | package/procmail/ipkg/procmail.control | 4 | ||||
-rw-r--r-- | package/procmail/patches/patch-autoconf_h | 29 |
5 files changed, 90 insertions, 0 deletions
diff --git a/package/procmail/Config.in b/package/procmail/Config.in new file mode 100644 index 000000000..28e75221a --- /dev/null +++ b/package/procmail/Config.in @@ -0,0 +1,11 @@ +config ADK_PACKAGE_PROCMAIL + prompt "procmail.......................... mail processing tool" + tristate + default n + help + Procmail is able to process and classify incoming mail into + different mail boxes. + + Very useful in conjunction with mutt. + + http://www.procmail.org diff --git a/package/procmail/Makefile b/package/procmail/Makefile new file mode 100644 index 000000000..96a2062fe --- /dev/null +++ b/package/procmail/Makefile @@ -0,0 +1,27 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= procmail +PKG_VERSION:= 3.22 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 1678ea99b973eb77eda4ecf6acae53f1 +MASTER_SITES:= http://www.procmail.org/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,PROCMAIL,procmail,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +do-build: + ${MAKE} -C ${WRKBUILD}/src -f ../Makefile.new \ + CC="${TARGET_CC}" + +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 ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/procmail/extra/Makefile.new b/package/procmail/extra/Makefile.new new file mode 100644 index 000000000..3f8ed3ab2 --- /dev/null +++ b/package/procmail/extra/Makefile.new @@ -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) + diff --git a/package/procmail/ipkg/procmail.control b/package/procmail/ipkg/procmail.control new file mode 100644 index 000000000..6a87f9ff5 --- /dev/null +++ b/package/procmail/ipkg/procmail.control @@ -0,0 +1,4 @@ +Package: procmail +Priority: optional +Section: text +Description: Mail processing tool diff --git a/package/procmail/patches/patch-autoconf_h b/package/procmail/patches/patch-autoconf_h new file mode 100644 index 000000000..f7c210574 --- /dev/null +++ b/package/procmail/patches/patch-autoconf_h @@ -0,0 +1,29 @@ +$Id$ + +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 2006-07-27 07:50:48.000000000 +0200 +@@ -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 */ |