diff options
Diffstat (limited to 'archivers/unarj')
-rw-r--r-- | archivers/unarj/Makefile | 20 | ||||
-rw-r--r-- | archivers/unarj/files/md5 | 1 | ||||
-rw-r--r-- | archivers/unarj/patches/patch-aa | 84 | ||||
-rw-r--r-- | archivers/unarj/pkg/COMMENT | 1 | ||||
-rw-r--r-- | archivers/unarj/pkg/DESCR | 21 | ||||
-rw-r--r-- | archivers/unarj/pkg/PLIST | 1 |
6 files changed, 128 insertions, 0 deletions
diff --git a/archivers/unarj/Makefile b/archivers/unarj/Makefile new file mode 100644 index 00000000000..e63b3a677b6 --- /dev/null +++ b/archivers/unarj/Makefile @@ -0,0 +1,20 @@ +# New ports collection makefile for: unarj +# Version required: 2.41 +# Date created: 28 Dec 1994 +# Whom: ache +# +# $Id: Makefile,v 1.1.1.1 1997/10/27 02:19:04 hubertf Exp $ +# + +DISTNAME= unarj +PKGNAME= unarj-2.41 +CATEGORIES= archivers +MASTER_SITES= ftp://garbo.uwasa.fi/unix/arcers/ +DISTFILES= unarj241.tar.Z + +MAINTAINER= ache@FreeBSD.ORG + +do-install: + cd ${WRKSRC}; ${INSTALL_PROGRAM} ${DISTNAME} ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/archivers/unarj/files/md5 b/archivers/unarj/files/md5 new file mode 100644 index 00000000000..e862ec69900 --- /dev/null +++ b/archivers/unarj/files/md5 @@ -0,0 +1 @@ +MD5 (unarj241.tar.Z) = 19d0849fa336847a49206778f1c61953 diff --git a/archivers/unarj/patches/patch-aa b/archivers/unarj/patches/patch-aa new file mode 100644 index 00000000000..b8a59372191 --- /dev/null +++ b/archivers/unarj/patches/patch-aa @@ -0,0 +1,84 @@ +*** Makefile.old Wed Jul 17 22:02:20 1991 +--- Makefile Wed Dec 28 04:39:21 1994 +*************** +*** 1,5 **** +! +! CC=cc + + all: unarj + +--- 1,4 ---- +! CFLAGS+=-DUNIX + + all: unarj + +*** environ.c.old Wed Jun 23 09:07:20 1993 +--- environ.c Wed Dec 28 04:38:04 1994 +*************** +*** 534,541 **** + } + + long +! gettz() /* returns the offset from GMT in seconds */ + { + #define NOONOFFSET 43200L + #define SEC_IN_DAY (24L * 60L * 60L) + #define INV_VALUE (SEC_IN_DAY + 1L) +--- 534,545 ---- + } + + long +! gettz(stamp) /* returns the offset from GMT in seconds */ +! time_t stamp; + { ++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ return -localtime(&stamp)->tm_gmtoff; ++ #else + #define NOONOFFSET 43200L + #define SEC_IN_DAY (24L * 60L * 60L) + #define INV_VALUE (SEC_IN_DAY + 1L) +*************** +*** 551,556 **** +--- 555,561 ---- + noontm = localtime(&noon); + retval = NOONOFFSET - 60 * (60 * noontm->tm_hour - noontm->tm_min); + return retval; ++ #endif + } + + long +*************** +*** 608,614 **** + (uint) attribute; + (uint) host; + +! m_time = mstonix(tstamp) + gettz(); + + tb.mtime = m_time; /* Set modification time */ + tb.atime = m_time; /* Set access time */ +--- 613,620 ---- + (uint) attribute; + (uint) host; + +! m_time = mstonix(tstamp); +! m_time += gettz(m_time); + + tb.mtime = m_time; /* Set modification time */ + tb.atime = m_time; /* Set access time */ +*** unarj.h.old Wed Jun 23 09:07:20 1993 +--- unarj.h Wed Dec 28 04:25:07 1994 +*************** +*** 104,111 **** +--- 104,115 ---- + #endif + + typedef unsigned char uchar; /* 8 bits or more */ ++ #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) + typedef unsigned int uint; /* 16 - 32 bits or more */ + typedef unsigned short ushort; /* 16 bits or more */ ++ #else ++ # include <sys/types.h> ++ #endif + typedef unsigned long ulong; /* 32 bits or more */ + + #define USHRT_BIT (CHAR_BIT * sizeof(ushort)) diff --git a/archivers/unarj/pkg/COMMENT b/archivers/unarj/pkg/COMMENT new file mode 100644 index 00000000000..0ff2edabcbd --- /dev/null +++ b/archivers/unarj/pkg/COMMENT @@ -0,0 +1 @@ +Allows files to be extracted from ARJ archives. diff --git a/archivers/unarj/pkg/DESCR b/archivers/unarj/pkg/DESCR new file mode 100644 index 00000000000..08a524d8c4d --- /dev/null +++ b/archivers/unarj/pkg/DESCR @@ -0,0 +1,21 @@ +This is an extract only program which allows access to the contents of ARJ +archives. + + COMMAND SYNTAX: + + UNARJ has been modified to support the four commands: "e", "l", "t", + and "x". These are similar to the ARJ version of these commands. + However, UNARJ does not create directories when using the "x" command. + + Usage: UNARJ archive[.arj] (list archive) + UNARJ e archive (extract archive) + UNARJ l archive (list archive) + UNARJ t archive (test archive) + UNARJ x archive (extract with pathnames) + + UNARJ does not accept any other commands or options. You cannot + specify a base directory or select individual files to extract. UNARJ + does not support empty directories or volume labels. UNARJ is much + slower than ARJ because ARJ is highly optimized using assembly + language. + diff --git a/archivers/unarj/pkg/PLIST b/archivers/unarj/pkg/PLIST new file mode 100644 index 00000000000..5b5f3fe9079 --- /dev/null +++ b/archivers/unarj/pkg/PLIST @@ -0,0 +1 @@ +bin/unarj |