aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/big5fs
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2000-10-20 23:31:09 +0800
committerkevlo <kevlo@FreeBSD.org>2000-10-20 23:31:09 +0800
commit85ea42b265a8e28cd195517822635e87b9ac62d2 (patch)
treec8ac365b0f4b032f53ad9690b375b007cc493754 /chinese/big5fs
parent208340fe1a6c683034063ca79b8c1e8cbecf58ee (diff)
downloadfreebsd-ports-gnome-85ea42b265a8e28cd195517822635e87b9ac62d2.tar.gz
freebsd-ports-gnome-85ea42b265a8e28cd195517822635e87b9ac62d2.tar.zst
freebsd-ports-gnome-85ea42b265a8e28cd195517822635e87b9ac62d2.zip
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>
Diffstat (limited to 'chinese/big5fs')
-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
6 files changed, 87 insertions, 0 deletions
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