From owner-freebsd-ports Fri Oct 20 5: 0: 9 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 018AC37B4D7 for ; Fri, 20 Oct 2000 05:00:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA58963; Fri, 20 Oct 2000 05:00:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freebsd.sinica.edu.tw (freebsd.sinica.edu.tw [140.109.13.51]) by hub.freebsd.org (Postfix) with ESMTP id 82C8C37B4D7 for ; Fri, 20 Oct 2000 04:50:33 -0700 (PDT) Received: (from keith@localhost) by freebsd.sinica.edu.tw (8.9.3/8.9.3) id TAA43776; Fri, 20 Oct 2000 19:52:52 +0800 (CST) (envelope-from keith) Message-Id: <200010201152.TAA43776@freebsd.sinica.edu.tw> Date: Fri, 20 Oct 2000 19:52:52 +0800 (CST) From: keith@freebsd.sinica.edu.tw Reply-To: keith@freebsd.sinica.edu.tw To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/22146: New port: chinese/big5fs Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22146 >Category: ports >Synopsis: New port: chinese/big5fs >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 20 05:00:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Jing-Tang Keith Jang >Release: FreeBSD 4.0-20000406-STABLE i386 >Organization: >Environment: Tested under both 4-stable & 5-current. >Description: This port installs two modules, big5cd9660.ko and big5msdos.ko, which let the user read Big5 filenames on Joliet and VFAT filesystems. >How-To-Repeat: >Fix: Please commit, thanks. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # big5fs # big5fs/files # big5fs/files/big5fs.sh # big5fs/pkg-comment # big5fs/pkg-plist # big5fs/Makefile # big5fs/pkg-descr # big5fs/distinfo # echo c - big5fs mkdir -p big5fs > /dev/null 2>&1 echo c - big5fs/files mkdir -p big5fs/files > /dev/null 2>&1 echo x - big5fs/files/big5fs.sh sed 's/^X//' >big5fs/files/big5fs.sh << 'END-of-big5fs/files/big5fs.sh' X#!/bin/sh X Xcase "$1" in Xstart) X if [ -x @@PREFIX@@/modules/big5cd9660.ko ]; then X echo -n 'Big5 cd9660' X kldload /usr/local/modules/big5cd9660.ko X fi X if [ -x @@PREFIX@@/modules/big5msdos.ko ]; then X echo -n 'Big5 msdos' X kldload /usr/local/modules/big5msdos.ko X fi X ;; Xstop) X kldunload -v -n big5cd9660 && echo -n 'Big5 cd9660' X kldunload -v -n big5msdos && echo -n 'Big5 msdos' X ;; X*) X echo "Usage: big5fs.sh {start|stop}" >&2 X exit 1 X ;; Xesac END-of-big5fs/files/big5fs.sh echo x - big5fs/pkg-comment sed 's/^X//' >big5fs/pkg-comment << 'END-of-big5fs/pkg-comment' XReads Big5 filenames on Joliet and VFAT filesystems END-of-big5fs/pkg-comment echo x - big5fs/pkg-plist sed 's/^X//' >big5fs/pkg-plist << 'END-of-big5fs/pkg-plist' Xetc/rc.d/big5fs.sh Xmodules/big5cd9660.ko Xmodules/big5msdos.ko X@unexec rmdir %D/modules 2>/dev/null || true END-of-big5fs/pkg-plist echo x - big5fs/Makefile sed 's/^X//' >big5fs/Makefile << 'END-of-big5fs/Makefile' X# New ports collection makefile for: zh-big5fs X# Date created: Oct 13, 2000 X# Whom: keith@freebsd.sinica.edu.tw X# X# $FreeBSD$ X# X XPORTNAME= big5fs XPORTVERSION= 1.0 XCATEGORIES= chinese XMASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/ X XMAINTAINER= keith@freebsd.sinica.edu.tw X XNO_PACKAGE= "Different versions definitely cause crash" X XSYSDIR= /usr/src/sys XKMODDIR= ${PREFIX}/modules X Xpre-extract: X @if [ ! -d /sys -o ! -d /usr/src/sys ]; then \ X ${ECHO} "****************************************" ; \ X ${ECHO} " You need to extract kernel source tree" ; \ X ${ECHO} " before you build this package..." ; \ X ${ECHO} "****************************************" ; \ X ${FALSE} ; \ X fi X Xdo-extract: X @${MKDIR} ${WRKDIR}/msdos ${WRKDIR}/cd9660 X @${CP} -R ${SYSDIR}/msdosfs/*.[ch] ${WRKDIR}/msdos X @${CP} ${SYSDIR}/modules/msdos/Makefile ${WRKDIR}/msdos/Makefile.orig X @${CP} -R ${SYSDIR}/isofs/cd9660/*.[ch] ${WRKDIR}/cd9660 X @${CP} ${SYSDIR}/modules/cd9660/Makefile ${WRKDIR}/cd9660/Makefile.orig X @(cd ${WRKDIR}; ${TAR} xzf ${DISTDIR}/${DISTFILES} ) X @${SED} -e 's,@@PREFIX@@,${PREFIX},' ${FILESDIR}/big5fs.sh > ${WRKDIR}/big5fs.sh X Xdo-patch: X @${SED} -e "/^\.PATH/d" ${WRKDIR}/msdos/Makefile.orig > ${WRKDIR}/msdos/Makefile X @${SED} -e "/^\.PATH/d" ${WRKDIR}/cd9660/Makefile.orig > ${WRKDIR}/cd9660/Makefile X @(cd ${WRKDIR}/msdos; ${PATCH} < ${WRKDIR}/VFATBig5.diff ) X @(cd ${WRKDIR}/cd9660; ${PATCH} < ${WRKDIR}/JolietBig5.diff ) X Xdo-build: X @(cd ${WRKDIR}/msdos; make all) X @(cd ${WRKDIR}/cd9660; make all) X Xpre-install: X @${MKDIR} ${KMODDIR} X Xdo-install: X @${INSTALL_SCRIPT} ${WRKDIR}/big5fs.sh ${PREFIX}/etc/rc.d X @${INSTALL_SCRIPT} ${WRKDIR}/msdos/msdos.ko ${KMODDIR}/big5msdos.ko X @${INSTALL_SCRIPT} ${WRKDIR}/cd9660/cd9660.ko ${KMODDIR}/big5cd9660.ko X X.include END-of-big5fs/Makefile echo x - big5fs/pkg-descr sed 's/^X//' >big5fs/pkg-descr << 'END-of-big5fs/pkg-descr' XThis port installs two kernel modules, cd9660.ko and Xmsdos.ko, which will let users read Big5 filenames on XJoliet and VFAT filesystems. END-of-big5fs/pkg-descr echo x - big5fs/distinfo sed 's/^X//' >big5fs/distinfo << 'END-of-big5fs/distinfo' XMD5 (big5fs-1.0.tar.gz) = c522016cba22ee77124dd7c3d6e06745 END-of-big5fs/distinfo exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message