aboutsummaryrefslogtreecommitdiffstats
path: root/wspkg-doc/freebsd.txt
blob: 953ebdac6fb6bf51e0923dc6ddeb0b9e9da21706 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
wspkg - FreeBSD 支援:ports 與 pkgng
====================================
217 工作站實驗室 <217ta@csie.ntu.edu.tw>

-------------------------------------------------------------------------------
  +------------------------+
  |  FreeBSD package list  |
  | <list>/out/<list>.list |
  +------------------------+
            | freebsd/freebsd.ports.sh
            | freebsd/freebsd.ports.find
            v
  +-------------------------+
  |   FreeBSD ports list    |
  | <list>/out/<list>.ports +--+ freebsd/freebsd.mk
  +-------------------------+  | freebsd/freebsd.deps.sh
                          +------------------------------+
                          |                              |
+-------------------------+------+                       v
| FreeBSD port Makefile template |             +----------------------------+
|   <list>/<list>.makefile.in    |             |   FreeBSD port Makefile    |
+--------------------------------+             | <list>/out/<list>.makefile |
                                               +----------------------------+
-------------------------------------------------------------------------------

產生 ports 目錄清單
-------------------
由於指定 dependency 時需要指定所需套件的來源 ports 目錄,因此我們需要找到各套件
所在的目錄。freebsd.ports.sh 會幫忙找到系統的 ports tree 及 index file,再執行
freebsd.ports.find 從 index file 產生清單。

產生 meta-port Makefile
-----------------------
freebsd.makefile.sh 會根據 template 填上版本號以及 RUN_DEPENDS 以產生 Makefile。