SOURCES: perl-Sendmail-Milter-build.patch (NEW) - use installed se...
glen
glen at pld-linux.org
Wed May 24 10:36:34 CEST 2006
Author: glen Date: Wed May 24 08:36:34 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use installed sendmail headers libraries
---- Files affected:
SOURCES:
perl-Sendmail-Milter-build.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/perl-Sendmail-Milter-build.patch
diff -u /dev/null SOURCES/perl-Sendmail-Milter-build.patch:1.1
--- /dev/null Wed May 24 10:36:34 2006
+++ SOURCES/perl-Sendmail-Milter-build.patch Wed May 24 10:36:29 2006
@@ -0,0 +1,49 @@
+--- Sendmail-Milter-0.18/Makefile.PL 2001-09-19 11:42:17.000000000 +0200
++++ Sendmail-Milter-0.18.pld/Makefile.PL 2006-05-24 11:34:16.387670330 +0300
+@@ -5,14 +5,6 @@
+ use ExtUtils::MakeMaker;
+ use Config;
+
+-if ((not $ARGV[0]) or (not $ARGV[1]))
+-{
+- print "Usage: perl Makefile.PL <path-to-sendmail-source> <path-to-sendmail-obj.dir>\n";
+- print "(e.g. 'perl Makefile.PL ../sendmail ../sendmail/obj.FreeBSD.4.0-RELEASE.i386')\n";
+- print "\n";
+- exit;
+-}
+-
+ if (not $Config{usethreads})
+ {
+ print "To use this module, your perl interpreter must have been compiled with\n";
+@@ -21,15 +13,6 @@
+ exit;
+ }
+
+-my $SENDMAIL_PATH = MM->canonpath($ARGV[0]);
+-my $SENDMAIL_OBJ_PATH = MM->canonpath($ARGV[1]);
+-
+-my $MILTER_LIB = MM->catdir($SENDMAIL_OBJ_PATH, "libmilter");
+-my $SMUTIL_LIB = MM->catdir($SENDMAIL_OBJ_PATH, "libsmutil");
+-my $SM_LIB = MM->catdir($SENDMAIL_OBJ_PATH, "libsm");
+-my $MILTER_INCLUDE = MM->catdir($SENDMAIL_PATH, "include");
+-my $SENDMAIL_INCLUDE = MM->catdir($SENDMAIL_PATH, "sendmail");
+-
+ sub milter_configure
+ {
+ my $hash_ref = {};
+@@ -37,7 +20,7 @@
+ my $ccflags;
+
+ # Standard milter libraries
+- $libs = "-L$MILTER_LIB -L$SMUTIL_LIB -L$SM_LIB -lmilter -lsmutil -lsm";
++ $libs = "-lmilter -lsmutil -lsm";
+
+ # POSIX threads support.
+ if ($Config{libs} =~ /-lpthread/)
+@@ -82,6 +65,5 @@
+ 'CONFIGURE' => \&milter_configure,
+ 'OBJECT' => '$(BASEEXT)$(OBJ_EXT) intpools$(OBJ_EXT) callbacks$(OBJ_EXT)',
+ 'DEFINE' => '',
+- 'INC' => "-I$SENDMAIL_INCLUDE -I$MILTER_INCLUDE",
+ );
+
================================================================
More information about the pld-cvs-commit
mailing list