diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2000-10-20 15:31:09 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2000-10-20 15:31:09 +0000 |
commit | d13ff660d2f8511c6254f2d98c607336749f2ca9 (patch) | |
tree | 5253a648e7e6d4d506f78c20cf837fed702320ba /chinese/big5fs | |
parent | a89e2fc554b287e788d29b2d8fe7ada6d09f774b (diff) | |
download | ports-d13ff660d2f8511c6254f2d98c607336749f2ca9.tar.gz ports-d13ff660d2f8511c6254f2d98c607336749f2ca9.zip |
Notes
Diffstat (limited to 'chinese/big5fs')
-rw-r--r-- | chinese/big5fs/Makefile | 56 | ||||
-rw-r--r-- | chinese/big5fs/distinfo | 1 | ||||
-rw-r--r-- | chinese/big5fs/files/big5fs.sh | 22 | ||||
-rw-r--r-- | chinese/big5fs/pkg-comment | 1 | ||||
-rw-r--r-- | chinese/big5fs/pkg-descr | 3 | ||||
-rw-r--r-- | chinese/big5fs/pkg-plist | 4 |
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 |