diff -ru ../logwatch-old/Portfile ../logwatch/Portfile
old
|
new
|
|
4 | 4 | PortSystem 1.0 |
5 | 5 | |
6 | 6 | name logwatch |
| 7 | revision 1 |
7 | 8 | version 7.3.6 |
8 | 9 | distname logwatch-${version} |
9 | 10 | categories security |
… |
… |
|
23 | 24 | checksums md5 937d982006b2a76a83edfcfd2e5a9d7d |
24 | 25 | |
25 | 26 | use_configure no |
26 | | build { } |
27 | | destroot { |
28 | | |
| 27 | build { |
29 | 28 | reinplace s|/usr/share/${name}|${prefix}/share/${name}|g ${worksrcpath}/scripts/logwatch.pl |
30 | 29 | reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/scripts/logwatch.pl |
31 | 30 | reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/conf/logwatch.conf |
32 | 31 | reinplace s|messages|system|g ${worksrcpath}/conf/logfiles/messages.conf |
| 32 | } |
33 | 33 | |
| 34 | destroot.keepdirs ${destroot}${prefix}/var/cache/${name} |
| 35 | destroot { |
34 | 36 | file mkdir ${destroot}${prefix}/etc/${name}/scripts |
35 | 37 | file mkdir ${destroot}${prefix}/etc/${name}/conf/logfiles |
36 | 38 | file mkdir ${destroot}${prefix}/etc/${name}/conf/services |
37 | 39 | file mkdir ${destroot}${prefix}/share/${name}/dist.conf/logfiles |
38 | 40 | file mkdir ${destroot}${prefix}/var/cache/${name} |
39 | | touch ${destroot}${prefix}/var/cache/.turd |
40 | 41 | |
41 | 42 | file copy ${worksrcpath}/conf ${destroot}${prefix}/share/${name}/default.conf |
42 | 43 | file copy ${worksrcpath}/scripts ${destroot}${prefix}/share/${name}/scripts |
… |
… |
|
45 | 46 | ln -s ../share/${name}/scripts/logwatch.pl ${destroot}${prefix}/bin/logwatch |
46 | 47 | |
47 | 48 | # startup item |
48 | | file delete /Library/LaunchDaemons/org.macports.${name}.plist |
49 | 49 | file mkdir ${destroot}${prefix}/etc/LaunchDaemons/${name} |
50 | 50 | file copy files/org.macports.${name}.plist ${destroot}${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist |
51 | 51 | reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist |
52 | 52 | } |
53 | 53 | |
54 | 54 | post-destroot { |
| 55 | file delete /Library/LaunchDaemons/org.macports.${name}.plist |
55 | 56 | ln -s ${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist /Library/LaunchDaemons |
56 | 57 | ui_msg "###########################################################" |
57 | 58 | ui_msg "# A startup item has been generated that will aid in" |
58 | | ui_msg "# starting dnsmasq with launcd. It is disabled" |
| 59 | ui_msg "# starting logwatch with launchd. It is disabled" |
59 | 60 | ui_msg "# by default. Execute the following command to start it," |
60 | 61 | ui_msg "# and to cause it to launch at startup:" |
61 | 62 | ui_msg "#" |
62 | | ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.dnsmasq.plist" |
| 63 | ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.logwatch.plist" |
63 | 64 | ui_msg "###########################################################" |
64 | 65 | } |