aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2014-02-27 02:06:54 +0800
committerTing-Wei Lan <lantw44@gmail.com>2014-02-27 02:06:54 +0800
commit4459ea3df5eccaab2d622ae870b255da8ca889f2 (patch)
tree50121f3379a759f54d620da6b972bc1e6a59fcf4
parenta9f5cac5a75250c0737e093c0237386b2734992d (diff)
downloadwspkg-4459ea3df5eccaab2d622ae870b255da8ca889f2.tar
wspkg-4459ea3df5eccaab2d622ae870b255da8ca889f2.tar.gz
wspkg-4459ea3df5eccaab2d622ae870b255da8ca889f2.tar.bz2
wspkg-4459ea3df5eccaab2d622ae870b255da8ca889f2.tar.lz
wspkg-4459ea3df5eccaab2d622ae870b255da8ca889f2.tar.xz
wspkg-4459ea3df5eccaab2d622ae870b255da8ca889f2.tar.zst
wspkg-4459ea3df5eccaab2d622ae870b255da8ca889f2.zip
文件大致完成,現在只差 FreeBSD 支援的文件
-rw-r--r--.gitignore1
-rw-r--r--Makefile4
-rw-r--r--debian.txt29
-rw-r--r--freebsd.txt30
4 files changed, 62 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 1b27799..10847dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
.*.swp
.*.swo
*.out
+*.html
*.list
*.ports
*.control
diff --git a/Makefile b/Makefile
index f7a3b3d..a0b253f 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ all: README.html debian freebsd
DEBIAN_OUTPUT= debian.out/217-meta.deb
DEBIAN_OUTPUT_TMPDIR= debian.out/217-meta
-debian: $(DEBIAN_OUTPUT)
+debian: debian.html $(DEBIAN_OUTPUT)
$(DEBIAN_OUTPUT): debian.control
$(AT_MKDIR)mkdir -p $(DEBIAN_OUTPUT_TMPDIR)/DEBIAN
$(AT_COPY)cp -pf debian.control $(DEBIAN_OUTPUT_TMPDIR)/DEBIAN/control
@@ -30,7 +30,7 @@ debian.control: debian.control.in debian.control.sh debian.list
$(AT_GEN)./debian.control.sh debian.control.in debian.list > "$@" $(RM_IF_FAIL)
FREEBSD_OUTPUT= freebsd.out/217/Makefile
-freebsd: $(FREEBSD_OUTPUT)
+freebsd: freebsd.html $(FREEBSD_OUTPUT)
$(FREEBSD_OUTPUT): freebsd.makefile
$(AT_MKDIR)mkdir -p freebsd.out/217
$(AT_COPY)cp -pf freebsd.makefile freebsd.out/217/Makefile
diff --git a/debian.txt b/debian.txt
new file mode 100644
index 0000000..43ac595
--- /dev/null
+++ b/debian.txt
@@ -0,0 +1,29 @@
+wspkg - Debian 支援:dpkg 與 apt
+================================
+217 工作站實驗室 <217ta@csie.ntu.edu.tw>
+
+-------------------------------------------------------------------------------
+
+ +---------------------+
+ | Debian package list |
+ | debian.list |-+
+ +---------------------+ | debian.control.sh +-------------------+
+ +------------------>>>>| dpkg control file |
++-----------------------+ | | debian.control |
+| dpkg control template |-+ +-------------------+
+| debian.control.in |
++-----------------------+
+
+-------------------------------------------------------------------------------
+
+產生 dpkg control 檔案
+----------------------
+由於 dpkg control 檔案有很多欄位,如果全部用 script 產生,那麼 script 會很亂。
+所以我們改為編寫一個簡單的 template 檔案,即 debian.control.in,再由簡單的
+script 將 template 檔案中的空格,依照 debian.list 中的列表填上,產生真正的
+dpkg control 檔案,即 debian.control。
+
+產生 meta-package
+-----------------
+有了 dpkg control 檔案,只要把適當的目錄結構準備好,執行 dpkg-deb 就能包成
+套件了。這段的規則很簡單,所以直接寫進 Makefile 裡了。
diff --git a/freebsd.txt b/freebsd.txt
new file mode 100644
index 0000000..e23fa3c
--- /dev/null
+++ b/freebsd.txt
@@ -0,0 +1,30 @@
+wspkg - FreeBSD 支援:ports 與 pkgng
+====================================
+217 工作站實驗室 <217ta@csie.ntu.edu.tw>
+
+-------------------------------------------------------------------------------
+ +----------------------+
+ | FreeBSD package list |
+ | freebsd.list |
+ +----------------------+
+ | freebsd.ports.sh
+ | freebsd.ports.find
+ v
+ +---------------------+
+ | FreeBSD ports list |
+ | freebsd.ports |-+
+ +---------------------+ | freebsd.makefile.sh +------------------------+
+ +--------------------->>>>| FreeBSD ports Makefile |
+ | | freebsd.makefile |
++-------------------------+-------+ +------------------------+
+| FreeBSD ports Makefile template |
+| freebsd.makefile.in |
++---------------------------------+
+
+-------------------------------------------------------------------------------
+
+產生 ports 目錄清單
+-------------------
+
+產生 meta-ports Makefile
+------------------------