Initial commit
This commit is contained in:
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
**.tar.xz
|
||||||
|
**.tar.gz
|
||||||
|
**.tar.bz2
|
||||||
|
**.tar.lz
|
||||||
|
**/slackmeta.pl
|
||||||
|
**/upload.pl
|
||||||
|
**/Geo*.dat.gz
|
||||||
123
Botan/Botan.SlackBuild
Normal file
123
Botan/Botan.SlackBuild
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script for Botan
|
||||||
|
|
||||||
|
# Copyright (c) 2010-2021 Markus Reichelt, Aachen, DE
|
||||||
|
# Copyright (c) 2022 Sergei Fedosoff <eleksir@gmail.com>
|
||||||
|
#
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, and distribute this software for
|
||||||
|
# any purpose with or without fee is hereby granted, provided that
|
||||||
|
# the above copyright notice and this permission notice appear in all
|
||||||
|
# copies.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR
|
||||||
|
# CONTRIBUTORS 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.
|
||||||
|
#
|
||||||
|
# Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115
|
||||||
|
|
||||||
|
# 20220416 bkw: Modified by SlackBuilds.org, BUILD=2:
|
||||||
|
# - use correct doc dir (usr/doc/$PRGNAM-$VERSION).
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=Botan
|
||||||
|
VERSION=${VERSION:-2.19.1}
|
||||||
|
BUILD=${BUILD:-2}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
PRGNAMI=botan
|
||||||
|
|
||||||
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp/EXs}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
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="-Ofast -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
tar xf $CWD/$PRGNAM-$VERSION.tar.xz
|
||||||
|
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 {} \+
|
||||||
|
|
||||||
|
export LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-s"
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
python configure.py \
|
||||||
|
--prefix=/usr \
|
||||||
|
--docdir=doc \
|
||||||
|
--libdir=lib$LIBDIRSUFFIX \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--disable-static \
|
||||||
|
--with-doxygen
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
#make check
|
||||||
|
#in addition to running 'make check' as an alternative way to invoke the testsuite
|
||||||
|
#is to uncomment the following line
|
||||||
|
#LD_LIBRARY_PATH=. ./botan-test
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
gzip -9 $PKG/usr/man/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
|
||||||
|
|
||||||
|
# 20220416 bkw: 'make install' uses the wrong name for the doc dir,
|
||||||
|
# lowercase "botan". our doc dir must match the SlackBuild's name.
|
||||||
|
mv $PKG/usr/doc/$PRGNAMI-$VERSION $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a *.rst *.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
|
||||||
10
Botan/Botan.info
Normal file
10
Botan/Botan.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="Botan"
|
||||||
|
VERSION="2.19.1"
|
||||||
|
HOMEPAGE="https://botan.randombit.net/"
|
||||||
|
DOWNLOAD="https://botan.randombit.net/releases/Botan-2.19.1.tar.xz"
|
||||||
|
MD5SUM="30a71dd700d69561483fb1599a13ea3b"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
5
Botan/README
Normal file
5
Botan/README
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Botan is a BSD-licensed crypto library for C++. It provides
|
||||||
|
applications with the ability to use a number of cryptographic
|
||||||
|
algorithms, as well as SSL/TLS, X.509 certificates and CRLs, PKCS
|
||||||
|
#10 certificate requests, a filter/pipe message processing system,
|
||||||
|
and a wide variety of other features.
|
||||||
19
Botan/slack-desc
Normal file
19
Botan/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------------------------------------------------------|
|
||||||
|
Botan: Botan (C++ crypto library)
|
||||||
|
Botan:
|
||||||
|
Botan: Botan is a BSD-licensed crypto library for C++. It provides
|
||||||
|
Botan: applications with the ability to use a number of cryptographic
|
||||||
|
Botan: algorithms, as well as SSL/TLS, X.509 certificates and CRLs, PKCS
|
||||||
|
Botan: #10 certificate requests, a filter/pipe message processing system,
|
||||||
|
Botan: and a wide variety of other features.
|
||||||
|
Botan:
|
||||||
|
Botan: Homepage: https://botan.randombit.net/
|
||||||
|
Botan:
|
||||||
|
Botan:
|
||||||
170
CubicSDR/CubicSDR.SlackBuild
Executable file
170
CubicSDR/CubicSDR.SlackBuild
Executable file
@@ -0,0 +1,170 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script for CubicSDR
|
||||||
|
|
||||||
|
# Copyright 2022 Alan Aversa USA
|
||||||
|
# Copyright 2023 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.
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=CubicSDR
|
||||||
|
VERSION=${VERSION:-0.2.7}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_SBo}
|
||||||
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||||
|
# the name of the created package would be, and then exit. This information
|
||||||
|
# could be useful to other scripts.
|
||||||
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
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 -mfpmath=sse -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2 -mavx -mavx2"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
mkdir $PRGNAM-$VERSION
|
||||||
|
cd $PRGNAM-$VERSION
|
||||||
|
|
||||||
|
# static wxWidgets
|
||||||
|
|
||||||
|
STATICWXWIDGETS_DESTDIR=$TMP/$PRGNAM-$VERSION/wxWidgets-staticlib
|
||||||
|
mkdir -p $STATICWXWIDGETS_DESTDIR
|
||||||
|
|
||||||
|
VERWXWIDGETS=${VERWXWIDGETS:-3.1.5}
|
||||||
|
|
||||||
|
tar xf $CWD/wxWidgets-$VERWXWIDGETS.tar.bz2
|
||||||
|
cd wxWidgets-$VERWXWIDGETS
|
||||||
|
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 {} \;
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS -std=c++0x" \
|
||||||
|
./configure \
|
||||||
|
--with-opengl \
|
||||||
|
--disable-shared \
|
||||||
|
--enable-monolithic \
|
||||||
|
--with-libjpeg \
|
||||||
|
--with-libtiff \
|
||||||
|
--with-libpng \
|
||||||
|
--with-zlib \
|
||||||
|
--disable-sdltest \
|
||||||
|
--enable-unicode \
|
||||||
|
--enable-display \
|
||||||
|
--enable-propgrid \
|
||||||
|
--disable-webview \
|
||||||
|
--disable-webviewwebkit \
|
||||||
|
--disable-tests \
|
||||||
|
--with-x \
|
||||||
|
--with-gtk=3 \
|
||||||
|
--with-xtest \
|
||||||
|
--with-libiconv \
|
||||||
|
--enable-commondlg \
|
||||||
|
--enable-tooltips \
|
||||||
|
--enable-richtooltip \
|
||||||
|
--enable-markup \
|
||||||
|
--enable-accel \
|
||||||
|
--prefix="$STATICWXWIDGETS_DESTDIR"
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# build CubicSDR
|
||||||
|
|
||||||
|
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 {} \;
|
||||||
|
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||||
|
-DwxWidgets_CONFIG_EXECUTABLE=$STATICWXWIDGETS_DESTDIR/bin/wx-config \
|
||||||
|
-DUSE_HAMLIB=ON \
|
||||||
|
-DUSE_SOAPY_SDR=ON \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Package everything
|
||||||
|
|
||||||
|
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/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a LICENSE README.md $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
|
||||||
|
cat $CWD/slack-required > $PKG/install/slack-required
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||||
12
CubicSDR/CubicSDR.info
Normal file
12
CubicSDR/CubicSDR.info
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
PRGNAM="CubicSDR"
|
||||||
|
VERSION="0.2.7"
|
||||||
|
HOMEPAGE="https://github.com/cjcliffe/CubicSDR/"
|
||||||
|
DOWNLOAD="https://github.com/cjcliffe/CubicSDR/archive/0.2.7/CubicSDR-0.2.7.tar.gz \
|
||||||
|
https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.5/wxWidgets-3.1.5.tar.bz2"
|
||||||
|
MD5SUM="6e4cfeab14d9ec54daaed6079a5312ae \
|
||||||
|
8b2ac42364a02bb5f3df22e1b1a517e5"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES="SoapySDR liquid-dsp"
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
9
CubicSDR/README
Normal file
9
CubicSDR/README
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
CubicSDR is the software portion of Software Defined Radio. By using
|
||||||
|
hardware that converts RF spectrum into a digital stream we are able to
|
||||||
|
build complex radios to do many types of functions in software instead
|
||||||
|
of traditional hardware.
|
||||||
|
|
||||||
|
Paired with a supported hardware receiver, you can use CubicSDR to
|
||||||
|
explore the RF world around you. Discover Satellite transmissions,
|
||||||
|
Amateur Radio, Rail, Aeronautical, Shortwave, or any number of possible
|
||||||
|
signals floating through the air.
|
||||||
3
CubicSDR/doinst.sh
Normal file
3
CubicSDR/doinst.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
|
fi
|
||||||
19
CubicSDR/slack-desc
Normal file
19
CubicSDR/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------------------------------------------------------|
|
||||||
|
CubicSDR: CubicSDR (Software-Defined Radio Application)
|
||||||
|
CubicSDR:
|
||||||
|
CubicSDR: CubicSDR is the software portion of Software Defined Radio. By using
|
||||||
|
CubicSDR: hardware that converts RF spectrum into a digital stream we are able
|
||||||
|
CubicSDR: to build complex radios to do many types of functions in software
|
||||||
|
CubicSDR: instead of traditional hardwre.
|
||||||
|
CubicSDR:
|
||||||
|
CubicSDR: Paired with a supported hardware receiver, you can use CubicSDR to
|
||||||
|
CubicSDR: explore the RF world around you. Discover Satellite transmissions,
|
||||||
|
CubicSDR: Amateur Radio, Rail, Areonautical, Shortwave, or any number of
|
||||||
|
CubicSDR: possible signals floating through the air.
|
||||||
4
CubicSDR/slack-required
Normal file
4
CubicSDR/slack-required
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
SoapySDR
|
||||||
|
liquid-dsp
|
||||||
|
SoapyHackRF
|
||||||
|
hamlib
|
||||||
134
GeoIP/GeoIP.SlackBuild
Normal file
134
GeoIP/GeoIP.SlackBuild
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for GeoIP
|
||||||
|
|
||||||
|
# Copyright 2007-2010 Yalla-One <yallaone@gmail.com>
|
||||||
|
# Copyright 2011 markus reichelt <slackbuilds@mareichelt.de> 0xCCEEF115
|
||||||
|
# Copyright 2011 Niels Horn, Rio de Janeiro, RJ, Brazil
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# This product includes GeoLite data created by MaxMind,
|
||||||
|
# available from http://www.maxmind.com
|
||||||
|
# (Creative Commons Attribution-ShareAlike 4.0 International License)
|
||||||
|
|
||||||
|
# Maintained by David Spencer <baildon.research@googlemail.com>
|
||||||
|
|
||||||
|
PRGNAM=GeoIP
|
||||||
|
VERSION=${VERSION:-1.6.12}
|
||||||
|
BUILD=${BUILD:-2}
|
||||||
|
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="-g3 -O2 -fPIC -flto"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
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 {} \;
|
||||||
|
|
||||||
|
export CFLAGS="$SLKFLAGS -rdynamic"
|
||||||
|
export LDFLAGS="-rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2 -Wl,-s"
|
||||||
|
|
||||||
|
# We need to update the configuration files in this tarball...
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--datadir=/usr/share \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--disable-static \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
find $PKG | xargs 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 {} \;
|
||||||
|
|
||||||
|
mkdir -p $PKG/var/lib/GeoIP
|
||||||
|
if [ "${MINIDATA:-no}" = "yes" ]; then
|
||||||
|
DATAFILES="GeoIP GeoIPv6"
|
||||||
|
else
|
||||||
|
DATAFILES="GeoIP GeoIPv6 GeoLiteCity GeoLiteCityv6 GeoIPASNum GeoIPASNumv6"
|
||||||
|
fi
|
||||||
|
for datafile in $DATAFILES ; do
|
||||||
|
if [ -e $CWD/$datafile.dat.gz ]; then
|
||||||
|
zcat $CWD/$datafile.dat.gz > $PKG/var/lib/GeoIP/$datafile.dat
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
# As an absolute minimum we'll package the ipv4 country data file from the source tree:
|
||||||
|
if [ ! -e $PKG/var/lib/GeoIP/GeoIP.dat ]; then
|
||||||
|
cat data/GeoIP.dat > $PKG/var/lib/GeoIP/GeoIP.dat
|
||||||
|
fi
|
||||||
|
# It's traditional to make the data available in /usr/share/GeoIP too:
|
||||||
|
mkdir -p $PKG/usr/share
|
||||||
|
ln -s ../../var/lib/GeoIP $PKG/usr/share/GeoIP
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a \
|
||||||
|
AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS.md README.md \
|
||||||
|
$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}
|
||||||
22
GeoIP/GeoIP.info
Normal file
22
GeoIP/GeoIP.info
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
PRGNAM="GeoIP"
|
||||||
|
VERSION="1.6.12"
|
||||||
|
HOMEPAGE="https://github.com/maxmind/geoip-api-c"
|
||||||
|
DOWNLOAD="https://github.com/maxmind/geoip-api-c/releases/download/v1.6.12/GeoIP-1.6.12.tar.gz \
|
||||||
|
https://sourceforge.net/projects/slackbuildsdirectlinks/files/GeoIP/20180310/GeoIP.dat.gz \
|
||||||
|
https://sourceforge.net/projects/slackbuildsdirectlinks/files/GeoIP/20180310/GeoIPv6.dat.gz \
|
||||||
|
https://sourceforge.net/projects/slackbuildsdirectlinks/files/GeoIP/20180310/GeoLiteCity.dat.gz \
|
||||||
|
https://sourceforge.net/projects/slackbuildsdirectlinks/files/GeoIP/20180310/GeoLiteCityv6.dat.gz \
|
||||||
|
https://sourceforge.net/projects/slackbuildsdirectlinks/files/GeoIP/20180310/GeoIPASNum.dat.gz \
|
||||||
|
https://sourceforge.net/projects/slackbuildsdirectlinks/files/GeoIP/20180310/GeoIPASNumv6.dat.gz"
|
||||||
|
MD5SUM="77d496cc40daa1dbc2b97365807d64d7 \
|
||||||
|
5b3d3299e0644f51cafd624e6b3a7ce8 \
|
||||||
|
aea888a68931985cb10a9dabf0a1bc9b \
|
||||||
|
fa356cf173e3a4bc75919877f73862ba \
|
||||||
|
4c8972ebe778cd99fd9ea2cff39f0bb6 \
|
||||||
|
bd5b21a0df8037c88ceae9956ab6b393 \
|
||||||
|
3ae7d7c6409376163c8b8d28ebe14b59"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
30
GeoIP/README
Normal file
30
GeoIP/README
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
GeoIP is the proprietary technology that drives MaxMind's IP
|
||||||
|
geolocation data and services. GeoIP provides businesses with a
|
||||||
|
non-invasive way to determine geographical and other information
|
||||||
|
about their Internet visitors in real-time.
|
||||||
|
|
||||||
|
This SlackBuild packages a recent full set of GeoLite data files
|
||||||
|
(Creative Commons licensed), totalling 56Mb uncompressed.
|
||||||
|
|
||||||
|
To keep the data files up-to-date, see the geoipupdate SlackBuild.
|
||||||
|
|
||||||
|
If you don't want the full set of data files, you have three choices:
|
||||||
|
|
||||||
|
(1) You can download only the data files you want before running the
|
||||||
|
SlackBuild.
|
||||||
|
|
||||||
|
(2) You can remove the data files you don't want from the directory
|
||||||
|
/var/lib/GeoIP after installation.
|
||||||
|
|
||||||
|
(3) You can run the SlackBuild with the option 'MINIDATA=yes'. Only the
|
||||||
|
ipv4 and ipv6 country data will be packaged.
|
||||||
|
|
||||||
|
MINIDATA=yes ./GeoIP.SlackBuild
|
||||||
|
|
||||||
|
If you are using sbopkg and you have md5sum errors, you need to
|
||||||
|
delete your old data files from the cache and try again.
|
||||||
|
|
||||||
|
|
||||||
|
This product includes GeoLite data created by MaxMind,
|
||||||
|
available from http://www.maxmind.com
|
||||||
|
Creative Commons Attribution-ShareAlike 4.0 International License
|
||||||
19
GeoIP/slack-desc
Normal file
19
GeoIP/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------------------------------------------------------|
|
||||||
|
GeoIP: GeoIP (GeoIP API and database)
|
||||||
|
GeoIP:
|
||||||
|
GeoIP: GeoIP is the proprietary technology that drives MaxMind's IP
|
||||||
|
GeoIP: geolocation data and services. GeoIP provides businesses with a
|
||||||
|
GeoIP: non-invasive way to determine geographical and other information
|
||||||
|
GeoIP: about their Internet visitors in real-time.
|
||||||
|
GeoIP:
|
||||||
|
GeoIP: "This product includes GeoLite data created by MaxMind, available
|
||||||
|
GeoIP: from http://www.maxmind.com" (CC BY-SA 4.0)
|
||||||
|
GeoIP:
|
||||||
|
GeoIP:
|
||||||
19
LICENSE
Normal file
19
LICENSE
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
Copyright 2022 Sergei Fedosoff <eleksir@gmail.com>.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code 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 FREEBSD PROJECT OR CONTRIBUTORS 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.
|
||||||
2
SDL_sound/README
Normal file
2
SDL_sound/README
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
SDL_sound is a library that handles the decoding of several popular
|
||||||
|
sound file formats, such as .WAV and .MP3.
|
||||||
95
SDL_sound/SDL_sound.SlackBuild
Normal file
95
SDL_sound/SDL_sound.SlackBuild
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for SDL_sound
|
||||||
|
|
||||||
|
# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
|
||||||
|
# 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=SDL_sound
|
||||||
|
VERSION=1.0.3
|
||||||
|
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 -eu
|
||||||
|
|
||||||
|
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 {} \;
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS -flto" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS -flto" \
|
||||||
|
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2 -Wl,-s" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--disable-static \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make -j$(nproc) install-strip DESTDIR=$PKG
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a CHANGELOG COPYING CREDITS INSTALL README TODO \
|
||||||
|
$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
SDL_sound/SDL_sound.info
Normal file
10
SDL_sound/SDL_sound.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="SDL_sound"
|
||||||
|
VERSION="1.0.3"
|
||||||
|
HOMEPAGE="http://icculus.org/SDL_sound/"
|
||||||
|
DOWNLOAD="http://icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz"
|
||||||
|
MD5SUM="aa09cd52df85d29bee87a664424c94b5"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
SDL_sound/slack-desc
Normal file
19
SDL_sound/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------------------------------------------------------|
|
||||||
|
SDL_sound: SDL_sound (a sound library add-on for SDL)
|
||||||
|
SDL_sound:
|
||||||
|
SDL_sound: SDL_sound is a library that handles the decoding of several popular
|
||||||
|
SDL_sound: sound file formats, such as .WAV and .MP3.
|
||||||
|
SDL_sound:
|
||||||
|
SDL_sound:
|
||||||
|
SDL_sound:
|
||||||
|
SDL_sound:
|
||||||
|
SDL_sound:
|
||||||
|
SDL_sound:
|
||||||
|
SDL_sound:
|
||||||
113
SoapyHackRF/SoapyHackRF.SlackBuild
Executable file
113
SoapyHackRF/SoapyHackRF.SlackBuild
Executable file
@@ -0,0 +1,113 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script for SoapyHackRF
|
||||||
|
|
||||||
|
# Copyright 2023 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.
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=SoapyHackRF
|
||||||
|
VERSION=${VERSION:-0.3.4}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
SRCNAM=soapy-hackrf
|
||||||
|
SRCDIR=SoapyHackRF-soapy-hackrf
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||||
|
# the name of the created package would be, and then exit. This information
|
||||||
|
# could be useful to other scripts.
|
||||||
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp/EXs}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
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 -mfpmath=sse -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2 -mavx -mavx2"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $SRCNAM-$VERSION
|
||||||
|
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||||
|
cd $SRCDIR-$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 {} \+
|
||||||
|
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -rdynamic" \
|
||||||
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -rdynamic" \
|
||||||
|
-DCMAKE_LINK_FLAGS:STRING="-rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2" \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||||
|
-DCMAKE_INSTALL_MANDIR=/usr/man \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
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/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a README.md LICENSE $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
|
||||||
|
cat $CWD/slack-required > $PKG/install/slack-required
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||||
10
SoapyHackRF/SoapyHackRF.info
Normal file
10
SoapyHackRF/SoapyHackRF.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="SoapyHackRF"
|
||||||
|
VERSION="0.3.4"
|
||||||
|
HOMEPAGE="https://github.com/pothosware/SoapyHackRF"
|
||||||
|
DOWNLOAD="https://github.com/pothosware/SoapyHackRF/archive/refs/tags/soapy-hackrf-0.3.4.tar.gz"
|
||||||
|
MD5SUM="7c43fa1c12466013ecc043e71b9b0185"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
SoapyHackRF/slack-desc
Normal file
19
SoapyHackRF/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------------------------------------------------------|
|
||||||
|
SoapyHackRF: SoapyHackRF (SoapySDR HackRF module)
|
||||||
|
SoapyHackRF:
|
||||||
|
SoapyHackRF: The Soapy Hack RF project provides a plugin module to use the Hack RF
|
||||||
|
SoapyHackRF: device within the SoapySDR API and software that supports SoapySDR.
|
||||||
|
SoapyHackRF:
|
||||||
|
SoapyHackRF:
|
||||||
|
SoapyHackRF:
|
||||||
|
SoapyHackRF:
|
||||||
|
SoapyHackRF:
|
||||||
|
SoapyHackRF:
|
||||||
|
SoapyHackRF:
|
||||||
2
SoapyHackRF/slack-required
Normal file
2
SoapyHackRF/slack-required
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
hackrf
|
||||||
|
SoapySDR
|
||||||
10
SoapySDR/README
Normal file
10
SoapySDR/README
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
Features
|
||||||
|
|
||||||
|
SoapySDR is an open-source generalized C/C++ API and runtime library
|
||||||
|
for interfacing with SDR devices. With SoapySDR, you can instantiate,
|
||||||
|
configure, and stream with an SDR device in a variety of environments.
|
||||||
|
Both osmosdr and uhd devices are available within SoapySDR. In
|
||||||
|
addition, vendors can directly support their hardware using SoapySDR
|
||||||
|
device modules. There are wrappers for both gr-osmosdr, uhd, and gr-uhd
|
||||||
|
to bring an ecosystem of existing applications to SoapySDR devices. And
|
||||||
|
SoapySDR has support for powerful platforms like GNU Radio and Pothos.
|
||||||
114
SoapySDR/SoapySDR.SlackBuild
Executable file
114
SoapySDR/SoapySDR.SlackBuild
Executable file
@@ -0,0 +1,114 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script for SoapySDR
|
||||||
|
|
||||||
|
# Copyright 2020 Alan Aversa USA
|
||||||
|
# Copyright 2023 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.
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=SoapySDR
|
||||||
|
VERSION=${VERSION:-0.8.1}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
SRCNAM=SoapySDR-soapy-sdr
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||||
|
# the name of the created package would be, and then exit. This information
|
||||||
|
# could be useful to other scripts.
|
||||||
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp/EXs}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
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 -mfpmath=sse -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2 -mavx -mavx2"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $SRCNAM-$VERSION
|
||||||
|
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||||
|
cd $SRCNAM-$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 {} \;
|
||||||
|
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -rdynamic" \
|
||||||
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -rdynamic" \
|
||||||
|
-DCMAKE_LINK_FLAGS:STRING="-rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2" \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||||
|
-DCMAKE_INSTALL_MANDIR=/usr/man \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
gzip -9 $PKG/usr/man/man?/*.?
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a README.md LICENSE_1_0.txt Changelog.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
|
||||||
10
SoapySDR/SoapySDR.info
Normal file
10
SoapySDR/SoapySDR.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="SoapySDR"
|
||||||
|
VERSION="0.8.1"
|
||||||
|
HOMEPAGE="https://github.com/pothosware/SoapySDR"
|
||||||
|
DOWNLOAD="https://github.com/pothosware/SoapySDR/archive/soapy-sdr-0.8.1/SoapySDR-soapy-sdr-0.8.1.tar.gz"
|
||||||
|
MD5SUM="64fbfc0ed4c4fa4dd3c4fe91ebb8c1c3"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
SoapySDR/slack-desc
Normal file
19
SoapySDR/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------------------------------------------------------|
|
||||||
|
SoapySDR: SoapySDR (vendor and platform neutral SDR support library)
|
||||||
|
SoapySDR:
|
||||||
|
SoapySDR: SoapySDR is an open-source generalized C/C++ API and runtime library
|
||||||
|
SoapySDR: for interfacing with SDR devices. With SoapySDR, you can instantiate,
|
||||||
|
SoapySDR: configure, and stream with an SDR device in a variety of
|
||||||
|
SoapySDR: environments. Both osmosdr and uhd devices are available within
|
||||||
|
SoapySDR: SoapySDR. In addition, vendors can directly support their hardware
|
||||||
|
SoapySDR: using SoapySDR device modules. There are wrappers for both gr-osmosdr,
|
||||||
|
SoapySDR: uhd, and gr-uhd to bring an ecosystem of existing applications to
|
||||||
|
SoapySDR: SoapySDR devices. And SoapySDR has support for powerful platforms like
|
||||||
|
SoapySDR: GNU Radio and Pothos.
|
||||||
7
axel/README
Normal file
7
axel/README
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
Axel accelerates the HTTP/FTP downloading process by using multiple
|
||||||
|
connections for one file. It can use multiple mirrors for a download.
|
||||||
|
Axel has no dependencies and is lightweight, so it might be useful as a
|
||||||
|
wget clone on byte-critical systems. Axel is the perfect utility for
|
||||||
|
those connections to wherever you are downloading from that may have a
|
||||||
|
limit on ftp stream speeds, http sessions that burst and slow down, or
|
||||||
|
servers with a slow connection.
|
||||||
109
axel/axel.SlackBuild
Normal file
109
axel/axel.SlackBuild
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script for axel
|
||||||
|
|
||||||
|
# Copyright 2008 Antonio Hernández Blas <hba.nihilismus@gmail.com>
|
||||||
|
# Copyright 2011 Matthew "mfillpot" Fillpot
|
||||||
|
# Copyright 2018-2022 Jostein Berntsen <jvbernts@online.no>
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# 20220403 bkw: Modified by SlackBuilds.org, BUILD=2:
|
||||||
|
# - strip the binary.
|
||||||
|
# - remove useless INSTALL from package doc dir.
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=axel
|
||||||
|
VERSION=${VERSION:-2.17.11}
|
||||||
|
BUILD=${BUILD:-2}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp/EXs}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
|
-exec chmod 644 {} \+
|
||||||
|
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS -flto -rdynamic" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS -flto -rdynamic" \
|
||||||
|
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2 -Wl,-s" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--mandir=/usr/man
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make install-strip DESTDIR=$PKG
|
||||||
|
gzip -9 $PKG/usr/man/man*/*
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a CONTRIBUTING.md COPYING NEWS README.md VERSION $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
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||||
10
axel/axel.info
Normal file
10
axel/axel.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="axel"
|
||||||
|
VERSION="2.17.11"
|
||||||
|
HOMEPAGE="https://github.com/axel-download-accelerator/axel"
|
||||||
|
DOWNLOAD="https://github.com/axel-download-accelerator/axel/releases/download/v2.17.11/axel-2.17.11.tar.gz"
|
||||||
|
MD5SUM="a03b18bc96fda568c6273e7affecbcc8"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
14
axel/doinst.sh
Normal file
14
axel/doinst.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
config() {
|
||||||
|
NEW="$1"
|
||||||
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
# If there's no config file by that name, mv it over:
|
||||||
|
if [ ! -r $OLD ]; then
|
||||||
|
mv $NEW $OLD
|
||||||
|
elif [ "$(cat $OLD|md5sum)" = "$(cat $NEW|md5sum)" ]; then
|
||||||
|
# toss the redundant copy
|
||||||
|
rm $NEW
|
||||||
|
fi
|
||||||
|
# Otherwise, we leave the .new copy for the admin to consider...
|
||||||
|
}
|
||||||
|
|
||||||
|
config etc/axelrc.new
|
||||||
19
axel/slack-desc
Normal file
19
axel/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------------------------------------------------------|
|
||||||
|
axel: axel (Download Accelerator)
|
||||||
|
axel:
|
||||||
|
axel: Axel tries to accelerate HTTP/FTP downloading process by using
|
||||||
|
axel: multiple connections for one file. It can use multiple mirrors for
|
||||||
|
axel: a download. Axel has no dependencies and is lightweight, so it might
|
||||||
|
axel: be useful as a wget clone on byte-critical systems.
|
||||||
|
axel:
|
||||||
|
axel: Homepage: https://github.com/axel-download-accelerator/axel
|
||||||
|
axel:
|
||||||
|
axel:
|
||||||
|
axel:
|
||||||
49
bitlbee/README
Normal file
49
bitlbee/README
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
BitlBee is an IRC instant messaging gateway licensed under the terms of
|
||||||
|
the GPL. It communicates with the end user via the IRC protocol whilst
|
||||||
|
interacting with popular chat networks such as AIM, ICQ, MSN, Yahoo,
|
||||||
|
and Jabber. The user's buddies appear as normal IRC users in a channel,
|
||||||
|
and conversations use the private message facility of IRC.
|
||||||
|
|
||||||
|
After your installation you will need to configure bitlbee. There are
|
||||||
|
two ways starting bitlbee: Either as a forked daemon (preferred), or
|
||||||
|
the old way of starting it through inetd (mostly deprecated these days).
|
||||||
|
|
||||||
|
Bitlbee now includes a standard rc.bitlbee. To have this start on bootup,
|
||||||
|
add the following code to /etc/rc.d/rc.local for example
|
||||||
|
|
||||||
|
if [ -x /etc/rc.d/rc.bitlbee ]; then
|
||||||
|
/etc/rc.d/rc.bitlbee start
|
||||||
|
fi
|
||||||
|
|
||||||
|
If you choose to use inetd , you need to modify your /etc/inetd.conf
|
||||||
|
so bitlbee will be started when /etc/rc.d/rc.inetd is called on bootup.
|
||||||
|
Add the line below to your /etc/inetd.conf file:
|
||||||
|
|
||||||
|
6667 stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/bitlbee
|
||||||
|
|
||||||
|
Restart inetd (/etc/rc.d/rc.inetd restart). All that is left to do now
|
||||||
|
is connect your irc client to the localhost.
|
||||||
|
|
||||||
|
OTR (Off the record) is not compiled by default. If you want bitlbee
|
||||||
|
to compile with OTR capabilities, you'll need to install libotr from
|
||||||
|
Slackware and run the script as follows:
|
||||||
|
|
||||||
|
OTR=yes ./bitlbee.SlackBuild
|
||||||
|
|
||||||
|
From version 3.2 bitlbee offers some form of skype support, even though
|
||||||
|
this will not ever be part of bitlbee proper. Please see the documentation
|
||||||
|
in protocols/skype in the source package for information. You can run the
|
||||||
|
script as following:
|
||||||
|
|
||||||
|
SKYPE=yes ./bitlbee.SlackBuild
|
||||||
|
|
||||||
|
NOTE: The default "bot"/bitlbee daemon is called 'root'. This is not
|
||||||
|
the root user on your system. You can easily change it. Register and
|
||||||
|
identify yourself first, and then:
|
||||||
|
|
||||||
|
rename root BitlBot (or whatever you want)
|
||||||
|
|
||||||
|
NOTE: Since bitlbee now runs as a daemon instead of from inetd, bitlbee
|
||||||
|
runs under its own user (UID/GID: 250). If you have older databases
|
||||||
|
of bitlbee, you may want to change the permissions on the files in
|
||||||
|
/var/lib/bitlbee.
|
||||||
181
bitlbee/bitlbee.SlackBuild
Executable file
181
bitlbee/bitlbee.SlackBuild
Executable file
@@ -0,0 +1,181 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for "bitlbee".
|
||||||
|
|
||||||
|
# Copyright 2007-2016 Michiel van Wessem, Leicester, United Kingdom
|
||||||
|
# Copyright 2016-2017 Marcel Saegebarth <marc@mos6581.de>
|
||||||
|
# Copyright 2023 Sergei Fedosoff <eleksir@gmail.com>
|
||||||
|
#
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions are
|
||||||
|
# met:
|
||||||
|
#
|
||||||
|
# * Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "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 COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS 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=bitlbee
|
||||||
|
VERSION=${VERSION:-3.6.20230804}
|
||||||
|
REVISION=acf26c3b667551fd3185acda189b28e166a6568b
|
||||||
|
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}
|
||||||
|
|
||||||
|
BITLBEE_USER=${BITLBEE_USER:-250}
|
||||||
|
BITLBEE_GROUP=${BITLBEE_GROUP:-250}
|
||||||
|
|
||||||
|
# Bail if user or group isn't valid on your system
|
||||||
|
if ! grep ^bitlbee: /etc/passwd 2>&1 > /dev/null; then
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
|
||||||
|
You must have a bitlbee user to run this script
|
||||||
|
|
||||||
|
# groupadd -g $BITLBEE_USER bitlbee
|
||||||
|
# useradd -u $BITLBEE_USER -d /var/lib/bitlbee -s /bin/false -g bitlbee bitlbee
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
exit
|
||||||
|
elif ! grep ^bitlbee: /etc/group 2>&1 > /dev/null; then
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
|
||||||
|
You must have a bitlbee group to run this script
|
||||||
|
# groupadd -g $BITLBEE_GROUP bitlbee
|
||||||
|
|
||||||
|
EOF
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
OTR=${OTR:-no}
|
||||||
|
if [ "$OTR" = "yes" ]; then
|
||||||
|
USEOTR=1
|
||||||
|
else
|
||||||
|
USEOTR=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
SKYPE=${SKYPE:-no}
|
||||||
|
if [ "$SKYPE" = "yes" ]; then
|
||||||
|
USESKYPE=1
|
||||||
|
else
|
||||||
|
USESKYPE=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $TMP/$PRGNAM-$VERSION
|
||||||
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
|
cd $PRGNAM-$REVISION
|
||||||
|
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 {} \+
|
||||||
|
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS -flto -rdynamic" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS -flto -rdynamic" \
|
||||||
|
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2 -Wl,-s" \
|
||||||
|
CPU="$ARCH" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--pcdir=/usr/lib${LIBDIRSUFFIX}/pkgconfig \
|
||||||
|
--plugindir=/usr/lib${LIBDIRSUFFIX}/$PRGNAM \
|
||||||
|
--config=/var/lib/$PRGNAM \
|
||||||
|
--etcdir=/etc/$PRGNAM \
|
||||||
|
--datadir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--twitter=1 \
|
||||||
|
--ipv6=1 \
|
||||||
|
--plugins=1 \
|
||||||
|
--debug=0 \
|
||||||
|
--purple=0 \
|
||||||
|
--strip=1 \
|
||||||
|
--ssl=${CRYPT:-openssl} \
|
||||||
|
--otr=${USEOTR} \
|
||||||
|
--skype=${USESKYPE} \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make -j$(nproc) all
|
||||||
|
make install install-dev install-etc install-doc install-plugins DESTDIR=$PKG
|
||||||
|
|
||||||
|
find $PKG | xargs 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
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/var/lib/$PRGNAM
|
||||||
|
cp -a \
|
||||||
|
COPYING doc/AUTHORS doc/CHANGES doc/CREDITS doc/FAQ doc/INSTALL \
|
||||||
|
doc/README doc/HACKING doc/bitlbee.xinetd doc/comic_3.0.png \
|
||||||
|
doc/example_plugin.c doc/user-guide/help.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec \
|
||||||
|
sed -i 's#/usr/local/#/usr/#' {} \;
|
||||||
|
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec \
|
||||||
|
sed -i 's#/etc/init.d/inetd#/etc/rc.d/rc.inetd#' {} \;
|
||||||
|
|
||||||
|
install -Dpm 0640 $CWD/$PRGNAM.conf $PKG/etc/$PRGNAM/$PRGNAM.conf.new
|
||||||
|
mv $PKG/etc/$PRGNAM/motd.txt $PKG/etc/$PRGNAM/motd.txt.new
|
||||||
|
chown -R $BITLBEE_USER:$BITLBEE_GROUP $PKG/var/lib/$PRGNAM
|
||||||
|
|
||||||
|
mkdir -p $PKG/etc/rc.d/
|
||||||
|
install -Dpm 0644 $CWD/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new
|
||||||
|
|
||||||
|
mkdir $PKG/install
|
||||||
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
180
bitlbee/bitlbee.conf
Normal file
180
bitlbee/bitlbee.conf
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
## BitlBee default configuration file
|
||||||
|
##
|
||||||
|
## Comments are marked like this. The rest of the file is INI-style. The
|
||||||
|
## comments should tell you enough about what all settings mean.
|
||||||
|
##
|
||||||
|
|
||||||
|
[settings]
|
||||||
|
|
||||||
|
## RunMode:
|
||||||
|
##
|
||||||
|
## Inetd -- Run from inetd (default)
|
||||||
|
## Daemon -- Run as a stand-alone daemon, serving all users from one process.
|
||||||
|
## This saves memory if there are more users, the downside is that when one
|
||||||
|
## user hits a crash-bug, all other users will also lose their connection.
|
||||||
|
## ForkDaemon -- Run as a stand-alone daemon, but keep all clients in separate
|
||||||
|
## child processes. This should be pretty safe and reliable to use instead
|
||||||
|
## of inetd mode.
|
||||||
|
##
|
||||||
|
RunMode = ForkDaemon
|
||||||
|
|
||||||
|
## User:
|
||||||
|
##
|
||||||
|
## If BitlBee is started by root as a daemon, it can drop root privileges,
|
||||||
|
## and change to the specified user.
|
||||||
|
##
|
||||||
|
User = bitlbee
|
||||||
|
|
||||||
|
## DaemonPort/DaemonInterface:
|
||||||
|
##
|
||||||
|
## For daemon mode, you can specify on what interface and port the daemon
|
||||||
|
## should be listening for connections.
|
||||||
|
##
|
||||||
|
DaemonInterface = 127.0.0.1
|
||||||
|
DaemonPort = 6667
|
||||||
|
|
||||||
|
## ClientInterface:
|
||||||
|
##
|
||||||
|
## If for any reason, you want BitlBee to use a specific address/interface
|
||||||
|
## for outgoing traffic (IM connections, HTTP(S), etc.), set it here.
|
||||||
|
##
|
||||||
|
# ClientInterface = 0.0.0.0
|
||||||
|
|
||||||
|
## AuthMode
|
||||||
|
##
|
||||||
|
## Open -- Accept connections from anyone, use NickServ for user authentication.
|
||||||
|
## (default)
|
||||||
|
## Closed -- Require authorization (using the PASS command during login) before
|
||||||
|
## allowing the user to connect at all.
|
||||||
|
## Registered -- Only allow registered users to use this server; this disables
|
||||||
|
## the register- and the account command until the user identifies itself.
|
||||||
|
##
|
||||||
|
AuthMode = Closed
|
||||||
|
|
||||||
|
## AuthBackend
|
||||||
|
##
|
||||||
|
## By default, the authentication data for a user is stored in the storage
|
||||||
|
## backend. If you want to authenticate against another authentication system
|
||||||
|
## (e.g. ldap), you can specify that here.
|
||||||
|
##
|
||||||
|
## Beware that this disables password changes and causes passwords for the
|
||||||
|
## accounts people create to be stored in plain text instead of encrypted with
|
||||||
|
## their bitlbee password.
|
||||||
|
##
|
||||||
|
## Currently available backends:
|
||||||
|
##
|
||||||
|
## - storage (internal storage)
|
||||||
|
## - pam (Linux PAM authentication)
|
||||||
|
## - ldap (LDAP server configured in the openldap settings)
|
||||||
|
#
|
||||||
|
AuthBackend = storage
|
||||||
|
#
|
||||||
|
|
||||||
|
## AuthPassword
|
||||||
|
##
|
||||||
|
## Password the user should enter when logging into a closed BitlBee server.
|
||||||
|
## You can also have a BitlBee-style MD5 hash here. Format: "md5:", followed
|
||||||
|
## by a hash as generated by "bitlbee -x hash <password>".
|
||||||
|
##
|
||||||
|
AuthPassword = ItllBeBitlBee ## Heh.. Our slogan. ;-)
|
||||||
|
## or
|
||||||
|
# AuthPassword = md5:gzkK0Ox/1xh+1XTsQjXxBJ571Vgl
|
||||||
|
|
||||||
|
## OperPassword
|
||||||
|
##
|
||||||
|
## Password that unlocks access to special operator commands.
|
||||||
|
##
|
||||||
|
OperPassword = ChangeMe!
|
||||||
|
## or
|
||||||
|
# OperPassword = md5:I0mnZbn1t4R731zzRdDN2/pK7lRX
|
||||||
|
|
||||||
|
## AllowAccountAdd
|
||||||
|
##
|
||||||
|
## Whether to allow registered and identified users to add new accounts using
|
||||||
|
## 'account add'
|
||||||
|
##
|
||||||
|
AllowAccountAdd 1
|
||||||
|
|
||||||
|
## HostName
|
||||||
|
##
|
||||||
|
## Normally, BitlBee gets a hostname using getsockname(). If you have a nicer
|
||||||
|
## alias for your BitlBee daemon, you can set it here and BitlBee will identify
|
||||||
|
## itself with that name instead.
|
||||||
|
##
|
||||||
|
HostName = localhost
|
||||||
|
|
||||||
|
## MotdFile
|
||||||
|
##
|
||||||
|
## Specify an alternative MOTD (Message Of The Day) file. Default value depends
|
||||||
|
## on the --etcdir argument to configure.
|
||||||
|
##
|
||||||
|
MotdFile = /etc/bitlbee/motd.txt
|
||||||
|
|
||||||
|
## ConfigDir
|
||||||
|
##
|
||||||
|
## Specify an alternative directory to store all the per-user configuration
|
||||||
|
## files. (.nicks/.accounts)
|
||||||
|
##
|
||||||
|
ConfigDir = /var/lib/bitlbee
|
||||||
|
|
||||||
|
## Ping settings
|
||||||
|
##
|
||||||
|
## BitlBee can send PING requests to the client to check whether it's still
|
||||||
|
## alive. This is not very useful on local servers, but it does make sense
|
||||||
|
## when most clients connect to the server over a real network interface.
|
||||||
|
## (Public servers) Pinging the client will make sure lost clients are
|
||||||
|
## detected and cleaned up sooner.
|
||||||
|
##
|
||||||
|
## PING requests are sent every PingInterval seconds. If no PONG reply has
|
||||||
|
## been received for PingTimeOut seconds, BitlBee aborts the connection.
|
||||||
|
##
|
||||||
|
## To disable the pinging, set at least one of these to 0.
|
||||||
|
##
|
||||||
|
PingInterval = 180
|
||||||
|
PingTimeOut = 300
|
||||||
|
|
||||||
|
## Using proxy servers for outgoing connections
|
||||||
|
##
|
||||||
|
## If you're running BitlBee on a host which is behind a restrictive firewall
|
||||||
|
## and a proxy server, you can tell BitlBee to use that proxy server here.
|
||||||
|
## The setting has to be a URL, formatted like one of these examples:
|
||||||
|
##
|
||||||
|
## (Obviously, the username and password are optional)
|
||||||
|
##
|
||||||
|
# Proxy = http://john:doe@proxy.localnet.com:8080
|
||||||
|
# Proxy = socks4://socksproxy.localnet.com
|
||||||
|
# Proxy = socks5://socksproxy.localnet.com
|
||||||
|
|
||||||
|
## Protocols offered by bitlbee
|
||||||
|
##
|
||||||
|
## As recompiling may be quite unpractical for some people, this option
|
||||||
|
## allows to remove the support of protocol, even if compiled in. If
|
||||||
|
## nothing is given, there are no restrictions.
|
||||||
|
##
|
||||||
|
Protocols = jabber yahoo
|
||||||
|
|
||||||
|
## Trusted CAs
|
||||||
|
##
|
||||||
|
## Path to a file containing a list of trusted certificate authorities used in
|
||||||
|
## the verification of server certificates.
|
||||||
|
##
|
||||||
|
## Uncomment this and make sure the file actually exists and contains all
|
||||||
|
## certificate authorities you're willing to accept (default value should
|
||||||
|
## work on at least Debian/Ubuntu systems with the "ca-certificates" package
|
||||||
|
## installed). As long as the line is commented out, SSL certificate
|
||||||
|
## verification is completely disabled.
|
||||||
|
##
|
||||||
|
## The location of this file may be different on other distros/OSes. For
|
||||||
|
## example, try /etc/ssl/ca-bundle.pem on OpenSUSE.
|
||||||
|
##
|
||||||
|
# CAfile = /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
[defaults]
|
||||||
|
|
||||||
|
## Here you can override the defaults for some per-user settings. Users are
|
||||||
|
## still able to override your defaults, so this is not a way to restrict
|
||||||
|
## your users...
|
||||||
|
|
||||||
|
## To enable private mode by default, for example:
|
||||||
|
|
||||||
|
## private = 1
|
||||||
10
bitlbee/bitlbee.info
Normal file
10
bitlbee/bitlbee.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="bitlbee"
|
||||||
|
VERSION="3.6.20230804"
|
||||||
|
HOMEPAGE="https://www.bitlbee.org"
|
||||||
|
DOWNLOAD="https://github.com/bitlbee/bitlbee/archive/acf26c3b667551fd3185acda189b28e166a6568b/bitlbee-3.6.20230804.tar.gz"
|
||||||
|
MD5SUM="e1e844bcfbc1e5061961eef885bf2a0f"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
26
bitlbee/doinst.sh
Normal file
26
bitlbee/doinst.sh
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
config() {
|
||||||
|
NEW="$1"
|
||||||
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
if [ ! -r $OLD ]; then
|
||||||
|
mv $NEW $OLD
|
||||||
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
|
||||||
|
rm $NEW
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
preserve_perms() {
|
||||||
|
NEW="$1"
|
||||||
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
if [ -e $OLD ]; then
|
||||||
|
cp -a $OLD ${NEW}.incoming
|
||||||
|
cat $NEW > ${NEW}.incoming
|
||||||
|
mv ${NEW}.incoming $NEW
|
||||||
|
fi
|
||||||
|
config $NEW
|
||||||
|
}
|
||||||
|
|
||||||
|
preserve_perms etc/rc.d/rc.bitlbee.new
|
||||||
|
config etc/bitlbee/bitlbee.conf.new
|
||||||
|
config etc/bitlbee/motd.txt.new
|
||||||
|
groupadd -g 250 bitlbee
|
||||||
|
useradd -u 250 -d /var/lib/bitlbee -s /bin/false -g 250 bitlbee
|
||||||
94
bitlbee/rc.bitlbee
Normal file
94
bitlbee/rc.bitlbee
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for "bitlbee".
|
||||||
|
|
||||||
|
# Copyright 2007-2016 Michiel van Wessem, Leicester, United Kingdom
|
||||||
|
# Copyright 2016 Marcel Saegebarth <marc@mos6581.de>
|
||||||
|
# Copyright 2016 Avinash H. Duduskar <avinash.duduskar@gmail.com>
|
||||||
|
# Copyright 2023 Sergei Fedosoff <eleksir@gmail.com>
|
||||||
|
#
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions are
|
||||||
|
# met:
|
||||||
|
#
|
||||||
|
# * Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "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 COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS 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.
|
||||||
|
|
||||||
|
# /etc/rc.d/rc.bitlbee - Start/stop/restart the bitlbee daemon.
|
||||||
|
# To make bitlbee start automatically at boot, make this
|
||||||
|
# file executable: chmod 0755 /etc/rc.d/rc.bitlbee and add it
|
||||||
|
# to slackware's startup scripts (ie: rc.local)
|
||||||
|
#
|
||||||
|
|
||||||
|
source /etc/defaults/bitlbee
|
||||||
|
BITLBEE_CONFIG="/etc/bitlbee/bitlbee.conf"
|
||||||
|
PIDFILE="/run/bitlbee.pid"
|
||||||
|
SOCKFILE="/run/bitlbee.sock"
|
||||||
|
|
||||||
|
bitlbee_start() {
|
||||||
|
# make sure bitlbee isn't running yet
|
||||||
|
if [ ! -f $PIDFILE ]; then
|
||||||
|
/usr/sbin/bitlbee -P $PIDFILE $BITLBEE_OPTS
|
||||||
|
else
|
||||||
|
echo "bitlbee is already active and running under PID: $(cat $PIDFILE)"
|
||||||
|
echo "if you think this is wrong, remove the offending PID file"
|
||||||
|
echo "and restart bitlbee"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
bitlbee_stop() {
|
||||||
|
echo -n "Stopping bitlbee..."
|
||||||
|
|
||||||
|
if [ -r $PIDFILE ]; then
|
||||||
|
kill $(cat $PIDFILE)
|
||||||
|
|
||||||
|
for i in 1 2 3; do
|
||||||
|
if [ -f $PIDFILE ]; then
|
||||||
|
sleep 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -r $PIDFILE ]; then
|
||||||
|
kill -9 $(cat $PIDFILE) 2>/dev/null
|
||||||
|
rm $PIDFILE
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "done"
|
||||||
|
else
|
||||||
|
echo "Unable to find $PIDFILE and stop bitlbee"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Let's see how we are being called.
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
bitlbee_start
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
bitlbee_stop
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
bitlbee_stop
|
||||||
|
sleep 3
|
||||||
|
bitlbee_start
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $(basename $0) {start|stop|restart}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
19
bitlbee/slack-desc
Normal file
19
bitlbee/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------------------------------------------------------|
|
||||||
|
bitlbee: bitlbee (an IRC instant messaging gateway)
|
||||||
|
bitlbee:
|
||||||
|
bitlbee: BitlBee is an IRC instant messaging gateway licensed under
|
||||||
|
bitlbee: the terms of the GPLicense. It communicates with the end
|
||||||
|
bitlbee: user via the IRC protocol whilst interacting with popular
|
||||||
|
bitlbee: chat networks such as AIM, ICQ, MSN, Yahoo and Jabber.
|
||||||
|
bitlbee: The users buddies appear as normal IRC users in a channel
|
||||||
|
bitlbee: and conversations use the private message facility of IRC
|
||||||
|
bitlbee: compiled with: msn, yahoo, jabber and oscar protocols
|
||||||
|
bitlbee: Homepage: http://www.bitlbee.org
|
||||||
|
bitlbee:
|
||||||
59
bluez/bluez-5.51-obexd_without_systemd-1.patch
Normal file
59
bluez/bluez-5.51-obexd_without_systemd-1.patch
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
Submitted By: Armin K. <krejzi at email dot com>
|
||||||
|
Date: 2013-04-29
|
||||||
|
Initial Package Version: 5.17
|
||||||
|
Upstream Status: unknown
|
||||||
|
Origin: Arch Linux (Giovanni Campagna)
|
||||||
|
Description: Allow using obexd without systemd in the user session
|
||||||
|
|
||||||
|
Not all sessions run systemd --user (actually, the majority
|
||||||
|
doesn't), so the dbus daemon must be able to spawn obexd
|
||||||
|
directly, and to do so it needs the full path of the daemon.
|
||||||
|
---
|
||||||
|
Makefile.obexd | 4 ++--
|
||||||
|
obexd/src/org.bluez.obex.service | 4 ----
|
||||||
|
obexd/src/org.bluez.obex.service.in | 4 ++++
|
||||||
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
||||||
|
delete mode 100644 obexd/src/org.bluez.obex.service
|
||||||
|
create mode 100644 obexd/src/org.bluez.obex.service.in
|
||||||
|
|
||||||
|
--- ./Makefile.obexd.orig 2019-09-19 13:51:02.000000000 -0500
|
||||||
|
+++ ./Makefile.obexd 2019-09-20 14:10:10.647348607 -0500
|
||||||
|
@@ -1,12 +1,12 @@
|
||||||
|
if SYSTEMD
|
||||||
|
systemduserunitdir = $(SYSTEMD_USERUNITDIR)
|
||||||
|
systemduserunit_DATA = obexd/src/obex.service
|
||||||
|
+endif
|
||||||
|
|
||||||
|
dbussessionbusdir = $(DBUS_SESSIONBUSDIR)
|
||||||
|
dbussessionbus_DATA = obexd/src/org.bluez.obex.service
|
||||||
|
-endif
|
||||||
|
|
||||||
|
-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
|
||||||
|
+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in
|
||||||
|
|
||||||
|
if OBEX
|
||||||
|
|
||||||
|
diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service
|
||||||
|
deleted file mode 100644
|
||||||
|
index a538088..0000000
|
||||||
|
--- a/obexd/src/org.bluez.obex.service
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -1,4 +0,0 @@
|
||||||
|
-[D-BUS Service]
|
||||||
|
-Name=org.bluez.obex
|
||||||
|
-Exec=/bin/false
|
||||||
|
-SystemdService=dbus-org.bluez.obex.service
|
||||||
|
diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..9c815f2
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/obexd/src/org.bluez.obex.service.in
|
||||||
|
@@ -0,0 +1,4 @@
|
||||||
|
+[D-BUS Service]
|
||||||
|
+Name=org.bluez.obex
|
||||||
|
+Exec=@libexecdir@/bluetooth/obexd
|
||||||
|
+SystemdService=dbus-org.bluez.obex.service
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
|
|
||||||
16
bluez/bluez-5.70.tar.sign
Normal file
16
bluez/bluez-5.70.tar.sign
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQIcBAABAgAGBQJlFelRAAoJEAbKn10dzyZZkbsP/1H4rf9IiO6QtMfkvj83o+7e
|
||||||
|
UKGnyRTB3x5ZebDVyK2cc9ODE3jtjpmu+1goWMnI2s+7jd9GAM1hDZIUQcupQGoi
|
||||||
|
hqcFkGHU5cqV9H40BLPYXAk3GJY3r9DRcGqlB6XrDl2BRPsIXb97q00MA43Wauob
|
||||||
|
kLMqu1nt2lk92aeFZV1bh8n+evqxJyNMCvUPHcoNb1jIhfA7vXkW1VWagdyGhYMC
|
||||||
|
y0rVs6S1xcuPV+mBOS2jGtDMtlV8HZ2+TdJ8gTG7Vx08nTTyGnvFgS3fzhsZKFJI
|
||||||
|
znuUwpvmTeQednDlGkQ5gi5nwdadoKSX7jHxXXd9PyuXaG5WAWJj7SKnBZVbGolG
|
||||||
|
5JCt6Dlo1Yb9nVbUAAITw9VCjDYibV8K/q06MvAcsusGnWCjiZXhM7RMdOdOx2qt
|
||||||
|
oRECq5mm5fqnRDwgsf1JDnnJ2sBmKwp7frVds1ehFxHOmOU658RDe894h4Jz8eyi
|
||||||
|
yOyEgcDhwdNAxr4znhNWikTizM31dqLYSPQQczQ3qzRuA/hovz7qRf2ur8zThRWd
|
||||||
|
7ddX5xpxRtCH0N5ta4xwxJqxgBBK7l5MAf8ATnKflmH5M8Gr+kJnbzqXGDq9VXtg
|
||||||
|
MGA7GW5H/h2Bvx5kwk7E4KhewAzufgnUt+akAFvcCei/+bTn1Nb0RW+bLQQH//yi
|
||||||
|
7CeNF34X0md65QuMXBWE
|
||||||
|
=dWCv
|
||||||
|
-----END PGP SIGNATURE-----
|
||||||
199
bluez/bluez.SlackBuild
Executable file
199
bluez/bluez.SlackBuild
Executable file
@@ -0,0 +1,199 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Copyright 2009, 2010, 2011, 2012, 2013, 2016, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PKGNAM=bluez
|
||||||
|
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
|
||||||
|
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
|
||||||
|
|
||||||
|
# Automatically determine the architecture we're building on:
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) export ARCH=i586 ;;
|
||||||
|
arm*) export ARCH=arm ;;
|
||||||
|
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||||
|
*) export ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||||
|
# the name of the created package would be, and then exit. This information
|
||||||
|
# could be useful to other scripts.
|
||||||
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$ARCH" = "i586" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "s390" ]; then
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp}
|
||||||
|
PKG=$TMP/package-$PKGNAM
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PKGNAM-$VERSION
|
||||||
|
tar xvf $CWD/${PKGNAM}-${VERSION}.tar.?z || exit 1
|
||||||
|
cd $PKGNAM-$VERSION || exit 1
|
||||||
|
chown -R root:root .
|
||||||
|
find . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
-exec chmod 755 {} \+ -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
|
-exec chmod 644 {} \+
|
||||||
|
|
||||||
|
cat $CWD/bluez-5.51-obexd_without_systemd-1.patch.gz | patch -p1 --verbose || exit 1
|
||||||
|
|
||||||
|
sed -i -e 's|-lreadline|\0 -lncursesw|g' Makefile.{in,tools}
|
||||||
|
|
||||||
|
autoreconf -vif
|
||||||
|
|
||||||
|
# We're adding --enable-deprecated due to this commit:
|
||||||
|
#
|
||||||
|
# commit b1eb2c4cd057624312e0412f6c4be000f7fc3617
|
||||||
|
#Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
|
||||||
|
#Date: Wed Jan 4 14:23:58 2017 +0200
|
||||||
|
#
|
||||||
|
# build: Hide deprecated tools under --enable-deprecated
|
||||||
|
#
|
||||||
|
# This marks the following tools as deprecated as they are not longer
|
||||||
|
# maintained or have been replaced by other tools:
|
||||||
|
#
|
||||||
|
# hciattach hciconfig hcitool hcidump rfcomm sdptool ciptool gatttool
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
LDFLAGS="-L/usr/lib$LIBDIRSUFFIX" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--docdir=/usr/doc/${PKGNAM}-${VERSION} \
|
||||||
|
--enable-library \
|
||||||
|
--disable-systemd \
|
||||||
|
--enable-deprecated \
|
||||||
|
--build=$ARCH-slackware-linux || exit 1
|
||||||
|
|
||||||
|
make $NUMJOBS || make || exit 1
|
||||||
|
make install DESTDIR=$PKG || exit 1
|
||||||
|
|
||||||
|
# Don't ship .la files:
|
||||||
|
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
|
||||||
|
|
||||||
|
# Use reset=1 for the btusb module, which supposedly fixes reconnect problems:
|
||||||
|
mkdir -p $PKG/lib/modprobe.d
|
||||||
|
cp -a $CWD/btusb.conf $PKG/lib/modprobe.d
|
||||||
|
chown root:root $PKG/lib/modprobe.d/btusb.conf
|
||||||
|
chmod 644 $PKG/lib/modprobe.d/btusb.conf
|
||||||
|
|
||||||
|
# Add bluetoothd to /usr/sbin
|
||||||
|
mkdir -p $PKG/usr/sbin
|
||||||
|
ln -s ../libexec/bluetooth/bluetoothd $PKG/usr/sbin
|
||||||
|
|
||||||
|
# Move the dbus config file to the system directory
|
||||||
|
mkdir -p $PKG/usr/share/dbus-1/system.d/
|
||||||
|
mv $PKG/etc/dbus-1/system.d/* $PKG/usr/share/dbus-1/system.d/
|
||||||
|
rmdir --parents $PKG/etc/dbus-1/system.d/
|
||||||
|
|
||||||
|
# Fix substitution in /usr/share/dbus-1/services/org.bluez.obex.service:
|
||||||
|
if [ -x $PKG/usr/libexec/bluetooth/obexd ]; then
|
||||||
|
sed -i "s|@libexecdir@|/usr/libexec|g" $PKG/usr/share/dbus-1/services/org.bluez.obex.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install the configuration files
|
||||||
|
mkdir -p $PKG/etc/bluetooth $PKG/etc/default
|
||||||
|
cat src/main.conf > $PKG/etc/bluetooth/main.conf.new
|
||||||
|
cat profiles/input/input.conf > $PKG/etc/bluetooth/input.conf.new
|
||||||
|
cat profiles/network/network.conf > $PKG/etc/bluetooth/network.conf.new
|
||||||
|
cat $CWD/config/uart.conf > $PKG/etc/bluetooth/uart.conf.new
|
||||||
|
cat $CWD/config/defaultconfig > $PKG/etc/default/bluetooth.new
|
||||||
|
|
||||||
|
# Add an init script
|
||||||
|
mkdir -p $PKG/etc/rc.d
|
||||||
|
cat $CWD/config/rc.bluetooth > $PKG/etc/rc.d/rc.bluetooth.new
|
||||||
|
|
||||||
|
# Let's go ahead and let that start by default, unless an existing init
|
||||||
|
# script is not executable:
|
||||||
|
chmod 755 $PKG/etc/rc.d/rc.bluetooth.new
|
||||||
|
|
||||||
|
# If the deprecated utility gatttool was built, go ahead and install it:
|
||||||
|
if [ -x attrib/gatttool ]; then
|
||||||
|
cp attrib/gatttool $PKG/usr/bin
|
||||||
|
chown root:root $PKG/usr/bin/gatttool
|
||||||
|
chmod 755 $PKG/usr/bin/gatttool
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Compress and if needed symlink the man pages:
|
||||||
|
if [ -d $PKG/usr/man ]; then
|
||||||
|
( cd $PKG/usr/man
|
||||||
|
for manpagedir in $(find . -type d -name "man*") ; do
|
||||||
|
( cd $manpagedir
|
||||||
|
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||||
|
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||||
|
rm $eachpage
|
||||||
|
done
|
||||||
|
gzip -9 *.?
|
||||||
|
)
|
||||||
|
done
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
|
||||||
|
cp -a \
|
||||||
|
AUTHORS COPYING* INSTALL README* TODO \
|
||||||
|
$PKG/usr/doc/$PKGNAM-$VERSION
|
||||||
|
|
||||||
|
# If there's a ChangeLog, installing at least part of the recent history
|
||||||
|
# is useful, but don't let it get totally out of control:
|
||||||
|
if [ -r ChangeLog ]; then
|
||||||
|
DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION)
|
||||||
|
cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
|
||||||
|
touch -r ChangeLog $DOCSDIR/ChangeLog
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
|
||||||
|
cat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||||
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
|
||||||
1
bluez/bluez.url
Normal file
1
bluez/bluez.url
Normal file
@@ -0,0 +1 @@
|
|||||||
|
http://www.kernel.org/pub/linux/bluetooth
|
||||||
3
bluez/btusb.conf
Normal file
3
bluez/btusb.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# use "reset=1" as default, since it should be safe for recent devices and
|
||||||
|
# solves all kind of problems.
|
||||||
|
options btusb reset=1
|
||||||
9
bluez/config/defaultconfig
Normal file
9
bluez/config/defaultconfig
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# /etc/default/bluetooth
|
||||||
|
|
||||||
|
# A space delimited list of devices to start at boot time:
|
||||||
|
ACTIVE_HCI_DEVICES_ON_BOOT="hci0"
|
||||||
|
|
||||||
|
# A semicolon delimited list of SDP (Service Discovery Protocol)
|
||||||
|
# operations for bluetooth devices. See the sdptool for more details.
|
||||||
|
SDPTOOL_OPTIONS=""
|
||||||
|
|
||||||
74
bluez/config/rc.bluetooth
Normal file
74
bluez/config/rc.bluetooth
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# /etc/rc.d/rc.bluetooth (based on BLFS script)
|
||||||
|
|
||||||
|
# Populated from /etc/default/bluetooth:
|
||||||
|
# ACTIVE_HCI_DEVICES_ON_BOOT and SDPTOOL_OPTIONS
|
||||||
|
|
||||||
|
[ -r /etc/default/bluetooth ] && . /etc/default/bluetooth
|
||||||
|
|
||||||
|
start_hci_dev() {
|
||||||
|
for dev in ${ACTIVE_HCI_DEVICES_ON_BOOT} ; do
|
||||||
|
hciconfig $dev up > /dev/null 2>&1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
run_sdptool() {
|
||||||
|
# Declaring IFS local in this function, removes the need to save/restore it
|
||||||
|
local IFS option
|
||||||
|
test -x /usr/bin/sdptool || return 1
|
||||||
|
IFS=";"
|
||||||
|
for option in ${SDPTOOL_OPTIONS}; do
|
||||||
|
IFS=" "
|
||||||
|
/usr/bin/sdptool $option > /dev/null 2>&1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
start_uarts() {
|
||||||
|
[ -r /etc/bluetooth/uart.conf ] || return
|
||||||
|
grep -v '^[[:space:]]*(#|$)' /etc/bluetooth/uart.conf | grep -v "^#" | sed -r '/^\s*$/d' | while read i; do
|
||||||
|
/usr/bin/hciattach $i > /dev/null 2>&1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
stop_uarts() {
|
||||||
|
killall /usr/bin/hciattach > /dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
|
start() {
|
||||||
|
if [ -d /sys/class/bluetooth ]; then
|
||||||
|
# Start as background process and assume OK
|
||||||
|
echo -n "Starting Bluetooth services: bluetoothd "
|
||||||
|
/usr/sbin/bluetoothd &
|
||||||
|
echo -n "hciconfig "
|
||||||
|
start_hci_dev
|
||||||
|
echo -n "sdptool "
|
||||||
|
run_sdptool
|
||||||
|
echo "hciattach"
|
||||||
|
start_uarts
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
stop_uarts
|
||||||
|
killall /usr/sbin/bluetoothd > /dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
|
case "${1}" in
|
||||||
|
start)
|
||||||
|
start
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
stop
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
stop
|
||||||
|
sleep 1
|
||||||
|
start
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: ${0} {start|stop|restart}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
6
bluez/config/uart.conf
Normal file
6
bluez/config/uart.conf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# /etc/bluetooth/uart.conf
|
||||||
|
|
||||||
|
# Attach serial devices via UART HCI to BlueZ stack
|
||||||
|
# Use one line per device
|
||||||
|
# See the hciattach man page for options
|
||||||
|
|
||||||
26
bluez/doinst.sh
Normal file
26
bluez/doinst.sh
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
config() {
|
||||||
|
NEW="$1"
|
||||||
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
# If there's no config file by that name, mv it over:
|
||||||
|
if [ ! -r $OLD ]; then
|
||||||
|
mv $NEW $OLD
|
||||||
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
|
||||||
|
rm $NEW
|
||||||
|
fi
|
||||||
|
# Otherwise, we leave the .new copy for the admin to consider...
|
||||||
|
}
|
||||||
|
|
||||||
|
# Keep same perms on rc.bluetooth.new:
|
||||||
|
if [ -e etc/rc.d/rc.bluetooth ]; then
|
||||||
|
cp -a etc/rc.d/rc.bluetooth etc/rc.d/rc.bluetooth.new.incoming
|
||||||
|
cat etc/rc.d/rc.bluetooth.new > etc/rc.d/rc.bluetooth.new.incoming
|
||||||
|
mv etc/rc.d/rc.bluetooth.new.incoming etc/rc.d/rc.bluetooth.new
|
||||||
|
fi
|
||||||
|
|
||||||
|
config etc/rc.d/rc.bluetooth.new
|
||||||
|
config etc/bluetooth/input.conf.new
|
||||||
|
config etc/bluetooth/main.conf.new
|
||||||
|
config etc/bluetooth/network.conf.new
|
||||||
|
config etc/bluetooth/uart.conf.new
|
||||||
|
config etc/default/bluetooth.new
|
||||||
|
|
||||||
19
bluez/slack-desc
Normal file
19
bluez/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 ':'.
|
||||||
|
|
||||||
|
|-----handy-ruler------------------------------------------------------|
|
||||||
|
bluez: bluez (Bluetooth libraries and utilities)
|
||||||
|
bluez:
|
||||||
|
bluez: Bluez is the Bluetooth stack for Linux, allowing Bluetooth adaptors
|
||||||
|
bluez: and devices to be used with Linux. This package contains the Bluez
|
||||||
|
bluez: libraries, utilities, and other support files.
|
||||||
|
bluez:
|
||||||
|
bluez: Homepage: http://www.bluez.org
|
||||||
|
bluez:
|
||||||
|
bluez:
|
||||||
|
bluez:
|
||||||
|
bluez:
|
||||||
8
cabextract/README
Normal file
8
cabextract/README
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
cabextract is Free Software for extracting Microsoft cabinet files,
|
||||||
|
also called .CAB files, on UNIX or UNIX-like systems. cabextract is
|
||||||
|
distributed under the GPL license. It is based on the portable LGPL
|
||||||
|
libmspack library. cabextract supports all special features and all
|
||||||
|
compression formats of Microsoft cabinet files.
|
||||||
|
Microsoft cabinet files are used to distribute all kinds of data and
|
||||||
|
software: core Web fonts, Longhorn videos, operating system updates
|
||||||
|
and video codecs, to give some examples.
|
||||||
117
cabextract/cabextract.SlackBuild
Executable file
117
cabextract/cabextract.SlackBuild
Executable file
@@ -0,0 +1,117 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script for cabextract
|
||||||
|
|
||||||
|
# Copyright 2006-2010 Yalla-One <yallaone@gmail.com>
|
||||||
|
# Copyright 2011-2023 Gregory J. L. Tourte <artourter@gmail.com
|
||||||
|
# Copyright 2023 Sergei Fedosoff <s.fedosov@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.
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=cabextract
|
||||||
|
VERSION=${VERSION:-1.11}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||||
|
# the name of the created package would be, and then exit. This information
|
||||||
|
# could be useful to other scripts.
|
||||||
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp/EXs}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
tar xvf $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 {} \;
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS -rdynamic" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS -rdynamic" \
|
||||||
|
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make check
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
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/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a AUTHORS COPYING ChangeLog NEWS README TODO doc/wince_cab_format.html $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
mkdir -p $PKG/etc/file/magic
|
||||||
|
install -m 644 doc/magic $PKG/etc/file/magic/mscabinet
|
||||||
|
|
||||||
|
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
|
||||||
10
cabextract/cabextract.info
Normal file
10
cabextract/cabextract.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="cabextract"
|
||||||
|
VERSION="1.11"
|
||||||
|
HOMEPAGE="https://www.cabextract.org.uk"
|
||||||
|
DOWNLOAD="https://www.cabextract.org.uk/cabextract-1.11.tar.gz"
|
||||||
|
MD5SUM="3f678e8cb815f26d73e9413913b20505"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
cabextract/slack-desc
Normal file
19
cabextract/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------------------------------------------------------|
|
||||||
|
cabextract: cabextract (Extract Microsoft cabinet files)
|
||||||
|
cabextract:
|
||||||
|
cabextract: cabextract is Free Software for extracting Microsoft cabinet files,
|
||||||
|
cabextract: also called .CAB files, on UNIX or UNIX-like systems. cabextract is
|
||||||
|
cabextract: distributed under the GPL license. It is based on the portable LGPL
|
||||||
|
cabextract: libmspack library. cabextract supports all special features and all
|
||||||
|
cabextract: compression formats of Microsoft cabinet files.
|
||||||
|
cabextract: Microsoft cabinet files are used to distribute all kinds of data and
|
||||||
|
cabextract: software: core Web fonts, Longhorn videos, operating system updates
|
||||||
|
cabextract: and video codecs, to give some examples.
|
||||||
|
cabextract:
|
||||||
17
chrony/10-main.conf
Normal file
17
chrony/10-main.conf
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Time drift stats history
|
||||||
|
driftfile /var/lib/chrony/drift
|
||||||
|
|
||||||
|
# Log here
|
||||||
|
logdir /var/log/chrony
|
||||||
|
|
||||||
|
# Lock process in memory, disable swapping
|
||||||
|
lock_all
|
||||||
|
|
||||||
|
# For quickier time sync during boot-up process
|
||||||
|
makestep 1.0 3
|
||||||
|
|
||||||
|
# Sync time to system clock
|
||||||
|
rtcsync
|
||||||
|
|
||||||
|
# No remote control/monitoring
|
||||||
|
cmdport 0
|
||||||
1
chrony/50-sources.conf
Normal file
1
chrony/50-sources.conf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pool pool.ntp.org iburst
|
||||||
20
chrony/README
Normal file
20
chrony/README
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
chrony is a versatile implementation of the Network Time Protocol (NTP). It can
|
||||||
|
synchronise the system clock with NTP servers, reference clocks (e.g. GPS
|
||||||
|
receiver), and manual input using wristwatch and keyboard. It can also operate
|
||||||
|
as an NTPv4 (RFC 5905) server and peer to provide a time service to other
|
||||||
|
computers in the network.
|
||||||
|
|
||||||
|
It is designed to perform well in a wide range of conditions, including
|
||||||
|
intermittent network connections, heavily congested networks, changing
|
||||||
|
temperatures (ordinary computer clocks are sensitive to temperature), and
|
||||||
|
systems that do not run continuosly, or run on a virtual machine.
|
||||||
|
|
||||||
|
Typical accuracy between two machines synchronised over the Internet is within
|
||||||
|
a few milliseconds; on a LAN, accuracy is typically in tens of microseconds.
|
||||||
|
With hardware timestamping, or a hardware reference clock, sub-microsecond
|
||||||
|
accuracy may be possible.
|
||||||
|
|
||||||
|
Two programs are included in chrony, chronyd is a daemon that can be started
|
||||||
|
at boot time and chronyc is a command-line interface program which can be used
|
||||||
|
to monitor chronyd’s performance and to change various operating parameters
|
||||||
|
whilst it is running.
|
||||||
119
chrony/chrony.SlackBuild
Normal file
119
chrony/chrony.SlackBuild
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for chrony
|
||||||
|
|
||||||
|
# Copyright 2015-2018 Richard Ellis (USA)
|
||||||
|
# Copyright 2020 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=chrony
|
||||||
|
VERSION=${VERSION:-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}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
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 {} \+
|
||||||
|
|
||||||
|
CC=${CC:-gcc} \
|
||||||
|
CFLAGS="$SLKCFLAGS -flto -rdynamic" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS -flto -rdynamic" \
|
||||||
|
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2 -Wl,-s" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--with-user=ntp \
|
||||||
|
--enable-ntp-signd \
|
||||||
|
--with-pidfile=/run/chrony/chrony.pid \
|
||||||
|
--with-hwclockfile=/etc/adjtime \
|
||||||
|
--with-rtcdevice=/dev/rtc \
|
||||||
|
--chronyvardir=/var/lib/chrony \
|
||||||
|
--chronyrundir=/run/chrony \
|
||||||
|
--with-sendmail=/usr/sbin/sendmail
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
install -Dpm 0644 $CWD/chrony.conf $PKG/etc/chrony.conf.new
|
||||||
|
install -Dpm 0644 $CWD/10-main.conf $PKG/etc/chrony.d/10-main.conf.new
|
||||||
|
install -Dpm 0644 $CWD/50-sources.conf $PKG/etc/chrony.d/50-sources.conf.new
|
||||||
|
install -Dpm 0644 $CWD/rc.chrony $PKG/etc/rc.d/rc.chrony.new
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a contrib/ examples/ COPYING FAQ INSTALL NEWS README $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
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
1
chrony/chrony.conf
Normal file
1
chrony/chrony.conf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
confdir /etc/chrony.d
|
||||||
10
chrony/chrony.info
Normal file
10
chrony/chrony.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="chrony"
|
||||||
|
VERSION="4.2"
|
||||||
|
HOMEPAGE="https://chrony.tuxfamily.org/"
|
||||||
|
DOWNLOAD="https://download.tuxfamily.org/chrony/chrony-4.2.tar.gz"
|
||||||
|
MD5SUM="07282f8e76a4399d6c17009bb6345614"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
25
chrony/doinst.sh
Normal file
25
chrony/doinst.sh
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
config() {
|
||||||
|
NEW="$1"
|
||||||
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
if [ ! -r $OLD ]; then
|
||||||
|
mv $NEW $OLD
|
||||||
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||||
|
rm $NEW
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
preserve_perms() {
|
||||||
|
NEW="$1"
|
||||||
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
if [ -e $OLD ]; then
|
||||||
|
cp -a $OLD ${NEW}.incoming
|
||||||
|
cat $NEW > ${NEW}.incoming
|
||||||
|
mv ${NEW}.incoming $NEW
|
||||||
|
fi
|
||||||
|
config $NEW
|
||||||
|
}
|
||||||
|
|
||||||
|
config etc/chrony.conf.new
|
||||||
|
config etc/chrony.d/10-main.conf.new
|
||||||
|
config etc/chrony.d/50-sources.conf.new
|
||||||
|
preserve_perms etc/rc.d/rc.chrony.new
|
||||||
86
chrony/rc.chrony
Normal file
86
chrony/rc.chrony
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
DAEMON=/usr/sbin/chronyd
|
||||||
|
RUNDIR=/run/chrony
|
||||||
|
VARDIR=/var/lib/chrony
|
||||||
|
LOGDIR=/var/log/chrony
|
||||||
|
PIDFILE=${RUNDIR}/chrony.pid
|
||||||
|
USER=ntp
|
||||||
|
GROUP=ntp
|
||||||
|
|
||||||
|
# Start/stop/restart chrony daemon.
|
||||||
|
__start() {
|
||||||
|
if [ -e $RUNDIR ]; then
|
||||||
|
chown -R ${USER}:${GROUP} $RUNDIR
|
||||||
|
else
|
||||||
|
install -dm 0750 -o $USER -g $GROUP $RUNDIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e $VARDIR ]; then
|
||||||
|
chown -R ${USER}:${GROUP} $VARDIR
|
||||||
|
else
|
||||||
|
install -dm 0755 -o $USER -g $GROUP $VARDIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e $LOGDIR ]; then
|
||||||
|
chown -R ${USER}:${GROUP} $LOGDIR
|
||||||
|
else
|
||||||
|
install -dm 0755 -o $USER -g $GROUP $LOGDIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e ${VARDIR}/drift ]; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
touch ${VARDIR}/drift
|
||||||
|
fi
|
||||||
|
|
||||||
|
chown ${USER}:${GROUP} ${VARDIR}/drift
|
||||||
|
|
||||||
|
if [ -x $DAEMON ]; then
|
||||||
|
echo "Starting NTP daemon: $DAEMON -m"
|
||||||
|
$DAEMON -m
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
__stop() {
|
||||||
|
echo "Stopping NTP daemon: $DAEMON -m"
|
||||||
|
if [ -r $PIDFILE ]; then
|
||||||
|
kill $(cat $PIDFILE)
|
||||||
|
else
|
||||||
|
echo "Chronyd is not running"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
__restart() {
|
||||||
|
__stop
|
||||||
|
|
||||||
|
for i in 1 2 3; do
|
||||||
|
if [ -r $PIDFILE ]; then
|
||||||
|
# ash/dash/nash builtin echo just ignoring -n option
|
||||||
|
/usr/bin/echo -n "."
|
||||||
|
sleep 1
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
|
__start
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
'start')
|
||||||
|
__start
|
||||||
|
;;
|
||||||
|
'stop')
|
||||||
|
__stop
|
||||||
|
;;
|
||||||
|
'restart')
|
||||||
|
__restart
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "usage $0 start|stop|restart"
|
||||||
|
esac
|
||||||
19
chrony/slack-desc
Normal file
19
chrony/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------------------------------------------------------|
|
||||||
|
chrony: chrony (maintains accuracy of the real time clock via NTP)
|
||||||
|
chrony:
|
||||||
|
chrony: chrony is a versatile implementation of the Network Time Protocol.
|
||||||
|
chrony: It can synchronise the system clock with NTP servers, reference
|
||||||
|
chrony: clocks (e.g. GPS receiver), and manual input using wristwatch and
|
||||||
|
chrony: keyboard. It can also operate as an NTPv4 (RFC 5905) server and peer
|
||||||
|
chrony: to provide a time service to other computers in the network.
|
||||||
|
chrony:
|
||||||
|
chrony: Homepage: https://chrony.tuxfamily.org/
|
||||||
|
chrony:
|
||||||
|
chrony:
|
||||||
4
containerd/README
Normal file
4
containerd/README
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Containerd is a daemon to control runC, built for performance and
|
||||||
|
density. Containerd leverages runC's advanced features such as seccomp
|
||||||
|
and user namespace support as well as checkpoint and restore for cloning
|
||||||
|
and live migration of containers.
|
||||||
96
containerd/containerd.SlackBuild
Executable file
96
containerd/containerd.SlackBuild
Executable file
@@ -0,0 +1,96 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for containerd
|
||||||
|
|
||||||
|
# Copyright 2016 Asaf Ohayon <asaf@sysbind.co.il>
|
||||||
|
# Copyright 2017-2019 Audrius Kažukauskas <audrius@neutrino.lt>
|
||||||
|
# Copyright 2023 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=containerd
|
||||||
|
VERSION=${VERSION:-1.7.8}
|
||||||
|
GITHASH=${GITHASH:-8e4b0bd}
|
||||||
|
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 {} \;
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s/git describe --match.*$/echo ${VERSION})/" \
|
||||||
|
-e "s/git rev-parse HEAD.*$/echo ${GITHASH})/" \
|
||||||
|
-e 's/-s -w //' \
|
||||||
|
Makefile
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
mv vendor build/src
|
||||||
|
ln -sf $TMP/$PRGNAM-$VERSION build/src/github.com/containerd/containerd
|
||||||
|
|
||||||
|
make \
|
||||||
|
EXTRA_LDFLAGS="-s -w" \
|
||||||
|
EXTRA_FLAGS="-a -gcflags=all=-l" \
|
||||||
|
BUILDTAGS="seccomp" \
|
||||||
|
GIT_COMMIT=$GITHASH \
|
||||||
|
GOPATH=$TMP/$PRGNAM-$VERSION/build
|
||||||
|
|
||||||
|
# Install executables.
|
||||||
|
install -Dpm 0755 bin/containerd $PKG/usr/bin/containerd
|
||||||
|
install -Dpm 0755 bin/containerd-shim $PKG/usr/bin/containerd-shim
|
||||||
|
install -Dpm 0755 bin/containerd-shim-runc-v1 $PKG/usr/bin/containerd-shim-runc-v1
|
||||||
|
install -Dpm 0755 bin/containerd-shim-runc-v2 $PKG/usr/bin/containerd-shim-runc-v2
|
||||||
|
install -Dpm 0755 bin/containerd-stress $PKG/usr/bin/containerd-stress
|
||||||
|
install -Dpm 0755 bin/ctr $PKG/usr/bin/ctr
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a README.md LICENSE NOTICE $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
|
||||||
|
cat $CWD/slack-required > $PKG/install/slack-required
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
11
containerd/containerd.info
Normal file
11
containerd/containerd.info
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
PRGNAM="containerd"
|
||||||
|
VERSION="1.7.8"
|
||||||
|
HOMEPAGE="https://containerd.io/"
|
||||||
|
DOWNLOAD="UNSUPPORTED"
|
||||||
|
MD5SUM=""
|
||||||
|
DOWNLOAD_x86_64="https://github.com/containerd/containerd/archive/v1.7.8/containerd-1.7.8.tar.gz"
|
||||||
|
MD5SUM_x86_64="8fdec29052484dd4e11186014dab9f46"
|
||||||
|
BUILDREQUIRES="google-go-lang"
|
||||||
|
REQUIRES="runc"
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
containerd/slack-desc
Normal file
19
containerd/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------------------------------------------------------|
|
||||||
|
containerd: containerd (a daemon to control runC)
|
||||||
|
containerd:
|
||||||
|
containerd: Containerd is a daemon to control runC, built for performance and
|
||||||
|
containerd: density. Containerd leverages runC's advanced features such as
|
||||||
|
containerd: seccomp and user namespace support as well as checkpoint and restore
|
||||||
|
containerd: for cloning and live migration of containers.
|
||||||
|
containerd:
|
||||||
|
containerd: Homepage: https://containerd.io/
|
||||||
|
containerd:
|
||||||
|
containerd:
|
||||||
|
containerd:
|
||||||
1
containerd/slack-required
Normal file
1
containerd/slack-required
Normal file
@@ -0,0 +1 @@
|
|||||||
|
runc
|
||||||
2
cpanminus/README
Normal file
2
cpanminus/README
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
cpanminus (or cpanm) is a script to get, unpack, build, and install
|
||||||
|
modules from CPAN without needing configuration.
|
||||||
99
cpanminus/cpanminus.SlackBuild
Normal file
99
cpanminus/cpanminus.SlackBuild
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for cpanminus
|
||||||
|
|
||||||
|
# Copyright 2017 Andreas Guldstrand.
|
||||||
|
# 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=cpanminus
|
||||||
|
VERSION=${VERSION:-1.7044}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
|
||||||
|
SRCNAM="App-cpanminus"
|
||||||
|
|
||||||
|
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}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $SRCNAM-$VERSION
|
||||||
|
tar xf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||||
|
cd $SRCNAM-$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 {} \;
|
||||||
|
|
||||||
|
perl Makefile.PL \
|
||||||
|
PREFIX=/usr \
|
||||||
|
INSTALLDIRS=vendor \
|
||||||
|
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
||||||
|
INSTALLVENDORMAN3DIR=/usr/man/man3
|
||||||
|
make
|
||||||
|
make test
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
|
||||||
|
|
||||||
|
find $PKG -depth -type d -empty -delete || true
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a Changes LICENSE README $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
cpanminus/cpanminus.info
Normal file
10
cpanminus/cpanminus.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="cpanminus"
|
||||||
|
VERSION="1.7044"
|
||||||
|
HOMEPAGE="https://metacpan.org/pod/App::cpanminus"
|
||||||
|
DOWNLOAD="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7044.tar.gz"
|
||||||
|
MD5SUM="6e76f94dced6d4672686a30d16f8e890"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
cpanminus/slack-desc
Normal file
19
cpanminus/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------------------------------------------------------|
|
||||||
|
cpanminus: cpanminus (App::cpanminus)
|
||||||
|
cpanminus:
|
||||||
|
cpanminus: cpanminus (or cpanm) is a script to get, unpack, build, and install
|
||||||
|
cpanminus: modules from CPAN without needing configuration.
|
||||||
|
cpanminus:
|
||||||
|
cpanminus:
|
||||||
|
cpanminus:
|
||||||
|
cpanminus:
|
||||||
|
cpanminus:
|
||||||
|
cpanminus:
|
||||||
|
cpanminus:
|
||||||
1
daemonize/README
Normal file
1
daemonize/README
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Daemonize allows you to run a command as a Unix daemon.
|
||||||
97
daemonize/daemonize.SlackBuild
Normal file
97
daemonize/daemonize.SlackBuild
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script for daemonize
|
||||||
|
|
||||||
|
# Copyright 2020 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.
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=daemonize
|
||||||
|
VERSION=${VERSION:-1.7.8}
|
||||||
|
BUILD=${BUILD:-2}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i486 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
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"
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
tar xf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
|
cd $PRGNAM-release-$VERSION
|
||||||
|
chown -R root:root .
|
||||||
|
find . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
-exec chmod 755 {} \+ -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
|
-exec chmod 644 {} \+
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS -flto -rdynamic" \
|
||||||
|
CXXFLAGS=$CFLAGS \
|
||||||
|
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2, -Wl,-s" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--build=$ARCH-slackware-linux \
|
||||||
|
--quiet
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make install INSTALL_MAN=/usr/man DESTDIR=$PKG
|
||||||
|
|
||||||
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||||
|
|
||||||
|
gzip -9 $PKG/usr/man/man1/daemonize.1
|
||||||
|
|
||||||
|
install -Dpm 0644 README.md $PKG/usr/doc/$PRGNAM-$VERSION/README.md
|
||||||
|
install -Dpm 0644 LICENSE.md $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE.md
|
||||||
|
install -Dpm 0644 $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
daemonize/daemonize.info
Normal file
10
daemonize/daemonize.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="daemonize"
|
||||||
|
VERSION="1.7.8"
|
||||||
|
HOMEPAGE="http://software.clapper.org/daemonize/"
|
||||||
|
DOWNLOAD="https://github.com/bmc/daemonize/archive/release-1.7.8/daemonize-1.7.8.tar.gz"
|
||||||
|
MD5SUM="8eeff9d447292410f9956feeeb4ff24b"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
daemonize/slack-desc
Normal file
19
daemonize/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------------------------------------------------------|
|
||||||
|
daemonize: daemonize (run a program as a daemon)
|
||||||
|
daemonize:
|
||||||
|
daemonize: daemonize allows you to run a program as a Unix daemon.
|
||||||
|
daemonize:
|
||||||
|
daemonize: Homepage: http://software.clapper.org/daemonize/
|
||||||
|
daemonize:
|
||||||
|
daemonize:
|
||||||
|
daemonize:
|
||||||
|
daemonize:
|
||||||
|
daemonize:
|
||||||
|
daemonize:
|
||||||
93
davfs2/MINI_HOWTO
Normal file
93
davfs2/MINI_HOWTO
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
HOW TO CONNECT WITH A WEBDAV SERVER WITH THE DAVF2 APPLICATION
|
||||||
|
|
||||||
|
In this HOWTO, the user is named "chris"
|
||||||
|
Amend as required for your choice of username.
|
||||||
|
|
||||||
|
1. Login as root
|
||||||
|
|
||||||
|
2. Define a davfs2 group and user:
|
||||||
|
|
||||||
|
# groupadd -g 230 davfs2
|
||||||
|
# useradd -u 230 -d /var/cache/davfs2 -g davfs2 -s /bin/false davfs2
|
||||||
|
|
||||||
|
3. Build and install davfs2 as usual.
|
||||||
|
|
||||||
|
4. Add the user if not already defined. My user shall be called chris, so:
|
||||||
|
|
||||||
|
# adduser chris
|
||||||
|
|
||||||
|
Read the Slackbook for more details on adduser, choose default settings BUT:
|
||||||
|
with the default group list add also davfs2:
|
||||||
|
|
||||||
|
Press ENTER to continue without adding any additional groups
|
||||||
|
Or press the UP arrow to add/select/edit additional groups
|
||||||
|
: audio cdrom floppy plugdev video power netdev lp scanner davfs2
|
||||||
|
|
||||||
|
If the user was already defined, then add davfs2 to the groups:
|
||||||
|
|
||||||
|
# usermod -aG davfs2 chris
|
||||||
|
|
||||||
|
5. Edit /etc/fstab with the following line:
|
||||||
|
WEBDAV_SERVER_URL mount_point davfs noauto,user 0 0
|
||||||
|
|
||||||
|
For example:
|
||||||
|
https://example.org/chris /home/chris/mnt/dav davfs noauto,user 0 0
|
||||||
|
|
||||||
|
6. logout
|
||||||
|
|
||||||
|
7. Login again as your davfs user ("chris" in my case).
|
||||||
|
|
||||||
|
8. $ mkdir -p $HOME/.davfs2/certs/private/ $HOME/mnt/dav
|
||||||
|
|
||||||
|
9. Move the certificate to $HOME/davfs2/certs/private and restrict the permission to rw-------:
|
||||||
|
For example:
|
||||||
|
|
||||||
|
$ mv CERTIFICATE.PFX $HOME/.davfs2/certs/private/
|
||||||
|
$ chmod 600 $HOME/.davfs2/certs/private/CERIFICATE.PFX
|
||||||
|
|
||||||
|
10. Optionally: Copy the system configuration file. There are a lot of
|
||||||
|
interesting comments in these files that might be helpful.
|
||||||
|
|
||||||
|
$ cp /usr/share/davfs2/* $HOME/.davfs2/
|
||||||
|
|
||||||
|
11. Edit $HOME/.davfs2/davfs2.conf with the following line:
|
||||||
|
|
||||||
|
clientcert ~/.davfs2/certs/private/CERTIFICATE.PFX
|
||||||
|
|
||||||
|
Read:
|
||||||
|
|
||||||
|
$ man davfs2.conf
|
||||||
|
|
||||||
|
for all the details and options. Tests have shown that you might need more
|
||||||
|
than the line above, so you may want to read about other interesting
|
||||||
|
parameters, e.g.:
|
||||||
|
|
||||||
|
add_header Translate F
|
||||||
|
|
||||||
|
12. Edit $HOME/.davfs2/secrets with the following 2 lines:
|
||||||
|
|
||||||
|
/home/chris/mnt/dav username password
|
||||||
|
CERTIFICATE.PFX passphrase
|
||||||
|
|
||||||
|
The username and password are relevant to the Webdav server, not for the
|
||||||
|
local account.
|
||||||
|
passphrase is the password for the PFX certificate
|
||||||
|
You should obtain all these from the Webdav server Administrator
|
||||||
|
|
||||||
|
13. Restrict permssion for $HOME/.davfs2/secrets to rw-------:
|
||||||
|
|
||||||
|
$ chmod 600 $HOME/.davfs2/secrets
|
||||||
|
|
||||||
|
14. Mount the davfs service on $HOME/mnt/dav
|
||||||
|
|
||||||
|
$ mount $HOME/mnt/dav
|
||||||
|
|
||||||
|
You should be able to see your WEBDAV server on $HOME/mnt/dav/
|
||||||
|
|
||||||
|
15. When you would like to disconnect:
|
||||||
|
|
||||||
|
$ umount $HOME/mnt/dav
|
||||||
|
|
||||||
|
You should get a similar response (the pid number is random):
|
||||||
|
|
||||||
|
/sbin/umount.davfs: waiting while mount.davfs (pid 5700) synchronizes the cache .. OK
|
||||||
11
davfs2/README
Normal file
11
davfs2/README
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Web Distributed Authoring and Versioning (WebDAV), an extension to the HTTP-
|
||||||
|
protocol, allows authoring of resources on a remote web server. davfs2
|
||||||
|
provides the ability to access such resources like a typical filesystem,
|
||||||
|
allowing for use by standard applications with no built-in support for WebDAV.
|
||||||
|
|
||||||
|
Before running this SlackBuild, define a davfs2 group and a davfs2 user. The
|
||||||
|
davfs2 user shall have davfs2 as its initial login group, shall not have no
|
||||||
|
shell and the home directory shall be /var/cache/davfs. Examples:
|
||||||
|
|
||||||
|
# groupadd -g 230 davfs2
|
||||||
|
# useradd -u 230 -d /var/cache/davfs2 -g davfs2 -s /bin/false davfs2
|
||||||
133
davfs2/davfs2.SlackBuild
Normal file
133
davfs2/davfs2.SlackBuild
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for davfs2
|
||||||
|
|
||||||
|
# Copyright (c) 2008, Justin H Haynes <justin@justinhaynes.com>
|
||||||
|
# Copyright (c) 2012 Chris Abela, Malta
|
||||||
|
# Copyright 2014 Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org
|
||||||
|
# Copyright 2014, 2016 Chris Abela, Malta
|
||||||
|
# Copyright 2022 Sergei Fedosoff <eleksir@gmail.com>
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
# copyright notice and this permission notice appear in all copies.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
# Modified by Robby Workman <rworkman@slackbuilds.org>
|
||||||
|
|
||||||
|
PRGNAM=davfs2
|
||||||
|
VERSION=${VERSION:-1.6.1}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
|
||||||
|
DAVFS2_USER=${DAVFS2_USER:-davfs2}
|
||||||
|
DAVFS2_GROUP=${DAVFS2_GROUP:-davfs2}
|
||||||
|
|
||||||
|
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}
|
||||||
|
|
||||||
|
# davfs2 user & group *MUST* exist before package creation
|
||||||
|
# See http://slackbuilds.org/uid_gid.txt for current recomendations.
|
||||||
|
|
||||||
|
if ! grep -q "^$DAVFS2_GROUP:" /etc/group; then
|
||||||
|
echo "$0: Error: DAVFS2 group ($DAVFS2_GROUP) doesn't exist."
|
||||||
|
echo "$0: Try creating one with: \
|
||||||
|
# groupadd -g 230 $DAVFS2_GROUP"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! grep -q "^$DAVFS2_USER:" /etc/passwd; then
|
||||||
|
echo "$0: Error: DAVFS2 user ($DAVFS2_USER) doesn't exist."
|
||||||
|
echo "$0: Try creating one with: \
|
||||||
|
# useradd -u 230 -d /var/cache/davfs2 -g $DAVFS2_GROUP -s /bin/false $DAVFS2_USER"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
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 {} \;
|
||||||
|
|
||||||
|
dav_user=$DAVFS2_USER \
|
||||||
|
dav_group=$DAVFS2_GROUP \
|
||||||
|
CFLAGS="-g $SLKFLAGS -flto -rdynamic" \
|
||||||
|
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2" \
|
||||||
|
CXXFLAGS="$CFLAGS" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
# Let's not clobber the system config files
|
||||||
|
mv $PKG/etc/davfs2/davfs2.conf $PKG/etc/davfs2/davfs2.conf.new
|
||||||
|
mv $PKG/etc/davfs2/secrets $PKG/etc/davfs2/secrets.new
|
||||||
|
|
||||||
|
cp -a ABOUT-NLS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
# davfs2 autobuild places mount.davfs and umount.davfs in /usr/sbin
|
||||||
|
# and places symlinks in /sbin. In Slackware, our mount backends
|
||||||
|
# only belong in /sbin, so let's put them there and adjust the links
|
||||||
|
( cd $PKG/usr/sbin
|
||||||
|
for i in * ; do
|
||||||
|
mv $i ../../sbin
|
||||||
|
ln -s ../../sbin/$i $i
|
||||||
|
done
|
||||||
|
)
|
||||||
|
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
16
davfs2/davfs2.info
Normal file
16
davfs2/davfs2.info
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
PRGNAM="davfs2"
|
||||||
|
VERSION="1.6.1"
|
||||||
|
HOMEPAGE="http://savannah.nongnu.org/projects/davfs2"
|
||||||
|
DOWNLOAD="http://download.savannah.nongnu.org/releases/davfs2/davfs2-1.6.1.tar.gz"
|
||||||
|
MD5SUM="04c82c25663f7dae5931002aa8ffea06"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
GROUP="davfs2"
|
||||||
|
GID="230"
|
||||||
|
USER="davfs2"
|
||||||
|
UID="230"
|
||||||
|
USER_SHELL="/bin/false"
|
||||||
|
USER_HOME="/var/cache/davfs2"
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
15
davfs2/doinst.sh
Normal file
15
davfs2/doinst.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
config() {
|
||||||
|
NEW="$1"
|
||||||
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
# If there's no config file by that name, mv it over:
|
||||||
|
if [ ! -r $OLD ]; then
|
||||||
|
mv $NEW $OLD
|
||||||
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||||
|
# toss the redundant copy
|
||||||
|
rm $NEW
|
||||||
|
fi
|
||||||
|
# Otherwise, we leave the .new copy for the admin to consider...
|
||||||
|
}
|
||||||
|
|
||||||
|
config etc/davfs2/davfs2.conf.new
|
||||||
|
config etc/davfs2/secrets.new
|
||||||
19
davfs2/slack-desc
Normal file
19
davfs2/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------------------------------------------------------|
|
||||||
|
davfs2: davfs2 (virtual filesystem driver for WebDAV)
|
||||||
|
davfs2:
|
||||||
|
davfs2: Web Distributed Authoring and Versioning (WebDAV), an extension to the
|
||||||
|
davfs2: HTTP-protocol, allows authoring of resources on a remote web server.
|
||||||
|
davfs2: davfs2 provides the ability to access such resources like a typical
|
||||||
|
davfs2: filesystem, allowing for use by standard applications with no built-in
|
||||||
|
davfs2: support for WebDAV.
|
||||||
|
davfs2:
|
||||||
|
davfs2: Homepage: http://savannah.nongnu.org/projects/davfs2
|
||||||
|
davfs2:
|
||||||
|
davfs2:
|
||||||
28
deadbeef/README
Normal file
28
deadbeef/README
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
DeaDBeeF (as in 0xDEADBEEF) is an audio player for GNU/Linux systems
|
||||||
|
with X11 (though now it also runs in plain console without X, in FreeBSD,
|
||||||
|
and in OpenSolaris).
|
||||||
|
|
||||||
|
Main features:
|
||||||
|
* mp3, ogg vorbis, flac, ape, wv, wav, m4a, mpc, cd audio (and many more)
|
||||||
|
* sid, nsf and lots of other popular chiptune formats
|
||||||
|
* ID3v1, ID3v2.2, ID3v2.3, ID3v2.4, APEv2, xing/info tags support
|
||||||
|
* character set detection for non-unicode id3 tags - supports cp1251 and
|
||||||
|
iso8859-1
|
||||||
|
* unicode tags are fully supported as well (both utf8 and ucs2)
|
||||||
|
* cuesheet (.cue files) support, with charset detection (utf8/cp1251/iso8859-1)
|
||||||
|
* tracker modules like mod, s3m, it, xm, etc
|
||||||
|
* HVSC song length database support for sid
|
||||||
|
* gtk2 interface with efficient custom widgets
|
||||||
|
* no GNOME or KDE dependencies
|
||||||
|
* minimize to tray, with scrollwheel volume control
|
||||||
|
* drag and drop, both inside of playlist, and from filemanagers and such
|
||||||
|
* control playback from command line
|
||||||
|
* global hotkeys
|
||||||
|
* plugin support; bundled with lots of plugins, such as global hotkeys and
|
||||||
|
last.fm scrobbler; sdk is included
|
||||||
|
* duration calculation is as precise as possible for vbr mp3 files (with and
|
||||||
|
without xing/info tags)
|
||||||
|
* was tested and works on x86, x86_64 and ppc64 architectures. should work on
|
||||||
|
most modern platforms
|
||||||
|
|
||||||
|
ffmpeg is an optional dependency for deadbeef.
|
||||||
108
deadbeef/deadbeef.SlackBuild
Normal file
108
deadbeef/deadbeef.SlackBuild
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for deadbeef
|
||||||
|
#
|
||||||
|
# Copyright 2010 AlexGAV
|
||||||
|
# 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=deadbeef
|
||||||
|
VERSION=${VERSION:-1.8.8}
|
||||||
|
BUILD=${BUILD:-2}
|
||||||
|
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-$VERSION
|
||||||
|
tar xf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||||
|
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 {} \;
|
||||||
|
|
||||||
|
export CC=clang
|
||||||
|
export CXX=clang++
|
||||||
|
|
||||||
|
libtoolize --copy --force
|
||||||
|
aclocal --force
|
||||||
|
autoreconf --force --install
|
||||||
|
automake --copy --force-missing --add-missing
|
||||||
|
|
||||||
|
CFLAGS="$SLKFLAGS" \
|
||||||
|
LDFLAGS="-Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2 -Wl,-s" \
|
||||||
|
CXXFLAGS="$CFLAGS" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--enable-shared \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
find $PKG | xargs 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/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a AUTHORS COPYING.* ChangeLog INSTALL NEWS $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
|
||||||
|
cat $CWD/slack-required > $PKG/install/slack-required
|
||||||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
10
deadbeef/deadbeef.info
Normal file
10
deadbeef/deadbeef.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="deadbeef"
|
||||||
|
VERSION="1.8.8"
|
||||||
|
HOMEPAGE="http://deadbeef.sourceforge.net"
|
||||||
|
DOWNLOAD="http://downloads.sourceforge.net/deadbeef/deadbeef-1.8.8.tar.bz2"
|
||||||
|
MD5SUM="cbc3cc9055e026ea8ae06d720ba38a52"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES="jansson libdispatch"
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
10
deadbeef/doinst.sh
Normal file
10
deadbeef/doinst.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||||
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||||
|
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
19
deadbeef/slack-desc
Normal file
19
deadbeef/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------------------------------------------------------|
|
||||||
|
deadbeef: deadbeef (as in 0xDEADBEEF)
|
||||||
|
deadbeef: with X11 (though now it also runs in plain console without X,
|
||||||
|
deadbeef: in FreeBSD, and in OpenSolaris).
|
||||||
|
deadbeef:
|
||||||
|
deadbeef: Homepage: http://deadbeef.sourceforge.net/
|
||||||
|
deadbeef:
|
||||||
|
deadbeef:
|
||||||
|
deadbeef:
|
||||||
|
deadbeef:
|
||||||
|
deadbeef:
|
||||||
|
deadbeef:
|
||||||
1
deadbeef/slack-required
Normal file
1
deadbeef/slack-required
Normal file
@@ -0,0 +1 @@
|
|||||||
|
libdispatch
|
||||||
6
dmenu/README
Normal file
6
dmenu/README
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
dmenu - dynamic menu
|
||||||
|
|
||||||
|
dmenu is a generic and efficient menu for X.
|
||||||
|
|
||||||
|
Note: dmenu now includes a tiny utility called stest that is used to filter
|
||||||
|
files. See its man page for details.
|
||||||
26
dmenu/dmenu-5.0-libdir_cflags_fixups.diff
Normal file
26
dmenu/dmenu-5.0-libdir_cflags_fixups.diff
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
diff -ruNp dmenu-5.0/config.mk dmenu-5.0.new/config.mk
|
||||||
|
--- dmenu-5.0/config.mk 2020-09-02 19:37:07.000000000 +0300
|
||||||
|
+++ dmenu-5.0.new/config.mk 2022-02-05 18:45:05.925753731 +0300
|
||||||
|
@@ -4,6 +4,7 @@ VERSION = 5.0
|
||||||
|
# paths
|
||||||
|
PREFIX = /usr/local
|
||||||
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
+LIBDIR = /usr/local/lib
|
||||||
|
|
||||||
|
X11INC = /usr/X11R6/include
|
||||||
|
X11LIB = /usr/X11R6/lib
|
||||||
|
@@ -20,11 +21,12 @@ FREETYPEINC = /usr/include/freetype2
|
||||||
|
|
||||||
|
# includes and libs
|
||||||
|
INCS = -I$(X11INC) -I$(FREETYPEINC)
|
||||||
|
-LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS)
|
||||||
|
+LIBS = -L${LIBDIR} -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
|
||||||
|
|
||||||
|
# flags
|
||||||
|
+OPTS ?= -Os
|
||||||
|
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
|
||||||
|
-CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
|
||||||
|
+CFLAGS = -std=c99 -pedantic -Wall ${OPTS} ${INCS} ${CPPFLAGS}
|
||||||
|
LDFLAGS = $(LIBS)
|
||||||
|
|
||||||
|
# compiler and linker
|
||||||
101
dmenu/dmenu.SlackBuild
Normal file
101
dmenu/dmenu.SlackBuild
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for dmenu
|
||||||
|
|
||||||
|
# Copyright (c) 2008, Antonio Hernández Blas <hba.nihilismus@gmail.com>
|
||||||
|
# Copyright 2022 Sergei Fedosoff <eleksir@gmail.com>
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions are met:
|
||||||
|
# 1.- Redistributions of source code 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.
|
||||||
|
|
||||||
|
# Modified by Phillip Warner for version >= 4.0
|
||||||
|
|
||||||
|
PRGNAM=dmenu
|
||||||
|
VERSION=${VERSION:-5.1}
|
||||||
|
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}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
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 {} \;
|
||||||
|
|
||||||
|
# Fixup the CFLAGS and LIBDIR settings to prevent multilib conflicts
|
||||||
|
patch -p1 -i $CWD/dmenu-5.0-libdir_cflags_fixups.diff
|
||||||
|
|
||||||
|
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2 -Wl,-s" \
|
||||||
|
make install \
|
||||||
|
OPTS="$SLKCFLAGS -flto -rdynamic" \
|
||||||
|
PREFIX=/usr \
|
||||||
|
LIBDIR=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
MANPREFIX=/usr/man \
|
||||||
|
X11INC=/usr/include \
|
||||||
|
X11LIB=/usr/lib${LIBDIRSUFFIX}/X11 \
|
||||||
|
DESTDIR=$PKG
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a LICENSE README $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
dmenu/dmenu.info
Normal file
10
dmenu/dmenu.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="dmenu"
|
||||||
|
VERSION="5.1"
|
||||||
|
HOMEPAGE="http://tools.suckless.org/dmenu"
|
||||||
|
DOWNLOAD="http://dl.suckless.org/tools/dmenu-5.1.tar.gz"
|
||||||
|
MD5SUM="a18dcdaf3bd60e357fa5bb065059f9f6"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosov"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
dmenu/slack-desc
Normal file
19
dmenu/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------------------------------------------------------|
|
||||||
|
dmenu: dmenu (dynamic menu for X)
|
||||||
|
dmenu:
|
||||||
|
dmenu: dmenu is a generic and efficient menu for X.
|
||||||
|
dmenu:
|
||||||
|
dmenu: Homepage: http://tools.suckless.org/dmenu
|
||||||
|
dmenu:
|
||||||
|
dmenu:
|
||||||
|
dmenu:
|
||||||
|
dmenu:
|
||||||
|
dmenu:
|
||||||
|
dmenu:
|
||||||
1
docker-cli/README
Normal file
1
docker-cli/README
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Command line tool for Docker engine.
|
||||||
75
docker-cli/bash_is_always_bin_bash.patch
Normal file
75
docker-cli/bash_is_always_bin_bash.patch
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
diff -ruNp cli-20.10.8/Makefile cli-20.10.8.new/Makefile
|
||||||
|
--- cli-20.10.8/Makefile 2021-07-29 16:55:47.000000000 +0300
|
||||||
|
+++ cli-20.10.8.new/Makefile 2021-08-23 01:18:35.303197616 +0300
|
||||||
|
@@ -31,49 +31,49 @@ lint: ## run all the lint tools
|
||||||
|
|
||||||
|
.PHONY: binary
|
||||||
|
binary:
|
||||||
|
- ./scripts/build/binary
|
||||||
|
+ /bin/bash scripts/build/binary
|
||||||
|
|
||||||
|
.PHONY: plugins
|
||||||
|
plugins: ## build example CLI plugins
|
||||||
|
- ./scripts/build/plugins
|
||||||
|
+ /bin/bash /scripts/build/plugins
|
||||||
|
|
||||||
|
.PHONY: cross
|
||||||
|
cross:
|
||||||
|
- ./scripts/build/binary
|
||||||
|
+ /bin/bash scripts/build/binary
|
||||||
|
|
||||||
|
.PHONY: plugins-windows
|
||||||
|
plugins-windows: ## build example CLI plugins for Windows
|
||||||
|
- ./scripts/build/plugins-windows
|
||||||
|
+ /bin/bash scripts/build/plugins-windows
|
||||||
|
|
||||||
|
.PHONY: plugins-osx
|
||||||
|
plugins-osx: ## build example CLI plugins for macOS
|
||||||
|
- ./scripts/build/plugins-osx
|
||||||
|
+ /bin/bash scripts/build/plugins-osx
|
||||||
|
|
||||||
|
.PHONY: dynbinary
|
||||||
|
dynbinary: ## build dynamically linked binary
|
||||||
|
- GO_LINKMODE=dynamic ./scripts/build/binary
|
||||||
|
+ GO_LINKMODE=dynamic /bin/bash scripts/build/binary
|
||||||
|
|
||||||
|
vendor: vendor.conf ## check that vendor matches vendor.conf
|
||||||
|
rm -rf vendor
|
||||||
|
- bash -c 'vndr |& grep -v -i clone | tee ./vndr.log'
|
||||||
|
- scripts/validate/check-git-diff vendor
|
||||||
|
- scripts/validate/check-all-packages-vendored
|
||||||
|
+ /bin/bash -c 'vndr |& grep -v -i clone | tee ./vndr.log'
|
||||||
|
+ /bin/bash scripts/validate/check-git-diff vendor
|
||||||
|
+ /bin/bash scripts/validate/check-all-packages-vendored
|
||||||
|
|
||||||
|
.PHONY: authors
|
||||||
|
authors: ## generate AUTHORS file from git history
|
||||||
|
- scripts/docs/generate-authors.sh
|
||||||
|
+ /bin/bash scripts/docs/generate-authors.sh
|
||||||
|
|
||||||
|
.PHONY: manpages
|
||||||
|
manpages: ## generate man pages from go source and markdown
|
||||||
|
- scripts/docs/generate-man.sh
|
||||||
|
+ /bin/bash scripts/docs/generate-man.sh
|
||||||
|
|
||||||
|
.PHONY: yamldocs
|
||||||
|
yamldocs: ## generate documentation YAML files consumed by docs repo
|
||||||
|
- scripts/docs/generate-yaml.sh
|
||||||
|
+ /bin/bash scripts/docs/generate-yaml.sh
|
||||||
|
|
||||||
|
.PHONY: shellcheck
|
||||||
|
shellcheck: ## run shellcheck validation
|
||||||
|
- scripts/validate/shellcheck
|
||||||
|
+ /bin/bash scripts/validate/shellcheck
|
||||||
|
|
||||||
|
.PHONY: help
|
||||||
|
help: ## print this help
|
||||||
|
@@ -84,7 +84,7 @@ cli/compose/schema/bindata.go: cli/compo
|
||||||
|
go generate github.com/docker/cli/cli/compose/schema
|
||||||
|
|
||||||
|
compose-jsonschema: cli/compose/schema/bindata.go ## generate compose-file schemas
|
||||||
|
- scripts/validate/check-git-diff cli/compose/schema/bindata.go
|
||||||
|
+ /bin/bash scripts/validate/check-git-diff cli/compose/schema/bindata.go
|
||||||
|
|
||||||
|
.PHONY: ci-validate
|
||||||
|
ci-validate:
|
||||||
95
docker-cli/docker-cli.SlackBuild
Executable file
95
docker-cli/docker-cli.SlackBuild
Executable file
@@ -0,0 +1,95 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for docker-cli
|
||||||
|
|
||||||
|
# Copyright 2021 Audrius Kažukauskas <audrius@neutrino.lt>
|
||||||
|
# Copyright 2023 Sergei Fedosov <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=docker-cli
|
||||||
|
VERSION=${VERSION:-24.0.7}
|
||||||
|
GITHASH=${GITHASH:-afdd53b}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
|
||||||
|
SRCNAM=cli
|
||||||
|
|
||||||
|
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 $SRCNAM-$VERSION
|
||||||
|
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||||
|
cd $SRCNAM-$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 {} \;
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
mv vendor build/src
|
||||||
|
ln -sf $TMP/$SRCNAM-$VERSION build/src/github.com/docker/cli
|
||||||
|
|
||||||
|
export GOPATH="${GOPATH}:$TMP/$SRCNAM-$VERSION/build"
|
||||||
|
export GOMODCACHE=/tmp/go
|
||||||
|
export LDFLAGS="-s -w"
|
||||||
|
|
||||||
|
DISABLE_WARN_OUTSIDE_CONTAINER=1 \
|
||||||
|
make dynbinary \
|
||||||
|
GITCOMMIT=$GITHASH \
|
||||||
|
VERSION=$VERSION \
|
||||||
|
GOPATH=$TMP/$SRCNAM-$VERSION/build
|
||||||
|
|
||||||
|
install -D -m 0755 build/docker-linux-amd64 $PKG/usr/bin/docker
|
||||||
|
|
||||||
|
# Completion.
|
||||||
|
( cd contrib/completion
|
||||||
|
install -D -m 0644 bash/docker $PKG/usr/share/bash-completion/completions/docker
|
||||||
|
install -D -m 0644 zsh/_docker $PKG/usr/share/zsh/site-functions/_docker
|
||||||
|
install -D -m 0644 fish/docker.fish $PKG/usr/share/fish/vendor_completions.d/docker.fish
|
||||||
|
)
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a LICENSE NOTICE README.md $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}
|
||||||
11
docker-cli/docker-cli.info
Normal file
11
docker-cli/docker-cli.info
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
PRGNAM="docker-cli"
|
||||||
|
VERSION="24.0.7"
|
||||||
|
HOMEPAGE="https://www.docker.com/products/container-runtime"
|
||||||
|
DOWNLOAD="UNSUPPORTED"
|
||||||
|
MD5SUM=""
|
||||||
|
DOWNLOAD_x86_64="https://github.com/docker/cli/archive/v24.0.7/cli-24.0.7.tar.gz"
|
||||||
|
MD5SUM_x86_64="953bf757e181dec46ee4ac815553f2a6"
|
||||||
|
BUILDREQUIRES="google-go-lang"
|
||||||
|
REQUIRES="docker"
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
docker-cli/slack-desc
Normal file
19
docker-cli/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------------------------------------------------------|
|
||||||
|
docker-cli: docker-cli (command line tool for Docker engine)
|
||||||
|
docker-cli:
|
||||||
|
docker-cli: Docker is an open-source project to easily create lightweight,
|
||||||
|
docker-cli: portable, self-sufficient containers from any application. The same
|
||||||
|
docker-cli: container that a developer builds and tests on a laptop can run at
|
||||||
|
docker-cli: scale, in production, on VMs, bare metal, OpenStack clusters, public
|
||||||
|
docker-cli: clouds and more.
|
||||||
|
docker-cli:
|
||||||
|
docker-cli: Homepage: https://www.docker.com/products/container-runtime
|
||||||
|
docker-cli:
|
||||||
|
docker-cli:
|
||||||
35
docker/README
Normal file
35
docker/README
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
Docker is an open-source project to easily create lightweight, portable,
|
||||||
|
self-sufficient containers from any application. The same container
|
||||||
|
that a developer builds and tests on a laptop can run at scale, in
|
||||||
|
production, on VMs, bare metal, OpenStack clusters, public clouds and
|
||||||
|
more.
|
||||||
|
|
||||||
|
To use docker as a limited user, add your user to the 'docker' group:
|
||||||
|
|
||||||
|
# groupadd -r -g 281 docker
|
||||||
|
# usermod -a -G docker <your_username>
|
||||||
|
|
||||||
|
This will require logging out and back in and also restarting docker
|
||||||
|
daemon.
|
||||||
|
|
||||||
|
To have the docker daemon start and stop with your host,
|
||||||
|
add to /etc/rc.d/rc.local:
|
||||||
|
|
||||||
|
if [ -x /etc/rc.d/rc.docker ]; then
|
||||||
|
/etc/rc.d/rc.docker start
|
||||||
|
fi
|
||||||
|
|
||||||
|
and to /etc/rc.d/rc.local_shutdown (creating it if needed):
|
||||||
|
|
||||||
|
if [ -x /etc/rc.d/rc.docker ]; then
|
||||||
|
/etc/rc.d/rc.docker stop
|
||||||
|
fi
|
||||||
|
|
||||||
|
If you are interested in enabling cgroup memory resource control over
|
||||||
|
swap as well, then append "swapaccount=1" to your kernel's parameters.
|
||||||
|
This is often in /etc/lilo.conf, on the "append" variable.
|
||||||
|
|
||||||
|
NOTE: google-go-lang is only needed at compile time - not needed for
|
||||||
|
runtime.
|
||||||
|
|
||||||
|
Docker doesn't support x86, only x86_64.
|
||||||
3
docker/config/docker.default
Normal file
3
docker/config/docker.default
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
## Set defaults used by the docker daemon.
|
||||||
|
## These are flags passed after `dockerd`.
|
||||||
|
#DOCKER_OPTS=""
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user