Ticket #43231: patch-syslogng-Portfile.diff
File patch-syslogng-Portfile.diff, 3.7 KB (added by jul_bsd@…, 11 years ago) |
---|
-
sysutils/syslog-ng/Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name syslog-ng 6 version 3. 0.87 revision 26 version 3.5.4.1 7 revision 0 8 8 categories sysutils 9 license { GPL-2 OpenSSLException}9 license {LGPL+GPL2 OpenSSLException} 10 10 platforms darwin 11 11 maintainers markd openmaintainer 12 12 description Highly configurable syslog replacement. … … 20 20 21 21 homepage http://www.balabit.com/products/syslog_ng/ 22 22 master_sites http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/${version}/source/ 23 checksums md5 7107f5758dec4b774136f0f827b35258 23 checksums md5 ff3bf223ebafbaa92b69a2d5b729f368 \ 24 sha1 be5e28a0495e291045a00380d722161b8cb06d5e \ 25 rmd160 2a024e4849541f7c3327fe6f8ebb5da8d21ea1b1 24 26 distfiles ${name}_${version}${extract.suffix} 25 patchfiles patch-src-Makefile.in.diff27 #patchfiles patch-src-Makefile.in.diff 26 28 27 depends_build path:bin/pkg-config:pkgconfig 29 depends_build path:bin/pkg-config:pkgconfig port:gmake 28 30 depends_lib port:eventlog \ 29 31 port:libnet11 \ 30 path:lib/pkgconfig/glib-2.0.pc:glib2 32 path:lib/pkgconfig/glib-2.0.pc:glib2 \ 33 port:pcre 31 34 32 35 startupitem.create yes 33 36 startupitem.executable ${prefix}/sbin/syslog-ng … … 35 38 36 39 configure.args --mandir=${prefix}/share/man \ 37 40 --enable-dynamic-linking \ 38 --sysconfdir=${prefix}/etc 41 --sysconfdir=${prefix}/etc \ 42 --enable-tcp-wrapper --enable-spoof-source \ 43 --enable-pcre \ 44 --disable-mongodb --disable-json 45 46 ## "ld: unknown option: --whole-archive" => same w clang or mp-gcc49 :( 47 configure.compiler macports-gcc-4.9 48 build.env MAKE=${prefix}/bin/gmake 49 39 50 40 51 platform powerpc { 41 52 configure.args-append --host=powerpc … … 50 61 } 51 62 52 63 post-destroot { 64 xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name} 53 65 xinstall -m 644 ${worksrcpath}/doc/examples/syslog-ng.conf-dist \ 54 ${destroot}${prefix}/ etc66 ${destroot}${prefix}/share/examples/${name}/ 55 67 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 56 68 xinstall -m 644 -W ${worksrcpath} ChangeLog README AUTHORS COPYING NEWS \ 57 69 ${destroot}${prefix}/share/doc/${name} … … 59 71 ${destroot}${prefix}/etc/syslog-ng.conf-dist 60 72 } 61 73 74 post-activate { 75 if ![file exists ${prefix}/etc/syslog-ng.conf ] { 76 copy ${prefix}/share/examples/${name}/syslog-ng.conf.dist ${prefix}/etc/ 77 } 78 } 79 62 80 notes \ 63 81 "To use syslog-ng, first unload OS X's built-in syslog daemon: 64 82 … … 67 85 Then copy ${prefix}/etc/syslog-ng.conf-dist to ${prefix}/etc/syslog-ng.conf, 68 86 customize, and load syslog-ng: 69 87 70 sudo launchctl load -w /Library/LaunchDaemons/org.macports.syslog-ng.plist" 88 sudo launchctl load -w /Library/LaunchDaemons/org.macports.syslog-ng.plist 89 " 90 91 default_variants +ssl +ipv6 +sql +geoip 92 93 variant ssl { 94 depends_lib-append port:openssl 95 configure.args-append --enable-ssl 96 } 97 98 variant geoip { 99 depends_lib-append port:libgeoip 100 configure.args-append --enable-geoip 101 } 102 103 variant ipv6 { 104 configure.args-append --enable-ipv6 105 } 106 107 variant sql { 108 depends_lib-append port:libdbi 109 configure.args-append --enable-sql 110 } 111 112 variant mongodb { 113 configure.args-delete --disable-mongodb 114 configure.args-append --enable-mongodb 115 } 116 117 variant json { 118 depends_lib-append port:json-c 119 configure.args-delete --disable-json 120 configure.args-append --enable-json 121 } 122 123 124 livecheck.type regex 125 livecheck.url http://www.balabit.com/downloads/files/syslog-ng/open-source-edition 126 livecheck.regex "/downloads/files/syslog-ng/open-source-edition/(\\d+(?:\\.\\d+)*)\"" 127