summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1997-10-29 11:45:07 +0000
committeragc <agc@pkgsrc.org>1997-10-29 11:45:07 +0000
commitfdc8f17781bfc10cecc9c08b2b28ebcf72ef0012 (patch)
treec2a69501a81751fa92ded0d6737f3b9aa483b51b /sysutils
parent7fc68cb514b16fd26073f9d94970d2d8ae14053b (diff)
downloadpkgsrc-fdc8f17781bfc10cecc9c08b2b28ebcf72ef0012.tar.gz
Initial import of mkisofs from FreeBSD ports collection into
NetBSD package system.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/mkisofs/Makefile17
-rw-r--r--sysutils/mkisofs/files/md51
-rw-r--r--sysutils/mkisofs/patches/patch-aa17
-rw-r--r--sysutils/mkisofs/patches/patch-ab38
-rw-r--r--sysutils/mkisofs/patches/patch-ac30
-rw-r--r--sysutils/mkisofs/patches/patch-ad21
-rw-r--r--sysutils/mkisofs/pkg/COMMENT1
-rw-r--r--sysutils/mkisofs/pkg/DESCR4
-rw-r--r--sysutils/mkisofs/pkg/PLIST2
9 files changed, 131 insertions, 0 deletions
diff --git a/sysutils/mkisofs/Makefile b/sysutils/mkisofs/Makefile
new file mode 100644
index 00000000000..39f41458dbd
--- /dev/null
+++ b/sysutils/mkisofs/Makefile
@@ -0,0 +1,17 @@
+# New ports collection makefile for: mkisofs
+# Version required: 1.10
+# Date created: 07 Aug 1996
+# Whom: jkh
+#
+# FreeBSD Id: Makefile,v 1.5 1997/04/28 11:30:44 joerg Exp
+#
+
+DISTNAME= mkisofs-1.10
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.cdrom.com/pub/linux/tsx-11/packages/mkisofs/
+
+GNU_CONFIGURE= yes
+MAKE_FLAGS= XCFLAGS='-c -I. ${CFLAGS} -DSYSTEM_ID_DEFAULT=\"FREEBSD\"' -f
+MAN8= mkisofs.8
+
+.include <bsd.port.mk>
diff --git a/sysutils/mkisofs/files/md5 b/sysutils/mkisofs/files/md5
new file mode 100644
index 00000000000..e904839c0d1
--- /dev/null
+++ b/sysutils/mkisofs/files/md5
@@ -0,0 +1 @@
+MD5 (mkisofs-1.10.tar.gz) = a5c7022f606e3ad2e1c0e0247a5519b0
diff --git a/sysutils/mkisofs/patches/patch-aa b/sysutils/mkisofs/patches/patch-aa
new file mode 100644
index 00000000000..9abbfa3eb3c
--- /dev/null
+++ b/sysutils/mkisofs/patches/patch-aa
@@ -0,0 +1,17 @@
+--- Makefile.in.orig Sat Mar 15 04:02:45 1997
++++ Makefile.in Tue Mar 18 11:50:24 1997
+@@ -28,12 +28,12 @@
+
+ #### End of system configuration section. ####
+
+-CFLAGS=-g -O -c -I.
++CFLAGS=$(XCFLAGS)
+ LDFLAGS=
+ OBJS=mkisofs.o tree.o write.o hash.o rock.o exclude.o multi.o \
+ files.o match.o name.o fnmatch.o eltorito.o
+
+-World: mkisofs
++all: mkisofs
+
+ Makefile: Makefile.in configure
+ ./configure
diff --git a/sysutils/mkisofs/patches/patch-ab b/sysutils/mkisofs/patches/patch-ab
new file mode 100644
index 00000000000..f0801a5d921
--- /dev/null
+++ b/sysutils/mkisofs/patches/patch-ab
@@ -0,0 +1,38 @@
+*** eltorito.c.orig Sat Mar 29 22:44:34 1997
+--- eltorito.c Sat Mar 29 22:45:12 1997
+***************
+*** 28,34 ****
+ #include <sys/stat.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+! #include <malloc.h>
+
+ #include "mkisofs.h"
+ #include "iso9660.h"
+--- 28,34 ----
+ #include <sys/stat.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+! #include <stdlib.h>
+
+ #include "mkisofs.h"
+ #include "iso9660.h"
+--- ./mkisofs.h.org Wed Dec 20 08:56:02 1995
++++ ./mkisofs.h Thu Apr 24 15:25:31 1997
+@@ -34,6 +34,8 @@
+ #define NON_UNIXFS
+ #endif
+
++#include <sys/types.h>
++
+ #ifdef VMS
+ #include <sys/dir.h>
+ #define dirent direct
+@@ -42,7 +44,6 @@
+ #endif
+
+ #include <string.h>
+-#include <sys/types.h>
+ #include <sys/stat.h>
+
+ #ifdef linux
diff --git a/sysutils/mkisofs/patches/patch-ac b/sysutils/mkisofs/patches/patch-ac
new file mode 100644
index 00000000000..fe958460161
--- /dev/null
+++ b/sysutils/mkisofs/patches/patch-ac
@@ -0,0 +1,30 @@
+--- name.c.orig Sat Mar 15 04:02:46 1997
++++ name.c Mon Apr 28 11:50:47 1997
+@@ -57,6 +57,7 @@
+ const char * pnt;
+ int priority = 32767;
+ char * result;
++ char * copy;
+ int seen_dot = 0;
+ int seen_semic = 0;
+ int tildes = 0;
+@@ -104,12 +105,17 @@
+ last_dot = strrchr (pnt,'.');
+ if( (last_dot != NULL)
+ && ( (last_dot[1] == '~')
+- || (last_dot[1] == '\0')
+ || (last_dot[1] == '\0')) )
+ {
++ /*
++ * We gotta copy the string first, to work around its constness.
++ */
++ copy = alloca (strlen(name) + 1);
++ memcpy (copy, name, strlen(name) + 1);
++ pnt = copy;
++ last_dot = strrchr (pnt,'.');
+ *last_dot = '\0';
+ last_dot = strrchr (pnt,'.');
+- *last_dot = '.';
+ }
+
+ while(*pnt)
diff --git a/sysutils/mkisofs/patches/patch-ad b/sysutils/mkisofs/patches/patch-ad
new file mode 100644
index 00000000000..f7f28be8326
--- /dev/null
+++ b/sysutils/mkisofs/patches/patch-ad
@@ -0,0 +1,21 @@
+--- eltorito.c.orig Mon May 5 15:46:11 1997
++++ eltorito.c Mon May 5 16:11:42 1997
+@@ -33,6 +33,9 @@
+ #include "mkisofs.h"
+ #include "iso9660.h"
+
++#undef MIN
++#define MIN(a, b) (((a) < (b))? (a): (b))
++
+ static struct eltorito_validation_entry valid_desc;
+ static struct eltorito_defaultboot_entry default_desc;
+
+@@ -158,7 +161,7 @@
+ * but who really reads this stuff!
+ */
+ if (publisher)
+- memcpy_max(valid_desc.id, publisher, strlen(publisher));
++ memcpy_max(valid_desc.id, publisher, MIN(31, strlen(publisher)));
+
+ valid_desc.key1[0] = 0x55;
+ valid_desc.key2[0] = 0xAA;
diff --git a/sysutils/mkisofs/pkg/COMMENT b/sysutils/mkisofs/pkg/COMMENT
new file mode 100644
index 00000000000..ec0ad484eb0
--- /dev/null
+++ b/sysutils/mkisofs/pkg/COMMENT
@@ -0,0 +1 @@
+create ISO9660 filesystems with [optional] Rockridge extensions
diff --git a/sysutils/mkisofs/pkg/DESCR b/sysutils/mkisofs/pkg/DESCR
new file mode 100644
index 00000000000..b58b8d83308
--- /dev/null
+++ b/sysutils/mkisofs/pkg/DESCR
@@ -0,0 +1,4 @@
+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.
diff --git a/sysutils/mkisofs/pkg/PLIST b/sysutils/mkisofs/pkg/PLIST
new file mode 100644
index 00000000000..165871c1477
--- /dev/null
+++ b/sysutils/mkisofs/pkg/PLIST
@@ -0,0 +1,2 @@
+bin/mkisofs
+man/man8/mkisofs.8.gz