summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2000-10-20 15:31:09 +0000
committerkevlo <kevlo@FreeBSD.org>2000-10-20 15:31:09 +0000
commit85ea42b265a8e28cd195517822635e87b9ac62d2 (patch)
treec8ac365b0f4b032f53ad9690b375b007cc493754
parent208340fe1a6c683034063ca79b8c1e8cbecf58ee (diff)
downloadFreeBSD-ports-85ea42b265a8e28cd195517822635e87b9ac62d2.zip
FreeBSD-ports-85ea42b265a8e28cd195517822635e87b9ac62d2.tar.gz
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>
-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 a786cdb..11f14ed 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 0000000..9f7d2fd
--- /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 0000000..fc37721
--- /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 0000000..07caf23
--- /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 0000000..a620948
--- /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 0000000..8444eaf
--- /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 0000000..1df7fc4
--- /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
OpenPOWER on IntegriCloud