Ravenports generated: 14 Jan 2021 15:57
[ravenports.git] / bucket_7C / arj
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               arj
4 VERSION=                3.10.22
5 REVISION=               1
6 KEYWORDS=               archivers
7 VARIANTS=               standard
8 SDESC[standard]=        Free and portable clone of the ARJ archiver
9 HOMEPAGE=               https://sourceforge.net/projects/arj/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main debian
13 SITES[main]=            SF/arj/arj/2.78_3.10%20build%2022
14 SITES[debian]=          DEBIAN/pool/main/a/arj
15 DISTFILE[1]=            arj-3.10.22.tar.gz:main
16 DISTFILE[2]=            arj_3.10.22-24.debian.tar.xz:debian
17 DF_INDEX=               1 2
18 SPKGS[standard]=        single
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 USES=                   autoreconf gmake
24
25 LICENSE=                GPLv2+:single
26 LICENSE_TERMS=          single:{{WRKDIR}}/TERMS
27 LICENSE_FILE=           GPLv2+:{{WRKSRC}}/doc/COPYING
28 LICENSE_SCHEME=         solo
29
30 FPC_EQUIVALENT=         archivers/arj
31
32 PATCHFILES_STRIP=       -p1
33
34 MUST_CONFIGURE=         gnu
35 CONFIGURE_WRKSRC=       {{WRKSRC}}/gnu
36
37 BUILD_TARGET=           prepare all
38 MAKEFILE=               GNUmakefile
39 MAKE_ARGS=              LOCALE=en
40
41 post-patch:
42         ${REINPLACE_CMD} -e 's!/etc!${LOCALBASE}/etc!' \
43                  ${WRKSRC}/arj.c ${WRKSRC}/file_reg.c ${WRKSRC}/rearj.c
44         ${REINPLACE_CMD} -e 's!-O2!!' -e 's!ALIGN_POINTERS!&,1,desc!' \
45                 -e 's!USE_COLORS!&,1,desc!' ${WRKSRC}/gnu/configure.in
46         ${REINPLACE_CMD} -e 's!^static !!' ${WRKSRC}/integr.c
47
48 pre-patch:
49         # apply remaining debian patchs
50         ${FIND} ${WRKDIR}/debian/patches -type f -name "*.patch" |\
51         ${SORT} | ${XARGS} -i{} \
52         ${PATCH} -i {} -d "${PATCH_WRKSRC}" ${PATCH_DIST_ARGS}
53
54 post-extract:
55         ${RM} ${WRKDIR}/debian/patches/002_no_remove_static_const.patch
56         ${RM} ${WRKDIR}/debian/patches/doc_refer_robert_k_jung.patch
57         ${RM} ${WRKDIR}/debian/patches/gnu_build_*
58         ${RM} ${WRKDIR}/debian/patches/hurd_no_fcntl_getlk.patch
59         ${RM} ${WRKDIR}/debian/patches/reproducible_help_archive.patch
60         # extract license
61         ${AWK} '/LICENSE POLICY/,EOF { print $0 }' \
62         ${WRKSRC}/resource/en/arjl.txt > ${WRKDIR}/TERMS
63
64 [FILE:545:descriptions/desc.single]
65 This is open source implementation of the world-famous ARJ archiver.  This
66 version has been created with an intent to preserve maximum compatibility
67 and retain the feature set of the original ARJ archiver as provided by ARJ
68 Software, Inc.
69
70 New ARJ features on Unix-like platforms:
71
72   - Support for symbolic and hard links
73   - Archiving of special entities: pipes and devices
74   - Support for UID/GID storage in a variety of methods
75   - World's smallest native self-extracting modules
76   - Interoperability with ARJ for DOS, Windows, and OS/2 Warp
77
78
79 [FILE:204:distinfo]
80 589e4c9bccc8669e7b6d8d6fcd64e01f6a2c21fe10aad56a83304ecc3b96a7db       431467 arj-3.10.22.tar.gz
81 f1b1bb1ad0deaa0ffb1e3cd600cac6c7e9e705cbd2d3bd577d3df160bbf8fde9        23016 arj_3.10.22-24.debian.tar.xz
82
83
84 [FILE:131:manifests/plist.single]
85 bin/
86  arj
87  arj-register
88  arjdisp
89  rearj
90 lib/arj/arjcrypt.so
91 share/man/man1/
92  arj-register.1.gz
93  arj.1.gz
94  arjdisp.1.gz
95  rearj.1.gz
96
97
98 [FILE:391:patches/patch-arjtypes.c]
99 --- arjtypes.c.intermediate     2021-01-10 04:24:29 UTC
100 +++ arjtypes.c
101 @@ -138,8 +138,11 @@ static int isleapyear(int year)
102  static unsigned long ts_unix2dos(time_t ts)
103  {
104   struct tm *stm;
105 + time_t _ts;
106  
107 - stm=arj_localtime(&ts);
108 + _ts = ts;
109 +
110 + stm=arj_localtime(&_ts);
111   return(get_tstamp(stm->tm_year+1900, stm->tm_mon+1, stm->tm_mday,
112          stm->tm_hour, stm->tm_min, stm->tm_sec));
113  }
114
115
116 [FILE:762:patches/patch-environ.c]
117 --- environ.c.intermediate      2021-01-10 04:42:23 UTC
118 +++ environ.c
119 @@ -58,7 +58,7 @@
120    #include <sys/ioctl.h>
121    #include <sys/statfs.h>
122    #include <sys/statvfs.h>
123 - #elif defined(__FreeBSD__)||defined(__NetBSD__)
124 + #elif defined(__FreeBSD__)||defined(__NetBSD__) || defined(__DragonFly__)
125    #include <sys/param.h>
126    #include <sys/mount.h>
127   #elif defined(__QNXNTO__)
128 @@ -2061,7 +2061,7 @@ FILE *file_open(char *name, char *mode)
129        /* ASR fix 01/10/2003 -- re-fix to handle umask 022 correctly */
130        if((handle=open(name, oflag, 0644))==-1)
131         return(NULL);
132 -      if(fcntl(handle, F_SETLK, &flk)==-1&&errno!=EINVAL)
133 +      if(fcntl(handle, F_SETLK, &flk)==-1&&errno!=EINVAL&&errno!=ENOTSUP)
134        {
135         close(handle);
136         return(NULL);
137
138
139 [FILE:522:patches/patch-gnu_configure.in]
140 --- gnu/configure.in.intermediate       2021-01-14 03:19:30 UTC
141 +++ gnu/configure.in
142 @@ -52,17 +52,15 @@ case $host_os in
143  linux*)
144         AC_DEFINE(ELF_EXECUTABLES, 1, [Define if executables use ELF format])
145          DYN_LIBS="-ldl"
146 -        LD_STRIP="gnu/stripgcc.lnk"
147         ;;
148  k*bsd*)
149         AC_DEFINE(ELF_EXECUTABLES)
150         DYN_LIBS="-ldl"
151         LD_STRIP="gnu/stripgcc.lnk"
152         ;;
153 -*bsd*)
154 +*bsd*|dragonfly*)
155         AC_DEFINE(ELF_EXECUTABLES)
156          DLL_FLAGS="-shared -export-dynamic"
157 -        LD_STRIP="gnu/stripgcc.lnk"
158         ;;
159  interix3*)
160         # not ELF
161
162
163 [FILE:34:files/special.mk]
164 AUTORECONF_WRKSRC=      ${WRKSRC}/gnu
165
166