This commit is contained in:
joey 1997-11-16 21:36:02 +00:00
parent fe8ed66965
commit 26d4ea4c53
8 changed files with 145 additions and 0 deletions

17
archivers/unarj/Makefile Normal file
View File

@ -0,0 +1,17 @@
# OpenBSD makefile for: unarj
# Version required: 2.41
# Date created: 16 Nov 1997
# Whom: ejovi
DISTNAME= unarj
PKGNAME= unarj-2.41
CATEGORIES= archivers
MASTER_SITES= ftp://garbo.uwasa.fi/unix/arcers/
DISTFILES= unarj241.tar.Z
MAINTAINER= ejovi@OpenBSD.ORG
do-install:
cd ${WRKSRC}; ${INSTALL_PROGRAM} ${DISTNAME} ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (unarj241.tar.Z) = 19d0849fa336847a49206778f1c61953

View File

@ -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))

View File

@ -0,0 +1,10 @@
--- unarj.h.orig Sun Nov 16 12:15:54 1997
+++ unarj.h Sun Nov 16 12:16:23 1997
@@ -110,7 +110,6 @@
#else
# include <sys/types.h>
#endif
-typedef unsigned long ulong; /* 32 bits or more */
#define USHRT_BIT (CHAR_BIT * sizeof(ushort))

View File

@ -0,0 +1,10 @@
--- environ.c.orig Sun Nov 16 12:19:05 1997
+++ environ.c Sun Nov 16 12:21:17 1997
@@ -436,7 +436,6 @@
#endif
extern struct tm *localtime();
-extern time_t time();
extern char *strcpy();
extern voidp *malloc();

View File

@ -0,0 +1 @@
Allows files to be extracted from ARJ archives.

21
archivers/unarj/pkg/DESCR Normal file
View File

@ -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.

View File

@ -0,0 +1 @@
bin/unarj