The sendmail Mail Filter API (Milter) is designed to allow third-party programs access to mail messages as they are being processed in order to filter meta-information and content. This library is a prerequisite for the OpenDKIM package. The proposed Makefile also contains sections for building Sendmail. These sections are commented out because more work is necessary to properly complete porting of Sendmail to LEDE/OpenWrt. The notes in Makefile provide details on what is required to complete the port. It has been verified that Sendmail executables compile and run properly on the target system when the commented sections in Makefile are uncommented. Signed-off-by: Val Kulkov <val.kulkov@gmail.com>
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
--- a/include/sm/conf.h
|
|
+++ b/include/sm/conf.h
|
|
@@ -57,7 +57,7 @@
|
|
# endif /* ! HASNICE */
|
|
|
|
# ifndef HASRRESVPORT
|
|
-# define HASRRESVPORT 1 /* has rrsevport(3) call */
|
|
+# define HASRRESVPORT 0 /* has rrsevport(3) call */
|
|
# endif /* ! HASRRESVPORT */
|
|
|
|
/**********************************************************************
|
|
@@ -1470,7 +1470,9 @@ extern void *malloc();
|
|
# define SM_CONF_GETOPT 0 /* need a replacement for getopt(3) */
|
|
# define HASUNAME 1 /* use System V uname(2) system call */
|
|
# define HASUNSETENV 1 /* has unsetenv(3) call */
|
|
-# define ERRLIST_PREDEFINED /* don't declare sys_errlist */
|
|
+# ifdef __GLIBC__
|
|
+# define ERRLIST_PREDEFINED /* don't declare sys_errlist */
|
|
+# endif /* __GLIBC__ */
|
|
# define GIDSET_T gid_t /* from <linux/types.h> */
|
|
# ifndef HASGETUSERSHELL
|
|
# define HASGETUSERSHELL 0 /* getusershell(3) broken in Slackware 2.0 */
|
|
@@ -1508,6 +1510,7 @@ extern void *malloc();
|
|
# if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
|
|
# define HASSTRERROR 1 /* has strerror(3) */
|
|
# endif /* defined(__GLIBC__) && defined(__GLIBC_MINOR__) */
|
|
+# define HASSTRERROR 1 /* Patch for LEDE/OpenWRT: has strerror(3) */
|
|
# ifndef TZ_TYPE
|
|
# define TZ_TYPE TZ_NONE /* no standard for Linux */
|
|
# endif /* ! TZ_TYPE */
|
|
--- a/devtools/bin/Build
|
|
+++ b/devtools/bin/Build
|
|
@@ -320,6 +320,16 @@ then
|
|
rel=`/usr/apollo/bin/bldt | grep Domain | awk '{ print $4 }' | sed -e 's/,//g'`
|
|
fi
|
|
|
|
+#
|
|
+# LEDE/OpenWrt build system
|
|
+#
|
|
+if [ -n "$STAGING_DIR" -a -n "$OPENWRT_BUILD" ]
|
|
+then
|
|
+ os="OpenWrt"
|
|
+ rel="any"
|
|
+ arch="any"
|
|
+fi
|
|
+
|
|
if [ ! "$arch" -a ! "$os" -a ! "$rel" ]
|
|
then
|
|
arch=`uname -m | sed -e 's/ //g' -e 's/\//-/g'`
|