diff --git a/security/fetch-crl/Portfile b/security/fetch-crl/Portfile
index 96416a7ce5..6af80176fe 100644
a
|
b
|
subport ${name} { |
63 | 63 | |
64 | 64 | # The subport provides a launchd item |
65 | 65 | subport ${name}-launchd { |
| 66 | revision 1 |
66 | 67 | # update descriptions |
67 | 68 | description Creates a launchd entry for fetch-crl utility |
68 | 69 | long_description ${description}. ${long_description} |
… |
… |
subport ${name}-launchd { |
72 | 73 | distfiles {} |
73 | 74 | worksrcdir ${subport} |
74 | 75 | |
| 76 | startupitem.create no |
| 77 | startupitem.type launchd |
75 | 78 | startupitem.name ${name} |
76 | | set plist_label org.macports.${startupitem.name} |
77 | 79 | set plist_macports ${prefix}/etc/${startupitem.location} |
78 | 80 | set plist_system /Library/${startupitem.location} |
79 | 81 | |
… |
… |
subport ${name}-launchd { |
83 | 85 | } |
84 | 86 | |
85 | 87 | configure { |
86 | | reinplace "s|@@LABEL@@|${plist_label}|g" \ |
| 88 | reinplace "s|@@LABEL@@|${startupitem.uniquename}|g" \ |
87 | 89 | ${worksrcpath}/${startupitem.plist} |
88 | 90 | reinplace "s|@@PREFIX@@|${prefix}|g" \ |
89 | 91 | ${worksrcpath}/${startupitem.plist} |
… |
… |
subport ${name}-launchd { |
92 | 94 | build {} |
93 | 95 | |
94 | 96 | destroot { |
95 | | xinstall -d ${destroot}${plist_macports} |
| 97 | xinstall -d ${destroot}${plist_macports}/${startupitem.uniquename} |
96 | 98 | xinstall -d ${destroot}${plist_system} |
97 | 99 | xinstall -m 644 ${worksrcpath}/${startupitem.plist} \ |
98 | | ${destroot}${plist_macports}/ |
99 | | ln -s ${plist_macports}/${startupitem.plist} \ |
100 | | ${destroot}${plist_system}/ |
101 | | } |
102 | | |
103 | | post-destroot { |
104 | | ui_msg "###########################################################" |
105 | | ui_msg "# A startup item has been generated that will aid in " |
106 | | ui_msg "# starting fetch-crl with launchd. It is disabled " |
107 | | ui_msg "# by default. Execute the following command to start it, " |
108 | | ui_msg "# and to cause it to launch at startup: " |
109 | | ui_msg "# " |
110 | | ui_msg "# sudo port load fetch-crl " |
111 | | ui_msg "###########################################################" |
| 100 | ${destroot}${plist_macports}/${startupitem.uniquename} |
| 101 | if {${startupitem.install}} { |
| 102 | ln -s ${plist_macports}/${startupitem.uniquename}/${startupitem.plist} \ |
| 103 | ${destroot}${plist_system} |
| 104 | } else { |
| 105 | ln -s ${plist_macports}/${startupitem.uniquename}/${startupitem.plist} \ |
| 106 | ${destroot}${plist_macports} |
| 107 | } |
112 | 108 | } |
113 | 109 | |
114 | 110 | livecheck.type none |