0

Initial commit

This commit is contained in:
eleksir
2023-11-19 18:01:40 +03:00
commit 80ec8a7529
586 changed files with 29486 additions and 0 deletions

7
unrar/README Normal file
View File

@@ -0,0 +1,7 @@
The UnRAR utility is a freeware program, distributed with source
code and developed for extracting, testing and viewing the contents
of archives created with the RAR archiver version 1.50 and above.
The UnRAR library is a minor part of the RAR archiver and contains
the RAR uncompression algorithm. UnRAR requires very small volume
of memory to operate. The UnRAR library can also be used by other
programs to extract RAR archives.

19
unrar/slack-desc Normal file
View File

@@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
unrar: unrar (Extract, test and view RAR archives)
unrar:
unrar: The UnRAR utility is a freeware program, distributed with source
unrar: code and developed for extracting, testing and viewing the contents
unrar: of archives created with the RAR archiver version 1.50 and above.
unrar: The UnRAR library is a minor part of the RAR archiver and contains
unrar: the RAR uncompression algorithm. UnRAR requires very small volume
unrar: of memory to operate. The UnRAR library can also be used by other
unrar: programs to extract RAR archives.
unrar:
unrar: Homepage: https://www.rarlab.com/rar_add.htm

View File

@@ -0,0 +1,12 @@
diff -ruNp unrar/makefile unrar.new/makefile
--- unrar/makefile 2020-05-21 12:13:21.000000000 +0300
+++ unrar.new/makefile 2022-02-06 00:13:16.126128359 +0300
@@ -157,7 +157,7 @@ lib: WHAT=RARDLL
lib: CXXFLAGS+=$(LIBFLAGS)
lib: clean $(OBJECTS) $(LIB_OBJ)
@rm -f libunrar.*
- $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
+ $(LINK) -shared -Wl,-soname,libunrar.so.$(libversion) -o libunrar.so.$(libversion) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
$(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
install-unrar:

155
unrar/unrar.1 Normal file
View File

@@ -0,0 +1,155 @@
.TH UNRAR "1" "December 2009" "unrar " "User Commands"
.SH NAME
unrar \- manual page for unrar
.SH SYNOPSIS
.B unrar
\fI<command> -<switch 1> -<switch N> <archive> <files\fR...\fI>\fR
.SH DESCRIPTION
UNRAR 3.91 freeware Copyright (c) 1993-2009 Alexander Roshal
.IP
<@listfiles...> <path_to_extract\e>
.PP
<Commands>
.TP
.BR e
Extract files to current directory
.TP
.BR l[t,b]
List archive [technical, bare]
.TP
.BR p
Print file to stdout
.TP
.BR t
Test archive files
.TP
.BR v[t,b]
Verbosely list archive [technical,bare]
.TP
.BR x
Extract files with full path
.PP
<Switches>
.TP
.BR -
Stop switches scanning
.TP
.BR ad
Append archive name to destination path
.TP
.BR ai
Ignore file attributes
.TP
.BR ap<path>
Set path inside archive
.TP
.BR c-
Disable comments show
.TP
.BR cfg-
Disable read configuration
.TP
.BR cl
Convert names to lower case
.TP
.BR cu
Convert names to upper case
.TP
.BR dh
Open shared files
.TP
.BR ep
Exclude paths from names
.TP
.BR ep3
Expand paths to full including the drive letter
.TP
.BR f
Freshen files
.TP
.BR id[c,d,p,q]
Disable messages
.TP
.BR ierr
Send all messages to stderr
.TP
.BR inul
Disable all messages
.TP
.BR kb
Keep broken extracted files
.TP
.BR n<file>
Include only specified file
.TP
.BR n@
Read file names to include from stdin
.TP
.BR n@<list>
Include files in specified list file
.TP
.BR o+
Overwrite existing files
.TP
.BR o-
Do not overwrite existing files
.TP
.BR or
Rename files automatically
.TP
.BR ow
Save or restore file owner and group
.TP
.BR p[password]
Set password
.TP
.BR p-
Do not query password
.TP
.BR r
Recurse subdirectories
.TP
.BR sl<size>
Process files with size less than specified
.TP
.BR sm<size>
Process files with size more than specified
.TP
.BR ta<date>
Process files modified after <date> in YYYYMMDDHHMMSS format
.TP
.BR tb<date>
Process files modified before <date> in YYYYMMDDHHMMSS format
.TP
.BR tn<time>
Process files newer than <time>
.TP
.BR to<time>
Process files older than <time>
.TP
.BR ts<m,c,a>[N]
Save or restore file time (modification, creation, access)
.TP
.BR u
Update files
.TP
.BR v
List all volumes
.TP
.BR ver[n]
File version control
.TP
.BR vp
Pause before each volume
.TP
.BR x<file>
Exclude specified file
.TP
.BR x@
Read file names to exclude from stdin
.TP
.BR x@<list>
Exclude files in specified list file
.TP
.BR y
Assume Yes on all queries

111
unrar/unrar.SlackBuild Normal file
View File

@@ -0,0 +1,111 @@
#!/bin/sh
# Slackware build script for unrar
# Copyright 2011, 2013, 2015, 2016, 2017, 2018 Mario Preksavec, Zagreb, Croatia
# Copyright 2022 Sergei Fedosoff <eleksir@gmail.com>
#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=unrar
VERSION=${VERSION:-6.1.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_EXs}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/EXs}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM libunrar
tar xf $CWD/${PRGNAM}src-$VERSION.tar.gz
cd $PRGNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
patch -p1 -i $CWD/unrar-6.1.4-soname.patch
cp -a $TMP/$PRGNAM/ $TMP/libunrar
export CFLAGS="-g $SLKFLAGS -flto -rdynamic"
export LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2"
export CXXFLAGS="$CFLAGS"
make -j$(nproc) -C $TMP/libunrar lib libversion=$VERSION CXXFLAGS="$SLKCFLAGS"
make -j$(nproc) CXXFLAGS="$SLKCFLAGS" -f makefile unrar lib
install -Dpm 0755 unrar $PKG/usr/bin/unrar
install -Dpm 0755 $TMP/libunrar/libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so.$VERSION
install -Dpm 0644 dll.hpp "$PKG/usr/include/unrar/dll.hpp"
(
cd /usr/lib${LIBDIRSUFFIX}
ln -s libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so
ln -s libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so.5
)
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/man/man1
gzip -9c $CWD/unrar.1 > $PKG/usr/man/man1/unrar.1.gz
mkdir -p $PKG/usr/include/unrar
cp -a *.cpp *.hpp $PKG/usr/include/unrar
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a acknow.txt readme.txt license.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

10
unrar/unrar.info Normal file
View File

@@ -0,0 +1,10 @@
PRGNAM="unrar"
VERSION="6.1.4"
HOMEPAGE="https://www.rarlab.com"
DOWNLOAD="https://www.rarlab.com/rar/unrarsrc-6.1.4.tar.gz"
MD5SUM="a1e0f45a4f53cc614b4dc3b21eb72761"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Sergei Fedosoff"
EMAIL="eleksir@gmail.com"