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>
This commit is contained in:
parent
a89e2fc554
commit
d13ff660d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34027
@ -12,6 +12,7 @@
|
||||
SUBDIR += autoconvert
|
||||
SUBDIR += bg5ps
|
||||
SUBDIR += big5con
|
||||
SUBDIR += big5fs
|
||||
SUBDIR += c2t
|
||||
SUBDIR += celvis
|
||||
SUBDIR += chinput
|
||||
|
56
chinese/big5fs/Makefile
Normal file
56
chinese/big5fs/Makefile
Normal file
@ -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>
|
1
chinese/big5fs/distinfo
Normal file
1
chinese/big5fs/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (big5fs-1.0.tar.gz) = c522016cba22ee77124dd7c3d6e06745
|
22
chinese/big5fs/files/big5fs.sh
Normal file
22
chinese/big5fs/files/big5fs.sh
Normal file
@ -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
|
1
chinese/big5fs/pkg-comment
Normal file
1
chinese/big5fs/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Reads Big5 filenames on Joliet and VFAT filesystems
|
3
chinese/big5fs/pkg-descr
Normal file
3
chinese/big5fs/pkg-descr
Normal file
@ -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.
|
4
chinese/big5fs/pkg-plist
Normal file
4
chinese/big5fs/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
etc/rc.d/big5fs.sh
|
||||
modules/big5cd9660.ko
|
||||
modules/big5msdos.ko
|
||||
@unexec rmdir %D/modules 2>/dev/null || true
|
Loading…
Reference in New Issue
Block a user