From f63a62c4e2a58e489033c3149bc8644498e6cb07 Mon Sep 17 00:00:00 2001 From: makc Date: Sun, 23 Aug 2009 16:07:48 +0000 Subject: Add new port archivers/packddir: PackdDir creates and unpacks PackdDir archives, which are used in Quake (I and II) and others. WWW: http://www.nongnu.org/packddir/ PR: ports/138078 Submitted by: Ayumi M --- archivers/packddir/Makefile | 31 ++++++++++++++++++++++++++++++ archivers/packddir/distinfo | 3 +++ archivers/packddir/files/patch-upackddir.c | 20 +++++++++++++++++++ archivers/packddir/pkg-descr | 4 ++++ 4 files changed, 58 insertions(+) create mode 100644 archivers/packddir/Makefile create mode 100644 archivers/packddir/distinfo create mode 100644 archivers/packddir/files/patch-upackddir.c create mode 100644 archivers/packddir/pkg-descr (limited to 'archivers') diff --git a/archivers/packddir/Makefile b/archivers/packddir/Makefile new file mode 100644 index 000000000000..70d13cef6a7b --- /dev/null +++ b/archivers/packddir/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: packddir +# Date created: 2009-08-22 +# Whom: Ayumi M +# +# $FreeBSD$ +# + +PORTNAME= packddir +PORTVERSION= 0.0.6 +CATEGORIES= archivers +MASTER_SITES= ${MASTER_SITE_SAVANNAH} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= upackddir_${PORTVERSION}-1 + +MAINTAINER= ayu@commun.jp +COMMENT= These trivial utilities can unpack and create PackdDir archives + +WRKSRC= ${WRKDIR}/src + +PLIST_FILES= bin/upackddir +MAN1= upackddir.1 + +.include + +post-patch: + ${REINPLACE_CMD} -e 's|$$(DESTDIR)/usr|${PREFIX}|' ${WRKSRC}/Makefile + +post-install: + ${INSTALL_MAN} ${WRKSRC}/upackddir.1 ${MANPREFIX}/man/man1 + +.include diff --git a/archivers/packddir/distinfo b/archivers/packddir/distinfo new file mode 100644 index 000000000000..607a5770ca0b --- /dev/null +++ b/archivers/packddir/distinfo @@ -0,0 +1,3 @@ +MD5 (upackddir_0.0.6-1.tar.gz) = b66373639b3ee46c495bacb25031f5c7 +SHA256 (upackddir_0.0.6-1.tar.gz) = 81b12e3be40d9e55c948ad3315ca7d28edbb74ff3f06730cc83f0d779bc7d6bf +SIZE (upackddir_0.0.6-1.tar.gz) = 16496 diff --git a/archivers/packddir/files/patch-upackddir.c b/archivers/packddir/files/patch-upackddir.c new file mode 100644 index 000000000000..64a51e301916 --- /dev/null +++ b/archivers/packddir/files/patch-upackddir.c @@ -0,0 +1,20 @@ +--- upackddir.c.orig 2009-08-22 04:48:16.000000000 +0900 ++++ upackddir.c 2009-08-22 04:48:39.000000000 +0900 +@@ -253,7 +253,7 @@ + } + + /* Let's jump to the beginning of our sweet data */ +- (char *) mapped += n; ++ mapped += n; + + for (i = 0; i < pack->numfiles; i++) { + fprintf(stderr, "%s\n", mapped->name); +@@ -297,7 +297,7 @@ + } + + /* Let's jump to the beginning of our sweet data */ +- (char *) mapped += n; ++ mapped += n; + + for (i = 0; i < pack->numfiles; i++) { + if (strcmp(name, mapped->name) == 0) { diff --git a/archivers/packddir/pkg-descr b/archivers/packddir/pkg-descr new file mode 100644 index 000000000000..cd59ce03bc94 --- /dev/null +++ b/archivers/packddir/pkg-descr @@ -0,0 +1,4 @@ +PackdDir creates and unpacks PackdDir archives, +which are used in Quake (I and II) and others. + +WWW: http://www.nongnu.org/packddir/ -- cgit