Ticket #47209: Portfile-monit.diff
File Portfile-monit.diff, 1.8 KB (added by jdempster (James Dempster), 10 years ago) |
---|
-
Portfile
old new 1 # $Id : Portfile 96546 2012-08-13 23:05:57Z ryandesign@macports.org$1 # $Id$ 2 2 3 3 PortSystem 1.0 4 4 5 5 name monit 6 version 5. 46 version 5.12.1 7 7 categories sysutils 8 8 platforms darwin freebsd linux netbsd openbsd solaris 9 9 license GPL-3 … … 24 24 homepage http://mmonit.com/monit/ 25 25 master_sites ${homepage}dist/ 26 26 27 checksums rmd160 1f011399d4e04a1d85277ed5ed2ba7750a2e855e\28 sha256 805c6545de2dd7f3d9e6e0c68018b2aadd5fc98b243c8868178f247a6090603827 checksums rmd160 3c8b9f73b27dd1d0d633cc2b8a33b8fe0083937f \ 28 sha256 0ed2489d31313fb9f7b6867352609c8aa416c3c19be3761142356d0a9cfa41c9 29 29 30 depends_build bin:flex:flex bin:bison:bison 30 depends_build bin:flex:flex bin:bison:bison 31 31 depends_lib port:openssl 32 32 33 33 platform freebsd { … … 43 43 } 44 44 45 45 post-destroot { 46 xinstall -m 444 ${worksrcpath}/monitrc ${destroot}${prefix}/etc/monitrc.sample 46 xinstall -d ${destroot}${prefix}/etc/monit.d 47 xinstall -m 640 \ 48 /dev/null \ 49 ${destroot}${prefix}/etc/monit.d/.turd_monit 50 51 xinstall -m 700 ${worksrcpath}/monitrc ${destroot}${prefix}/etc/monitrc 52 reinplace "s|# include /etc/monit.d/|include ${prefix}/etc/monit.d/|" \ 53 ${destroot}${prefix}/etc/monitrc 54 47 55 xinstall -d ${destroot}${prefix}/share/doc/${name} 48 xinstall -m 444 -W ${worksrcpath} C HANGES COPYING README \56 xinstall -m 444 -W ${worksrcpath} CONTRIBUTORS COPYING README \ 49 57 ${destroot}${prefix}/share/doc/${name} 50 58 } 59 60 startupitem.create yes 61 startupitem.executable ${prefix}/bin/monit -I -c ${prefix}/etc/monitrc 62