Mac OS X 软件包创建与服务器使用指南
软件包安装与查看
安装软件包后,可通过pkgutil --pkgs命令查看,安装的包会显示为com.oreilly.hellow.helloworld.stage.pkg。使用如下命令可查看所有安装的文件:
$ pkgutil --files com.oreilly.hellow.helloworld.stage.pkg usr/local/. usr/local/bin usr/local/bin/hellow usr/local/share usr/local/share/man usr/local/share/man/man1 usr/local/share/man/man1/hellow.1创建 Fink 软件包
Fink 软件包是可通过 Fink 包管理系统安装在用户计算机上的移植 Unix 软件应用或库。创建 Fink 软件包的步骤如下:
1.创建并发布 Tarball
- 以hellow - 1.0程序为例,使用如下Makefile:
all: cc -o hellow hellow.c- 创建名为 `hellow - 1.0.tar.gz` 的 tarball,包含以下内容