diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-05-24 16:21:33 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-05-24 16:21:33 +0000 |
commit | 00c0e9e94e8067058747a621c0d2275d5adaec83 (patch) | |
tree | 7bed8c4f7cd9ce4aa87351bdc07831d4fd5b9c14 | |
parent | o Update to 0.90pre3 (diff) |
add zh-gbfs 1.0
Reads GB2312 filenames on Joliet and VFAT filesystems
PR: 38513
Submitted by: Statue <statue@softwareliberty.org>
Notes
Notes:
svn path=/head/; revision=59908
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/gbfs/Makefile | 78 | ||||
-rw-r--r-- | chinese/gbfs/distinfo | 1 | ||||
-rw-r--r-- | chinese/gbfs/files/gbfs.sh | 33 | ||||
-rw-r--r-- | chinese/gbfs/pkg-comment | 1 | ||||
-rw-r--r-- | chinese/gbfs/pkg-descr | 5 | ||||
-rw-r--r-- | chinese/gbfs/pkg-plist | 4 |
7 files changed, 123 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index 67abbcb79025..de7f6c421755 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -36,6 +36,7 @@ SUBDIR += fortunetw SUBDIR += gb2jis SUBDIR += gb2ps + SUBDIR += gbfs SUBDIR += gbscript SUBDIR += ghostscript6 SUBDIR += gnumeric diff --git a/chinese/gbfs/Makefile b/chinese/gbfs/Makefile new file mode 100644 index 000000000000..d3d43cc6783c --- /dev/null +++ b/chinese/gbfs/Makefile @@ -0,0 +1,78 @@ +# New ports collection makefile for: zh-gbfs +# Date created: Oct 13, 2000 +# Whom: statue@freebsd.sinica.edu.tw +# +# $FreeBSD$ +# + +PORTNAME= gbfs +PORTVERSION= 1.0 +CATEGORIES= chinese +MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/gbfs/ \ + ftp://ftp.gnuchina.org/incoming/zhBSD/ + +MAINTAINER= statue@freebsd.sinica.edu.tw + +NO_PACKAGE= "Different versions definitely cause crash" + +SYSDIR= /usr/src/sys +KMODDIR= ${PREFIX}/modules +PLIST_SUB= MSDOSFSKO=${MSDOSFSKO} + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} > 500027 +MSDOSFSDIR= ${SYSDIR}/fs/msdosfs +MSDOSFSKO= msdosfs.ko +MSDOSFSKODIR= ${SYSDIR}/modules/msdosfs +.elif ${OSVERSION} > 500018 && ${OSVERSION} < 500027 +MSDOSFSDIR= ${SYSDIR}/fs/msdosfs +MSDOSFSKO= msdosfs.ko +MSDOSFSKODIR= ${SYSDIR}/modules/msdosfs +.elif ${OSVERSION} <= 500018 && ${OSVERSION} < 440001 +MSDOSFSDIR= ${SYSDIR}/msdosfs +MSDOSFSKO= msdos.ko +MSDOSFSKODIR= ${SYSDIR}/modules/msdos +.else +MSDOSFSDIR= ${SYSDIR}/msdosfs +MSDOSFSKO= msdos.ko +MSDOSFSKODIR= ${SYSDIR}/modules/msdos +.endif + +pre-extract: + @if [ ! -d /sys -o ! -d /usr/src/sys ]; then \ + ${ECHO_CMD} "****************************************" ; \ + ${ECHO_CMD} " You need to extract kernel source tree" ; \ + ${ECHO_CMD} " before you build this package..." ; \ + ${ECHO_CMD} "****************************************" ; \ + ${FALSE} ; \ + fi + +do-extract: + @${MKDIR} ${WRKDIR}/msdos ${WRKDIR}/cd9660 + @${CP} -R ${MSDOSFSDIR}/*.[ch] ${WRKDIR}/msdos + @${CP} ${MSDOSFSKODIR}/Makefile ${WRKDIR}/msdos/Makefile.ori + @${CP} -R ${SYSDIR}/isofs/cd9660/*.[ch] ${WRKDIR}/cd9660 + @${CP} ${SYSDIR}/modules/cd9660/Makefile ${WRKDIR}/cd9660/Makefile.ori + @(cd ${WRKDIR}; ${TAR} xzf ${DISTDIR}/${DISTFILES} ) + @${SED} -e 's,@@PREFIX@@,${PREFIX},' ${FILESDIR}/gbfs.sh > ${WRKDIR}/gbfs.sh + +do-patch: + (cd ${WRKDIR}/msdos; ${PATCH} --quiet < ${WRKDIR}/msdosfs.diff ) + @${SED} -e "/^\.PATH/d" ${WRKDIR}/msdos/Makefile.ori > ${WRKDIR}/msdos/Makefile + (cd ${WRKDIR}/cd9660; ${PATCH} --quiet < ${WRKDIR}/cd9660.diff ) + @${SED} -e "/^\.PATH/d" ${WRKDIR}/cd9660/Makefile.ori > ${WRKDIR}/cd9660/Makefile + +do-build: + @(cd ${WRKDIR}/msdos; make all) + @(cd ${WRKDIR}/cd9660; make all) + +pre-install: + @${MKDIR} ${KMODDIR} + +do-install: + @${INSTALL_SCRIPT} ${WRKDIR}/gbfs.sh ${PREFIX}/etc/rc.d + @${INSTALL_SCRIPT} ${WRKDIR}/msdos/${MSDOSFSKO} ${KMODDIR}/${MSDOSFSKO} + @${INSTALL_SCRIPT} ${WRKDIR}/cd9660/cd9660.ko ${KMODDIR}/cd9660.ko + +.include <bsd.port.post.mk> diff --git a/chinese/gbfs/distinfo b/chinese/gbfs/distinfo new file mode 100644 index 000000000000..aac1d7efb27f --- /dev/null +++ b/chinese/gbfs/distinfo @@ -0,0 +1 @@ +MD5 (gbfs-1.0.tar.gz) = 21c261a7158b0a82e2bdf3d8e3b37d09 diff --git a/chinese/gbfs/files/gbfs.sh b/chinese/gbfs/files/gbfs.sh new file mode 100644 index 000000000000..c03bc56ac5a2 --- /dev/null +++ b/chinese/gbfs/files/gbfs.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +case "$1" in +start) + if [ -x @@PREFIX@@/modules/cd9660.ko ]; then + echo -n ' GB-cd9660' + kldload /usr/local/modules/cd9660.ko + fi + if [ -x @@PREFIX@@/modules/msdos.ko ]; then + echo -n ' GB-msdos' + kldload /usr/local/modules/msdos.ko + fi + # msdosfs.ko instead of msdos.ko after FreeBSD 5.0-CURRENT + if [ -x @@PREFIX@@/modules/msdosfs.ko ]; then + echo -n ' GB-msdosfs' + kldload /usr/local/modules/msdosfs.ko + fi + if [ -x @@PREFIX@@/modules/ntfs.ko ]; then + echo -n ' GB-ntfs' + kldload /usr/local/modules/ntfs.ko + fi + ;; +stop) + kldunload -v -n cd9660 && echo -n ' GB-cd9660' + kldunload -v -n msdos && echo -n ' GB-msdos' + kldunload -v -n msdosfs && echo -n ' GB-msdosfs' + kldunload -v -n ntfs && echo -n ' GB-ntfs' + ;; +*) + echo "Usage: big5fs.sh {start|stop}" >&2 + exit 1 + ;; +esac diff --git a/chinese/gbfs/pkg-comment b/chinese/gbfs/pkg-comment new file mode 100644 index 000000000000..34c55f85281a --- /dev/null +++ b/chinese/gbfs/pkg-comment @@ -0,0 +1 @@ +Reads GB2312 filenames on Joliet and VFAT filesystems diff --git a/chinese/gbfs/pkg-descr b/chinese/gbfs/pkg-descr new file mode 100644 index 000000000000..f1a5ab08f9ab --- /dev/null +++ b/chinese/gbfs/pkg-descr @@ -0,0 +1,5 @@ +This port installs three kernel modules, cd9660.ko, msdos.ko and +ntfs.ko, which will let users read GB2312 filenames on Joliet and VFAT +filesystems, respectively. + +The Joliet, VFAT version is contributed by: cjacker@263.net diff --git a/chinese/gbfs/pkg-plist b/chinese/gbfs/pkg-plist new file mode 100644 index 000000000000..797b9b91ff64 --- /dev/null +++ b/chinese/gbfs/pkg-plist @@ -0,0 +1,4 @@ +etc/rc.d/gbfs.sh +modules/cd9660.ko +modules/%%MSDOSFSKO%% +@unexec rmdir %D/modules 2>/dev/null || true |