1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-01 10:59:55 +00:00

ko-mkisofs, with Korean charset conversion support, activated.

This commit is contained in:
CHOI Junho 2001-03-23 06:54:07 +00:00
parent 40b14bc2c0
commit ef3502c497
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40250
13 changed files with 287 additions and 0 deletions

View File

@ -49,6 +49,7 @@
SUBDIR += linuxdoc-sgml
SUBDIR += linux_locale
SUBDIR += mizifont
SUBDIR += mkisofs
SUBDIR += mule-freewnn
SUBDIR += munhwafonts-cid
SUBDIR += netscape3

47
korean/mkisofs/Makefile Normal file
View File

@ -0,0 +1,47 @@
# New ports collection makefile for: mkisofs
# Date created: 23 Mar 2001
# Whom: cjh
#
# $FreeBSD$
#
PORTNAME= mkisofs
PORTVERSION= 1.13
CATEGORIES= korean sysutils
MASTER_SITES= ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/mkisofs/ \
ftp://ftp.gwdg.de/pub/linux/misc/cdrecord/mkisofs/ \
ftp://ftp.cs.tu-berlin.de/pub/misc/cdrecord/mkisofs/
PATCH_SITES= ftp://ftp.kr.FreeBSD.org/pub/FreeBSD-kr/distfiles/
PATCHFILES= mkisofs-1.13-cp949.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= cjh@FreeBSD.org
MAN8= apple_driver.8 isoinfo.8 mkhybrid.8 mkisofs.8
USE_GMAKE= yes
MAKE_ENV= COPTX="-DBSD_SCSI_SENSE_BUG"
.if ${MACHINE_ARCH} == "alpha"
post-extract:
${LN} -s ${WRKSRC}/RULES/i386-freebsd-cc.rul \
${WRKSRC}/RULES/alpha-freebsd-cc.rul
.endif
post-build:
@(cd ${WRKSRC}/mkisofs; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} apple_driver)
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/OBJ/${ARCH}-freebsd-cc/mkisofs ${PREFIX}/bin
@${LN} ${PREFIX}/bin/mkisofs ${PREFIX}/bin/mkhybrid
@${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/apple_driver ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/diag/OBJ/${ARCH}-freebsd-cc/devdump ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/diag/OBJ/${ARCH}-freebsd-cc/isodump ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/diag/OBJ/${ARCH}-freebsd-cc/isoinfo ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/diag/OBJ/${ARCH}-freebsd-cc/isovfy ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/mkisofs/mkisofs.8 ${PREFIX}/man/man8
@${INSTALL_MAN} ${WRKSRC}/mkisofs/mkhybrid.8 ${PREFIX}/man/man8
@${INSTALL_MAN} ${WRKSRC}/mkisofs/apple_driver.8 ${PREFIX}/man/man8
@${INSTALL_MAN} ${WRKSRC}/mkisofs/diag/isoinfo.8 ${PREFIX}/man/man8
.include <bsd.port.mk>

2
korean/mkisofs/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (mkisofs-1.13.tar.gz) = 8d802d9f5892c214562c6af71e6a5714
MD5 (mkisofs-1.13-cp949.diff.gz) = f2b05d7fbfa60506016ec9af8feb6857

View File

@ -0,0 +1,11 @@
--- include/schily.h.orig Mon Aug 30 16:50:46 1999
+++ include/schily.h Sat Sep 18 17:25:57 1999
@@ -34,7 +34,7 @@
#define _SCHILY_H
#ifndef _STANDARD_H
-#include <standard.h.h>
+#include <standard.h>
#endif
#if defined(_SIZE_T) || defined(_T_SIZE_) || defined(_T_SIZE) || \

View File

@ -0,0 +1,31 @@
--- RULES/i386-freebsd-cc.rul.orig Sun Aug 29 16:09:56 1999
+++ RULES/i386-freebsd-cc.rul Wed Sep 22 13:21:08 1999
@@ -24,7 +24,8 @@
###########################################################################
CPPFLAGS= $(CPPOPTS) $(CPPOPTX)
-CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(COPTX)
+XCFLAGS:= $(CFLAGS)
+CFLAGS= $(COPTS) $(CWARNOPTS) $(XCFLAGS) $(COPTX)
CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
COPTS=
@@ -57,14 +58,13 @@
FLOAT_OPTIONS=
-CC= @echo " ==> COMPILING \"$@\""; gcc
-LDCC= @echo " ==> LINKING \"$@\""; gcc
-DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc
-RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib
+LDCC= $(CC)
+DYNLD= $(CC)
+RANLIB= ranlib
ARFLAGS= cr
LORDER= lorder
TSORT= tsort
RMDEP= :
-MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
+MKDEP= $(CC) -M
MKDEP_OUT=

View File

@ -0,0 +1,41 @@
--- lib/cvt.c.orig Wed Sep 8 15:03:20 1999
+++ lib/cvt.c Sun Feb 25 10:06:50 2001
@@ -31,7 +31,7 @@
#include <standard.h>
#ifdef HAVE_DTOA /* 4.4BSD floating point implementation */
-extern char *__dtoa __PR((double value, int mode, int ndigit, int *decpt, int *sign, char **ep));
+extern char *__dtoa __PR((double value, int mode, int ndigit, int *decpt, int *sign, char **ep, char **resultp));
#endif
#ifndef HAVE_ECVT
@@ -57,7 +57,13 @@
static char *buf;
char *bufend;
char *ep;
- char *bp = __dtoa(value, 2, ndigit, decpt, sign, &ep);
+ char *bp;
+ static char *dtoaresult = NULL;
+
+ free(dtoaresult);
+ dtoaresult = NULL;
+
+ bp = __dtoa(value, 2, ndigit, decpt, sign, &ep, &dtoaresult);
if (value == 0.0) {
/*
@@ -102,7 +108,13 @@
static char *buf;
char *bufend;
char *ep;
- char *bp = __dtoa(value, 3, ndigit, decpt, sign, &ep);
+ char *bp;
+ static char *dtoaresult = NULL;
+
+ free(dtoaresult);
+ dtoaresult = NULL;
+
+ bp = __dtoa(value, 3, ndigit, decpt, sign, &ep, &dtoaresult);
if (value == 0.0) {
/*

View File

@ -0,0 +1,13 @@
--- mkisofs/tree.c.orig Thu Apr 27 11:44:57 2000
+++ mkisofs/tree.c Sat Apr 29 11:34:23 2000
@@ -538,8 +538,8 @@
table->de_flags |= INHIBIT_JOLIET_ENTRY;
/* table->name = strdup("<translation table>");*/
table->name = strdup(trans_tbl);
- table->table = (char *) e_malloc(ISO_ROUND_UP(tablesize));
- memset(table->table, 0, ISO_ROUND_UP(tablesize));
+ table->table = (char *) e_malloc(ISO_ROUND_UP(tablesize+1));
+ memset(table->table, 0, ISO_ROUND_UP(tablesize+1));
iso9660_file_length(trans_tbl, table, 0);
if (use_RockRidge) {

View File

@ -0,0 +1,42 @@
--- mkisofs/modes.c.orig Sun May 7 14:49:37 2000
+++ mkisofs/modes.c Thu Aug 17 21:02:57 2000
@@ -58,7 +58,7 @@
int hdlen;
int len = 1; /* Nach SCSI Norm */
int try = 0;
- struct scsi_mode_page_header *mp;
+ struct scg_scsi_mode_page_header *mp;
again:
fillbytes((caddr_t)mode, sizeof(mode), '\0');
@@ -77,7 +77,7 @@
scgp->silent--;
return (FALSE);
} else {
- len = ((struct scsi_mode_header *)mode)->sense_data_len + 1;
+ len = ((struct scg_scsi_mode_header *)mode)->sense_data_len + 1;
}
if (mode_sense(scgp, mode, len, page, 0) < 0) { /* Page n current */
scgp->silent--;
@@ -87,9 +87,9 @@
if (scgp->verbose)
scsiprbytes("Mode Sense Data", mode, len - scsigetresid(scgp));
- hdlen = sizeof(struct scsi_mode_header) +
- ((struct scsi_mode_header *)mode)->blockdesc_len;
- mp = (struct scsi_mode_page_header *)(mode + hdlen);
+ hdlen = sizeof(struct scg_scsi_mode_header) +
+ ((struct scg_scsi_mode_header *)mode)->blockdesc_len;
+ mp = (struct scg_scsi_mode_page_header *)(mode + hdlen);
if (scgp->verbose)
scsiprbytes("Mode Page Data", (u_char *)mp, mp->p_len+2);
@@ -223,7 +223,7 @@
((struct scsi_modesel_header *)modep)->sense_data_len = 0;
((struct scsi_modesel_header *)modep)->res2 = 0;
- i = ((struct scsi_mode_header *)modep)->blockdesc_len;
+ i = ((struct scg_scsi_mode_header *)modep)->blockdesc_len;
if (i > 0) {
i_to_3_byte(
((struct scsi_mode_data *)modep)->blockdesc.nlblock,

View File

@ -0,0 +1,47 @@
--- libscg/scg/scsireg.h.orig Sun May 28 23:31:20 2000
+++ libscg/scg/scsireg.h Thu Aug 17 20:31:45 2000
@@ -170,7 +170,7 @@
#if defined(_BIT_FIELDS_LTOH) /* Intel byteorder */
-struct scsi_mode_header {
+struct scg_scsi_mode_header {
Ucbit sense_data_len : 8;
u_char medium_type;
Ucbit res2 : 4;
@@ -182,7 +182,7 @@
#else /* Motorola byteorder */
-struct scsi_mode_header {
+struct scg_scsi_mode_header {
Ucbit sense_data_len : 8;
u_char medium_type;
Ucbit write_prot : 1;
@@ -244,7 +244,7 @@
#if defined(_BIT_FIELDS_LTOH) /* Intel byteorder */
-struct scsi_mode_page_header {
+struct scg_scsi_mode_page_header {
Ucbit p_code : 6;
Ucbit res : 1;
Ucbit parsave : 1;
@@ -262,7 +262,7 @@
#else /* Motorola byteorder */
-struct scsi_mode_page_header {
+struct scg_scsi_mode_page_header {
Ucbit parsave : 1;
Ucbit res : 1;
Ucbit p_code : 6;
@@ -988,7 +988,7 @@
struct scsi_mode_data {
- struct scsi_mode_header header;
+ struct scg_scsi_mode_header header;
struct scsi_mode_blockdesc blockdesc;
union pagex {
struct acb_mode_data acb;

View File

@ -0,0 +1,33 @@
--- mkisofs/scsi_cdr.c.orig Sun Jul 2 23:11:23 2000
+++ mkisofs/scsi_cdr.c Thu Aug 17 21:02:04 2000
@@ -1791,7 +1791,7 @@
int secsize;
{
struct scsi_mode_data md;
- int count = sizeof(struct scsi_mode_header) +
+ int count = sizeof(struct scg_scsi_mode_header) +
sizeof(struct scsi_mode_blockdesc);
(void)test_unit_ready(scgp); /* clear any error situation */
@@ -2462,8 +2462,8 @@
return (NULL);
mp = (struct cd_mode_page_2A *)
- (mode + sizeof(struct scsi_mode_header) +
- ((struct scsi_mode_header *)mode)->blockdesc_len);
+ (mode + sizeof(struct scg_scsi_mode_header) +
+ ((struct scg_scsi_mode_header *)mode)->blockdesc_len);
/*
* Do some heuristics against pre SCSI-3/mmc VU page 2A
@@ -2481,8 +2481,8 @@
if (val != 0 && val < 176)
return (NULL);
- len -= sizeof(struct scsi_mode_header) +
- ((struct scsi_mode_header *)mode)->blockdesc_len;
+ len -= sizeof(struct scg_scsi_mode_header) +
+ ((struct scg_scsi_mode_header *)mode)->blockdesc_len;
if (modep)
mp2 = (struct cd_mode_page_2A *)modep;
else

View File

@ -0,0 +1 @@
Create iso9660/Rock Ridge/Joliet filesystems supporting Korean

11
korean/mkisofs/pkg-descr Normal file
View File

@ -0,0 +1,11 @@
mkisofs is effectively a pre-mastering program to generate the iso9660
filesystem - it takes a snapshot of a given directory tree, and generates
a binary image which will correspond to an iso9660 filesystem when written
to a block device.
This patched version supports CP949/Unicode conversion.
--
CHOI Junho <cjh@FreeBSD.org>
WWW: http://natural.chonnam.ac.kr/linux/mkisofs/

7
korean/mkisofs/pkg-plist Normal file
View File

@ -0,0 +1,7 @@
bin/apple_driver
bin/devdump
bin/isodump
bin/isoinfo
bin/isovfy
bin/mkhybrid
bin/mkisofs