Initial commit
This commit is contained in:
25
dos2unix/README
Normal file
25
dos2unix/README
Normal file
@@ -0,0 +1,25 @@
|
||||
This is an update of Benjamin Lin's implementations of dos2unix and
|
||||
unix2dos. Benjamin Lin's implementations of dos2unix and unix2dos are
|
||||
part of several Linux distributions such as RedHat, Fedora, Suse, Gentoo
|
||||
and some others. On Slackware one finds fromdos and todos but these
|
||||
implementations are not included. This update includes all RedHat
|
||||
patches and fixes several other problems.
|
||||
|
||||
These implementations of dos2unix and unix2dos have been modeled after
|
||||
dos2unix/unix2dos under SunOS/Solaris. They have similar conversion
|
||||
modes, namely ASCII, 7bit and ISO. The first versions were made by John
|
||||
Birchfield in 1989, and in 1995 rewritten from scratch by Benjamin Lin.
|
||||
Mac to Unix conversion was added by Bernd Johannes Wuebben in 1998, Unix
|
||||
to Mac by Erwin in 2010.
|
||||
|
||||
Features:
|
||||
Native language support:
|
||||
Dutch, English, Esperanto, German, and Spanish.
|
||||
Automatically skips binary and non-regular files in-place, paired,
|
||||
or stdio mode conversion.
|
||||
Keep original file dates option.
|
||||
7-bit and ISO conversion modes like SunOS dos2unix.
|
||||
|
||||
Dos2Unix includes:
|
||||
dos2unix - DOS/MAC to UNIX text file format converter.
|
||||
unix2dos - UNIX to DOS/MAC text file format converter.
|
||||
103
dos2unix/dos2unix.SlackBuild
Normal file
103
dos2unix/dos2unix.SlackBuild
Normal file
@@ -0,0 +1,103 @@
|
||||
#!/bin/sh
|
||||
# Slackware build script for dos2unix
|
||||
# copyright 2017-2020 Donald Cooley, South Haven, IN, USA
|
||||
|
||||
# Ryan P.C. McQuen | Everett, WA
|
||||
|
||||
# Copyright 2011, 2012, 2013 Chris Abela, Malta
|
||||
# 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 IMPLIE
|
||||
# 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=dos2unix
|
||||
VERSION=${VERSION:-7.4.2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_EXs}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/EXs}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
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 {} \;
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -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
|
||||
|
||||
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2" \
|
||||
RPM_OPT_FLAGS="-g $SLKCFLAGS -flto" \
|
||||
make -j$(nproc)
|
||||
make check
|
||||
make \
|
||||
prefix=$PKG/usr \
|
||||
docdir=$PKG/usr/doc/$PRGNAM-$VERSION \
|
||||
mandir=$PKG/usr/man \
|
||||
install
|
||||
|
||||
# Put _all_ man pages under usr/man
|
||||
mv $PKG/usr/share/man/* $PKG/usr/man
|
||||
rmdir $PKG/usr/share/man
|
||||
|
||||
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
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
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
dos2unix/dos2unix.info
Normal file
10
dos2unix/dos2unix.info
Normal file
@@ -0,0 +1,10 @@
|
||||
PRGNAM="dos2unix"
|
||||
VERSION="7.4.2"
|
||||
HOMEPAGE="https://waterlan.home.xs4all.nl/dos2unix.html"
|
||||
DOWNLOAD="https://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.4.2.tar.gz"
|
||||
MD5SUM="4e8f8c230a72753b307fab69f8121ba4"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Sergei Fedosoff"
|
||||
EMAIL="eleksir@gmail.com"
|
||||
19
dos2unix/slack-desc
Normal file
19
dos2unix/slack-desc
Normal 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------------------------------------------------------|
|
||||
dos2unix: dos2unix (DOS or Mac to Unix and v.v. text files conversion)
|
||||
dos2unix:
|
||||
dos2unix: This is an update of Benjamin Lin's implementations of dos2unix and
|
||||
dos2unix: unix2dos. These implementations of dos2unix and unix2dos have been
|
||||
dos2unix: modeled after dos2unix/unix2dos under SunOS/Solaris. They have
|
||||
dos2unix: similar conversion modes, namely ascii, 7bit and iso.
|
||||
dos2unix:
|
||||
dos2unix:
|
||||
dos2unix: https://www.xs4all.nl/~waterlan/dos2unix.html
|
||||
dos2unix:
|
||||
dos2unix:
|
||||
Reference in New Issue
Block a user