Add another kernel module: big5ntfs.ko
This kernel module lets users read BIG5 filenames on an NTFS. The author is <huangant.bbs@bbs.cs.ntou.edu.tw>. The original patch is located at: http://www.cis.nctu.edu.tw/~gis89501/bsd/ntfs/chinese_ntfs-4.3b2-ro.patch It is slightly modified to accomodate port building. It was tested on 4.3-BETA with Windows 2000 by the author, and 5.0-CURRENT by me (also with 2000).
This commit is contained in:
parent
21dfb27757
commit
e3e7c12ba9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40493
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= big5fs
|
||||
PORTVERSION= 1.0
|
||||
PORTVERSION= 2.0
|
||||
CATEGORIES= chinese
|
||||
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/
|
||||
|
||||
@ -27,23 +27,28 @@ pre-extract:
|
||||
fi
|
||||
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKDIR}/msdos ${WRKDIR}/cd9660
|
||||
@${MKDIR} ${WRKDIR}/msdos ${WRKDIR}/cd9660 ${WRKDIR}/ntfs
|
||||
@${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
|
||||
@${CP} -R ${SYSDIR}/ntfs/*.[ch] ${WRKDIR}/ntfs
|
||||
@${CP} ${SYSDIR}/modules/ntfs/Makefile ${WRKDIR}/ntfs/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 )
|
||||
@${SED} -e "/^\.PATH/d" ${WRKDIR}/ntfs/Makefile.orig > ${WRKDIR}/ntfs/Makefile
|
||||
@(cd ${WRKDIR}/msdos; ${PATCH} --quiet < ${WRKDIR}/msdos_big5.diff )
|
||||
@(cd ${WRKDIR}/cd9660; ${PATCH} --quiet < ${WRKDIR}/cd9660_big5.diff )
|
||||
@(cd ${WRKDIR}/ntfs; ${PATCH} --quiet < ${WRKDIR}/ntfs_big5.diff )
|
||||
|
||||
do-build:
|
||||
@(cd ${WRKDIR}/msdos; make all)
|
||||
@(cd ${WRKDIR}/cd9660; make all)
|
||||
@(cd ${WRKDIR}/ntfs; make all)
|
||||
|
||||
pre-install:
|
||||
@${MKDIR} ${KMODDIR}
|
||||
@ -52,5 +57,6 @@ 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
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/ntfs/ntfs.ko ${KMODDIR}/big5ntfs.ko
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (big5fs-1.0.tar.gz) = c522016cba22ee77124dd7c3d6e06745
|
||||
MD5 (big5fs-2.0.tar.gz) = eee4d333979eaa3aa279123ec709867d
|
||||
|
@ -10,10 +10,15 @@ start)
|
||||
echo -n ' Big5-msdos'
|
||||
kldload /usr/local/modules/big5msdos.ko
|
||||
fi
|
||||
if [ -x @@PREFIX@@/modules/big5ntfs.ko ]; then
|
||||
echo -n ' Big5 ntfs'
|
||||
kldload /usr/local/modules/big5ntfs.ko
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
kldunload -v -n big5cd9660 && echo -n ' Big5-cd9660'
|
||||
kldunload -v -n big5msdos && echo -n ' Big5-msdos'
|
||||
kldunload -v -n big5ntfs && echo -n ' Big5-ntfs'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: big5fs.sh {start|stop}" >&2
|
||||
|
@ -1 +1 @@
|
||||
Reads Big5 filenames on Joliet and VFAT filesystems
|
||||
Reads Big5 filenames on Joliet, VFAT and NTFS filesystems
|
||||
|
@ -1,3 +1,5 @@
|
||||
This port installs two kernel modules, cd9660.ko and
|
||||
msdos.ko, which will let users read Big5 filenames on
|
||||
Joliet and VFAT filesystems.
|
||||
This port installs three kernel modules, big5cd9660.ko, big5msdos.ko and
|
||||
big5ntfs.ko, which will let users read Big5 filenames on Joliet, VFAT,
|
||||
and NTFS filesystems, respectively.
|
||||
|
||||
The NTFS version is contributed by: huangant.bbs@bbs.cs.ntou.edu.tw
|
||||
|
@ -1,4 +1,5 @@
|
||||
etc/rc.d/big5fs.sh
|
||||
modules/big5cd9660.ko
|
||||
modules/big5msdos.ko
|
||||
modules/big5ntfs.ko
|
||||
@unexec rmdir %D/modules 2>/dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user