I'm packing the Cherokee Web Server, a very very fast webserver with a nice web-based GUI for configuration written by the spanish hacker Alvaro Lopez Herrera and available from http://www.cherokee-project.com.
我正在打包切诺基Web服务器,这是一个非常快速的网络服务器,有一个很好的基于网络的GUI,用于配置由西班牙黑客Alvaro Lopez Herrera编写,可从http://www.cherokee-project.com获得。
So far, I've managed to create a .pkg installer using Apple's PackageMaker.app that comes with Xcode but i'm installing everything under /opt/cherokee.
到目前为止,我已经设法使用Apple的PackageMaker.app创建了一个.pkg安装程序,它随Xcode一起提供,但我在/ opt / cherokee下安装了所有内容。
I guess I'd like to have the binaries go to a dir that is already in the path and the same for the manpages and other stuff.
我想我想让二进制文件转到已经在路径中的目录,并且对于联机帮助页和其他内容也是如此。
I looks like installing everything with prefix=/usr could work nicely, except for the config files that should go to /etc/cherokee and the document root with could go to /var/www but i'm not sure.
我看起来像使用prefix = / usr安装所有东西都可以很好地工作,除了应该去/ etc / cherokee的配置文件和文件根目录可以去/ var / www但我不确定。
Would that work or should I use some directory structure under /Library? like /Library/Cherokee/VERSION/ ???
这会工作还是我应该在/ Library下使用一些目录结构?喜欢/ Library / Cherokee / VERSION / ???
Apple's bundled Apache seems to be instaling with prefix=/usr but config files in /etc/apache2 and CGIs and the manual to /Library/WebServer with the document root in /Library/WebServer/Documents.
Apple捆绑的Apache似乎使用prefix = / usr进行安装,但在/ etc / apache2和CGIs中配置文件,将手册安装到/ Library / WebServer,文件根目录在/ Library / WebServer / Documents中。
Maybe my docroot should be /Library/Cherokee/Documents or something like that...
也许我的docroot应该是/ Library / Cherokee / Documents或类似的......
For reference, Cherokee's default layout is like this: (only dirs)
作为参考,切诺基的默认布局是这样的:(只有dirs)
Thanks for the help in advance! :)
我在这里先向您的帮助表示感谢! :)
1 个解决方案
#1
Do not install it directly in /usr
. That's Apple's domain. Though /opt
might be okay, it will not be in the default path and is not commonly used as a default installation location for third-party Unix software in Mac OS X.
不要直接在/ usr中安装它。这是Apple的域名。虽然/ opt可能没问题,但它不会在默认路径中,并且通常不会用作Mac OS X中第三方Unix软件的默认安装位置。
My advice is to install everything under /usr/local
. Apple will not touch this area (e.g., during system updates, etc.), /usr/local/bin
should be in the default path for users, and I have observed many other Mac OS X server software packages using this location.
我的建议是在/ usr / local下安装所有东西。 Apple不会触及此区域(例如,在系统更新期间等),/ usr / local / bin应该在用户的默认路径中,并且我已经观察到使用此位置的许多其他Mac OS X服务器软件包。
Most Mac OS X packages I've used (and most software I've built from source on Mac OS X) will create a /usr/local/whatever/...
containing directory, however. So, for example, all of MySQL would be under /usr/local/mysql/...
That means the MySQL binaries are in /usr/local/mysql/bin/...
which is not in the default path for users. But I think the improved isolation of that extra level of directory structure is worth this sacrifice. (Another option is to install everything under /usr/local/whatever/...
but then add symlinks to your most important executable(s) under /usr/local/bin
)
我使用的大多数Mac OS X软件包(以及我在Mac OS X上从源代码构建的大多数软件)都会创建一个/ usr / local / whatever / ...包含目录。因此,例如,所有MySQL都在/ usr / local / mysql / ...这意味着MySQL二进制文件位于/ usr / local / mysql / bin / ...中,这不在用户的默认路径中。但我认为,更高级别的目录结构的改进隔离是值得的。 (另一种选择是在/ usr / local / whatever / ...下安装所有内容,但在符号/ usr / local / bin下添加符号链接到最重要的可执行文件)
#1
Do not install it directly in /usr
. That's Apple's domain. Though /opt
might be okay, it will not be in the default path and is not commonly used as a default installation location for third-party Unix software in Mac OS X.
不要直接在/ usr中安装它。这是Apple的域名。虽然/ opt可能没问题,但它不会在默认路径中,并且通常不会用作Mac OS X中第三方Unix软件的默认安装位置。
My advice is to install everything under /usr/local
. Apple will not touch this area (e.g., during system updates, etc.), /usr/local/bin
should be in the default path for users, and I have observed many other Mac OS X server software packages using this location.
我的建议是在/ usr / local下安装所有东西。 Apple不会触及此区域(例如,在系统更新期间等),/ usr / local / bin应该在用户的默认路径中,并且我已经观察到使用此位置的许多其他Mac OS X服务器软件包。
Most Mac OS X packages I've used (and most software I've built from source on Mac OS X) will create a /usr/local/whatever/...
containing directory, however. So, for example, all of MySQL would be under /usr/local/mysql/...
That means the MySQL binaries are in /usr/local/mysql/bin/...
which is not in the default path for users. But I think the improved isolation of that extra level of directory structure is worth this sacrifice. (Another option is to install everything under /usr/local/whatever/...
but then add symlinks to your most important executable(s) under /usr/local/bin
)
我使用的大多数Mac OS X软件包(以及我在Mac OS X上从源代码构建的大多数软件)都会创建一个/ usr / local / whatever / ...包含目录。因此,例如,所有MySQL都在/ usr / local / mysql / ...这意味着MySQL二进制文件位于/ usr / local / mysql / bin / ...中,这不在用户的默认路径中。但我认为,更高级别的目录结构的改进隔离是值得的。 (另一种选择是在/ usr / local / whatever / ...下安装所有内容,但在符号/ usr / local / bin下添加符号链接到最重要的可执行文件)