summaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2000-10-20 15:31:09 +0000
committerKevin Lo <kevlo@FreeBSD.org>2000-10-20 15:31:09 +0000
commitd13ff660d2f8511c6254f2d98c607336749f2ca9 (patch)
tree5253a648e7e6d4d506f78c20cf837fed702320ba /chinese
parentUpdate to version 0.50. (diff)
Import big5fs-1.0
big5fs reads Big5 filenames on Joliet and VFAT filesystems. PR: 22146 Submitted by: Jing-Tang Keith Jang <keith@freebsd.sinica.edu.tw>
Notes
Notes: svn path=/head/; revision=34027
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/big5fs/Makefile56
-rw-r--r--chinese/big5fs/distinfo1
-rw-r--r--chinese/big5fs/files/big5fs.sh22
-rw-r--r--chinese/big5fs/pkg-comment1
-rw-r--r--chinese/big5fs/pkg-descr3
-rw-r--r--chinese/big5fs/pkg-plist4
7 files changed, 88 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index a786cdb820de..11f14edc83b8 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -12,6 +12,7 @@
SUBDIR += autoconvert
SUBDIR += bg5ps
SUBDIR += big5con
+ SUBDIR += big5fs
SUBDIR += c2t
SUBDIR += celvis
SUBDIR += chinput
diff --git a/chinese/big5fs/Makefile b/chinese/big5fs/Makefile
new file mode 100644
index 000000000000..9f7d2fdc6fb0
--- /dev/null
+++ b/chinese/big5fs/Makefile
@@ -0,0 +1,56 @@
+# New ports collection makefile for: zh-big5fs
+# Date created: Oct 13, 2000
+# Whom: keith@freebsd.sinica.edu.tw
+#
+# $FreeBSD$
+#
+
+PORTNAME= big5fs
+PORTVERSION= 1.0
+CATEGORIES= chinese
+MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/
+
+MAINTAINER= keith@freebsd.sinica.edu.tw
+
+NO_PACKAGE= "Different versions definitely cause crash"
+
+SYSDIR= /usr/src/sys
+KMODDIR= ${PREFIX}/modules
+
+pre-extract:
+ @if [ ! -d /sys -o ! -d /usr/src/sys ]; then \
+ ${ECHO} "****************************************" ; \
+ ${ECHO} " You need to extract kernel source tree" ; \
+ ${ECHO} " before you build this package..." ; \
+ ${ECHO} "****************************************" ; \
+ ${FALSE} ; \
+ fi
+
+do-extract:
+ @${MKDIR} ${WRKDIR}/msdos ${WRKDIR}/cd9660
+ @${CP} -R ${SYSDIR}/msdosfs/*.[ch] ${WRKDIR}/msdos
+ @${CP} ${SYSDIR}/modules/msdos/Makefile ${WRKDIR}/msdos/Makefile.orig
+ @${CP} -R ${SYSDIR}/isofs/cd9660/*.[ch] ${WRKDIR}/cd9660
+ @${CP} ${SYSDIR}/modules/cd9660/Makefile ${WRKDIR}/cd9660/Makefile.orig
+ @(cd ${WRKDIR}; ${TAR} xzf ${DISTDIR}/${DISTFILES} )
+ @${SED} -e 's,@@PREFIX@@,${PREFIX},' ${FILESDIR}/big5fs.sh > ${WRKDIR}/big5fs.sh
+
+do-patch:
+ @${SED} -e "/^\.PATH/d" ${WRKDIR}/msdos/Makefile.orig > ${WRKDIR}/msdos/Makefile
+ @${SED} -e "/^\.PATH/d" ${WRKDIR}/cd9660/Makefile.orig > ${WRKDIR}/cd9660/Makefile
+ @(cd ${WRKDIR}/msdos; ${PATCH} < ${WRKDIR}/VFATBig5.diff )
+ @(cd ${WRKDIR}/cd9660; ${PATCH} < ${WRKDIR}/JolietBig5.diff )
+
+do-build:
+ @(cd ${WRKDIR}/msdos; make all)
+ @(cd ${WRKDIR}/cd9660; make all)
+
+pre-install:
+ @${MKDIR} ${KMODDIR}
+
+do-install:
+ @${INSTALL_SCRIPT} ${WRKDIR}/big5fs.sh ${PREFIX}/etc/rc.d
+ @${INSTALL_SCRIPT} ${WRKDIR}/msdos/msdos.ko ${KMODDIR}/big5msdos.ko
+ @${INSTALL_SCRIPT} ${WRKDIR}/cd9660/cd9660.ko ${KMODDIR}/big5cd9660.ko
+
+.include <bsd.port.mk>
diff --git a/chinese/big5fs/distinfo b/chinese/big5fs/distinfo
new file mode 100644
index 000000000000..fc377212708c
--- /dev/null
+++ b/chinese/big5fs/distinfo
@@ -0,0 +1 @@
+MD5 (big5fs-1.0.tar.gz) = c522016cba22ee77124dd7c3d6e06745
diff --git a/chinese/big5fs/files/big5fs.sh b/chinese/big5fs/files/big5fs.sh
new file mode 100644
index 000000000000..07caf23afaaa
--- /dev/null
+++ b/chinese/big5fs/files/big5fs.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+case "$1" in
+start)
+ if [ -x @@PREFIX@@/modules/big5cd9660.ko ]; then
+ echo -n 'Big5 cd9660'
+ kldload /usr/local/modules/big5cd9660.ko
+ fi
+ if [ -x @@PREFIX@@/modules/big5msdos.ko ]; then
+ echo -n 'Big5 msdos'
+ kldload /usr/local/modules/big5msdos.ko
+ fi
+ ;;
+stop)
+ kldunload -v -n big5cd9660 && echo -n 'Big5 cd9660'
+ kldunload -v -n big5msdos && echo -n 'Big5 msdos'
+ ;;
+*)
+ echo "Usage: big5fs.sh {start|stop}" >&2
+ exit 1
+ ;;
+esac
diff --git a/chinese/big5fs/pkg-comment b/chinese/big5fs/pkg-comment
new file mode 100644
index 000000000000..a6209486c1db
--- /dev/null
+++ b/chinese/big5fs/pkg-comment
@@ -0,0 +1 @@
+Reads Big5 filenames on Joliet and VFAT filesystems
diff --git a/chinese/big5fs/pkg-descr b/chinese/big5fs/pkg-descr
new file mode 100644
index 000000000000..8444eaf8dba9
--- /dev/null
+++ b/chinese/big5fs/pkg-descr
@@ -0,0 +1,3 @@
+This port installs two kernel modules, cd9660.ko and
+msdos.ko, which will let users read Big5 filenames on
+Joliet and VFAT filesystems.
diff --git a/chinese/big5fs/pkg-plist b/chinese/big5fs/pkg-plist
new file mode 100644
index 000000000000..1df7fc434be6
--- /dev/null
+++ b/chinese/big5fs/pkg-plist
@@ -0,0 +1,4 @@
+etc/rc.d/big5fs.sh
+modules/big5cd9660.ko
+modules/big5msdos.ko
+@unexec rmdir %D/modules 2>/dev/null || true