diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-28 01:55:04 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-28 01:55:04 +0000 |
commit | c16456c63ccba11ff699f234e1686628b2add726 (patch) | |
tree | 1a399868e6ce6555bc837634192f54fb4bab3535 /archivers/unarj | |
parent | From: Mark Murray <mark@grondar.za> (diff) |
arj dearchiver
Notes
Notes:
svn path=/head/; revision=625
Diffstat (limited to 'archivers/unarj')
-rw-r--r-- | archivers/unarj/Makefile | 15 | ||||
-rw-r--r-- | archivers/unarj/files/patch-aa | 82 |
2 files changed, 97 insertions, 0 deletions
diff --git a/archivers/unarj/Makefile b/archivers/unarj/Makefile new file mode 100644 index 000000000000..fc873a02d003 --- /dev/null +++ b/archivers/unarj/Makefile @@ -0,0 +1,15 @@ +# New ports collection makefile for: unarj +# Version required: 2.41 +# Date created: 28 Dec 1994 +# Whom: ache +# +# $Id: Makefile,v 1.1.1.1 1994/12/26 09:10:32 ache Exp $ +# +DISTFILES= unarj241.tar.Z +DISTNAME= unarj +MASTER_SITES= ftp://garbo.uwasa.fi/unix/arcers/ + +install: + cd ${WRKSRC}; install -cs -o bin -g bin -m755 ${DISTNAME} ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/archivers/unarj/files/patch-aa b/archivers/unarj/files/patch-aa new file mode 100644 index 000000000000..2676a6690716 --- /dev/null +++ b/archivers/unarj/files/patch-aa @@ -0,0 +1,82 @@ +*** 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; + { ++ #ifdef __FreeBSD__ ++ 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,113 ---- + #endif + + typedef unsigned char uchar; /* 8 bits or more */ ++ #ifndef __FreeBSD__ + typedef unsigned int uint; /* 16 - 32 bits or more */ + typedef unsigned short ushort; /* 16 bits or more */ ++ #endif + typedef unsigned long ulong; /* 32 bits or more */ + + #define USHRT_BIT (CHAR_BIT * sizeof(ushort)) |