Answers:
编辑
只是为了更新显示给定端口说明的一般方法,我才知道您可以键入
port notes slocate
返回:
slocate's database should be updated on a regular basis. In
/opt/local/etc/daily.slocate, you'll find some lines to put in
/etc/daily.local to update the database on a daily basis (for example).
If you want to disable the weekly update of the system's built-in locate,
edit the file /etc/weekly.
OLD
一种非常粗糙的方法是直接读取Portfile,然后查看安装后部分。以slocate为例:
port cat slocate | grep ui_msg
返回:
ui_msg "\nslocate's database should be updated on a regular basis. In"
ui_msg "${prefix}/etc/daily.slocate, you'll find some lines to put in"
ui_msg "/etc/daily.local to update the database on a daily basis (for example)."
ui_msg "If you want to disable the weekly update of the system's built-in locate,"
ui_msg "edit the file /etc/weekly.\n"
如您所见,来自的输出port cat
格式不正确,但BUT应该可以为您提供足够的信息。希望这可以帮助!
/opt/local/etc/LaunchDaemons/org.macports.<package>/org.macports.<package>.plist