Ticket #13972: Portfile-qmail-spamcontrol.diff
File Portfile-qmail-spamcontrol.diff, 2.9 KB (added by compconsultant@…, 17 years ago) |
---|
-
Portfile
old new 4 4 5 5 name qmail-spamcontrol 6 6 version 2.4.18 7 revision 57 revision 6 8 8 categories mail 9 9 maintainers yahoo.com:compconsultant 10 10 platforms darwin … … 17 17 18 18 universal_variant no 19 19 20 variant relaymailfrom {}21 variant noreqbrackets {}22 variant noverp {}23 variant moreipme {}24 variant bigtodo {}20 variant relaymailfrom description {Relay based on sender email, not a good idea} {} 21 variant noreqbrackets description {Do not require brackets in SMTP addresses} {} 22 variant noverp description {Do not alow VERP addresses for recipients} {} 23 variant moreipme description {Patch to account for certain NAT or load balance situations} {} 24 variant bigtodo description {May make very large installations more efficient} {} 25 25 26 26 homepage http://www.fehcom.de/qmail/spamcontrol.html 27 27 … … 46 46 worksrcdir qmail-1.03 47 47 48 48 patchfiles patch-dns.c.diff \ 49 patch-strerr_sys.c.diff 49 patch-strerr_sys.c.diff \ 50 patch-qmail-lspawn.c.diff \ 51 patch-qmail-rspawn.c.diff \ 52 patch-qmail.c.diff \ 53 patch-Makefile.diff 50 54 51 55 configure.cflags -O2 -include /usr/include/errno.h -c 52 56 build.target setup-patch 53 57 destroot.cmd ./install-destroot 54 58 59 pre-fetch { 60 if {${os.platform} == "darwin" && ${os.major} == "6"} { 61 return -code error "${name} requires Mac OS X 10.3 or newer." 62 } 63 } 64 55 65 post-extract { 56 66 57 67 # Merge Spamcontrol source with Qmail source … … 72 82 ${worksrcpath}/conf-qmail 73 83 } 74 84 75 p ost-patch {85 pre-patch { 76 86 # Apply Spamcontrol patches 77 87 foreach file [glob ${worksrcpath}/*.patch] { 78 system "patch - p2 <${file}"88 system "patch -d ${worksrcpath} -p2 <${file}" 79 89 } 90 } 80 91 81 # Append our commands for making a destroot installer 82 # This is because Spamcontrol and us needs to patch Makefile 83 system "cat ${filespath}/append-Makefile >>${worksrcpath}/Makefile" 92 post-patch { 84 93 85 94 # Handle the variants, disable via source code define change 86 95 foreach file [glob ${worksrcpath}/*c] { … … 215 224 xinstall -W ${worksrcpath} config-fast ${destroot}${prefix}/var/qmail/scripts/config-fast 216 225 217 226 # Per Qmail install doc 218 xinstall ${destroot}${prefix}/var/qmail/boot/home ${destroot}${prefix}/var/qmail/rc 227 xinstall ${destroot}${prefix}/var/qmail/boot/home ${destroot}${prefix}/var/qmail/rc.sample 219 228 } 220 229 221 230 post-install { … … 237 246 238 247 post-activate { 239 248 240 # Remove the turd files 249 # Remove the turd files, it is not know if they cause a problem but 250 # people have recommended not having them there. 241 251 system "cd ${prefix}/var/qmail; find . -name .turd_${name} -delete" 242 system "rm ${destroot}${prefix}/var/log/qmail/smtpd/.turd_${name}"243 }244 245 platform darwin 6 {246 return -code error "${name} requires Mac OS X 10.3 or newer."247 252 } 248 253 249 254 livecheck.check regex 250 255 livecheck.regex {Version\s+([0-9.]+)<} 251