From d9f4c6d149ccb0a756937214bb370fb3960fb51b Mon Sep 17 00:00:00 2001 From: erikkugel Date: Tue, 25 Dec 2018 21:30:36 -0500 Subject: [PATCH] Ported legacy builds and README --- README.md.legacy | 35 ++++++++++++++ a52dec/a52dec.SlackBuild | 43 +++++++++++++++++ a52dec/doinst.sh | 6 +++ a52dec/slack-desc | 11 +++++ awscli/awscli.SlackBuild | 24 ++++++++++ awscli/doinst.sh | 1 + awscli/slack-desc | 11 +++++ davmail/davmail.SlackBuild | 21 ++++++++ davmail/slack-desc | 11 +++++ djmount/djmount.SlackBuild | 26 ++++++++++ djmount/slack-desc | 11 +++++ ffmpeg/doinst.sh | 6 +++ ffmpeg/ffmpeg.SlackBuild | 51 ++++++++++++++++++++ ffmpeg/slack-desc | 11 +++++ flash_player/flash_player.SlackBuild | 24 ++++++++++ flash_player/slack-desc | 11 +++++ hipchat/hipchat.SlackBuild | 20 ++++++++ hipchat/slack-desc | 11 +++++ keepassx/keepassx.SlackBuild | 29 ++++++++++++ keepassx/slack-desc | 11 +++++ libtorrent/doinst.sh | 6 +++ libtorrent/libtorrent.SlackBuild | 43 +++++++++++++++++ libtorrent/slack-desc | 11 +++++ lua/lua.SlackBuild | 39 +++++++++++++++ lua/slack-desc | 11 +++++ mediatomb/doinst.sh | 7 +++ mediatomb/mediatomb.SlackBuild | 50 ++++++++++++++++++++ mediatomb/rc.mediatomb | 62 ++++++++++++++++++++++++ mediatomb/rc.mediatomb.conf | 5 ++ mediatomb/slack-desc | 11 +++++ ntp-dev/ntp-dev.SlackBuild | 30 ++++++++++++ ntp-dev/ntp.conf | 17 +++++++ ntp-dev/rc.ntpd-dev | 71 ++++++++++++++++++++++++++++ ntp-dev/slack-desc | 11 +++++ qbittorrent/doinst.sh | 13 +++++ qbittorrent/qbittorrent.SlackBuild | 50 ++++++++++++++++++++ qbittorrent/rc.qbittorrent | 56 ++++++++++++++++++++++ qbittorrent/slack-desc | 11 +++++ vlc/doinst.sh | 13 +++++ vlc/rc.vlc | 61 ++++++++++++++++++++++++ vlc/rc.vlc.conf | 4 ++ vlc/slack-desc | 11 +++++ vlc/vlc.SlackBuild | 51 ++++++++++++++++++++ x264/doinst.sh | 6 +++ x264/slack-desc | 11 +++++ x264/x264.SlackBuild | 48 +++++++++++++++++++ xvidcore/doinst.sh | 6 +++ xvidcore/slack-desc | 11 +++++ xvidcore/xvidcore.SlackBuild | 45 ++++++++++++++++++ yakuake/slack-desc | 11 +++++ yakuake/yakuake.SlackBuild | 27 +++++++++++ 51 files changed, 1183 insertions(+) create mode 100644 README.md.legacy create mode 100755 a52dec/a52dec.SlackBuild create mode 100644 a52dec/doinst.sh create mode 100644 a52dec/slack-desc create mode 100755 awscli/awscli.SlackBuild create mode 100644 awscli/doinst.sh create mode 100644 awscli/slack-desc create mode 100755 davmail/davmail.SlackBuild create mode 100644 davmail/slack-desc create mode 100755 djmount/djmount.SlackBuild create mode 100644 djmount/slack-desc create mode 100644 ffmpeg/doinst.sh create mode 100755 ffmpeg/ffmpeg.SlackBuild create mode 100644 ffmpeg/slack-desc create mode 100755 flash_player/flash_player.SlackBuild create mode 100644 flash_player/slack-desc create mode 100755 hipchat/hipchat.SlackBuild create mode 100644 hipchat/slack-desc create mode 100755 keepassx/keepassx.SlackBuild create mode 100644 keepassx/slack-desc create mode 100644 libtorrent/doinst.sh create mode 100755 libtorrent/libtorrent.SlackBuild create mode 100644 libtorrent/slack-desc create mode 100755 lua/lua.SlackBuild create mode 100644 lua/slack-desc create mode 100644 mediatomb/doinst.sh create mode 100755 mediatomb/mediatomb.SlackBuild create mode 100755 mediatomb/rc.mediatomb create mode 100644 mediatomb/rc.mediatomb.conf create mode 100644 mediatomb/slack-desc create mode 100755 ntp-dev/ntp-dev.SlackBuild create mode 100644 ntp-dev/ntp.conf create mode 100755 ntp-dev/rc.ntpd-dev create mode 100644 ntp-dev/slack-desc create mode 100644 qbittorrent/doinst.sh create mode 100755 qbittorrent/qbittorrent.SlackBuild create mode 100755 qbittorrent/rc.qbittorrent create mode 100644 qbittorrent/slack-desc create mode 100644 vlc/doinst.sh create mode 100755 vlc/rc.vlc create mode 100644 vlc/rc.vlc.conf create mode 100644 vlc/slack-desc create mode 100755 vlc/vlc.SlackBuild create mode 100644 x264/doinst.sh create mode 100644 x264/slack-desc create mode 100755 x264/x264.SlackBuild create mode 100644 xvidcore/doinst.sh create mode 100644 xvidcore/slack-desc create mode 100755 xvidcore/xvidcore.SlackBuild create mode 100644 yakuake/slack-desc create mode 100755 yakuake/yakuake.SlackBuild diff --git a/README.md.legacy b/README.md.legacy new file mode 100644 index 0000000..53c9523 --- /dev/null +++ b/README.md.legacy @@ -0,0 +1,35 @@ +SlackBuilds +=========== + +SlackBuilds for Slackware Linux + +Written and maintained by Ernest Kugel (erik dot kugel at gmail dot com) + +# Why is this here? +Traditional slackbuilds such as SlackBuilds.org are usually for stable software releases and stable Slackware releases. This repository is meant to supplement those: if you'd like to use the latest source code instead, usually directly from srouce controll, or if you need something that works with rolling Slackware release, or if you need something you cannot find through more traditional channels, this is the place for you. + +# What's here? +- Latest VLC built as an HTTP daemon, with a dedicated system user, and with System-V init scripts +- Lua without shared libs, with position independent code (as Lua recommends!). Defaults to version 5.1.5 to support VLC, but was tested to build up to version 5.3.0 as well +- FFmpeg which will install and play nice with VLC +- x264 from source control +- xvidxode from source crontol +- a52 decoder version 0.7.2 with shared libs +- DavMail MS Exchange Gateway client +- HipChat client for Atlassian chat platform +- Adobe Flash Player package builder +- More! + +# Instructions +Normally, you'd only need to run the appropriate Slackbuild file and the rest will be taken care of: you will end up with a package under /tmp you may then install with `installpkg` or `pkgtool` or `slackpkg --install`: +```bash +git clone https://github.com/erikkugel/SlackBuilds.git +cd SlackBuilds/lua +./lua.SlackBuild +installpkg /tmp/lua-5.2.3-x86_64-1.txz +``` + +If you'd like another version, you can normally adjust the `APP_VER` variable. This will not work for SlackBuilds that build the latest source code from a Git repository, such as FFmpeg or VLC. You can identify those easily since by their `APP_VER=latest`, in which case changing the version will only affect the package name, and not much else. + +# To do: +- Consider switching to a classical SlackBuild variable naming convention (use `VERSION` instead of `APP_VER`, etc). diff --git a/a52dec/a52dec.SlackBuild b/a52dec/a52dec.SlackBuild new file mode 100755 index 0000000..56f262b --- /dev/null +++ b/a52dec/a52dec.SlackBuild @@ -0,0 +1,43 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="a52dec" +VERSION="0.7.4" +APP_URL=http://liba52.sourceforge.net/files/${PRGNAM}-${VERSION}.tar.gz +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +set -e + +if [ "$(uname -m)" == "x86_64" ]; then + LIBDIRSUFFIX="64" + export CFLAGS="-fPIC" +else + LIBDIRSUFFIX="" +fi + +# Download +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR} ${BUILD_DIR}/src +if ! [ -f ${PRGNAM}-${VERSION}.tar.gz ]; then + wget -q ${APP_URL} +fi +tar -v -x -z -C ${BUILD_DIR}/src -f ./${PRGNAM}-${VERSION}.tar.gz +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +cp -v -f ./doinst.sh ${BUILD_DIR}/install/doinst.sh + +# Build +cd ${BUILD_DIR}/src/${PRGNAM}-${VERSION} +./configure \ + --prefix=/usr/local \ + --libdir=/usr/local/lib${LIBDIRSUFFIX} \ + --enable-shared \ + --with-pic + +make install DESTDIR=${BUILD_DIR} +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -p -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} diff --git a/a52dec/doinst.sh b/a52dec/doinst.sh new file mode 100644 index 0000000..53559d5 --- /dev/null +++ b/a52dec/doinst.sh @@ -0,0 +1,6 @@ +( if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi +/sbin/ldconfig -v -n /usr/local/lib${LIBDIRSUFFIX} ) diff --git a/a52dec/slack-desc b/a52dec/slack-desc new file mode 100644 index 0000000..2125b13 --- /dev/null +++ b/a52dec/slack-desc @@ -0,0 +1,11 @@ +a52dec: liba52 +a52dec: +a52dec: liba52 is a free library for decoding ATSC A/52 streams. It is +a52dec: released under the terms of the GPL license. The A/52 standard +a52dec: is used in a variety of applications, including digital television +a52dec: and DVD. It is also known as AC-3. +a52dec: +a52dec: +a52dec: +a52dec: +a52dec: (http://liba52.sourceforge.net/) diff --git a/awscli/awscli.SlackBuild b/awscli/awscli.SlackBuild new file mode 100755 index 0000000..3801d7a --- /dev/null +++ b/awscli/awscli.SlackBuild @@ -0,0 +1,24 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM=awscli +VERSION=1.3.18 +APP_URL=https://s3.amazonaws.com/aws-cli/awscli-bundle.zip +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/tmp +wget -q ${APP_URL} -O ${BUILD_DIR}/tmp/awscli-bundle.zip +unzip ${BUILD_DIR}/tmp/awscli-bundle.zip -d ${BUILD_DIR}/tmp/ +sed -i 's/' ${BUILD_DIR}/tmp/awscli-bundle/install +${BUILD_DIR}/tmp/awscli-bundle/install -i ${BUILD_DIR}/opt/aws +#rm -v -r -f ${BUILD_DIR}/tmp +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +cp -v -f ./doinst.sh ${BUILD_DIR}/install/doinst.sh + + +cd ${BUILD_DIR} +/sbin/makepkg -l n -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.tgz + +#rm -v -r -f ${BUILD_DIR} diff --git a/awscli/doinst.sh b/awscli/doinst.sh new file mode 100644 index 0000000..b342284 --- /dev/null +++ b/awscli/doinst.sh @@ -0,0 +1 @@ +ln -s -v /opt/aws/bin/aws /usr/local/bin/aws diff --git a/awscli/slack-desc b/awscli/slack-desc new file mode 100644 index 0000000..d88ff49 --- /dev/null +++ b/awscli/slack-desc @@ -0,0 +1,11 @@ +awscli: AWS CLI +awscli: +awscli: Universal Command Line Environment for AWS. +awscli: +awscli: +awscli: +awscli: +awscli: +awscli: +awscli: +awscli: (http://aws.amazon.com/cli/) diff --git a/davmail/davmail.SlackBuild b/davmail/davmail.SlackBuild new file mode 100755 index 0000000..f2bfcdc --- /dev/null +++ b/davmail/davmail.SlackBuild @@ -0,0 +1,21 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM=davmail +VERSION=4.5.0 +APP_BUILD=2292 +APP_URL=http://downloads.sourceforge.net/project/davmail/davmail/${VERSION}/davmail-linux-$(uname -m)-${VERSION}-${APP_BUILD}.tgz +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/opt +wget -q -O - ${APP_URL} | tar -v -x -z -C ${BUILD_DIR}/opt -f - +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +echo "ln -v -s -f /opt/davmail-linux-$(uname -m)-${VERSION}-${APP_BUILD} /opt/davmail; + ln -v -s -f /opt/davmail/davmail.sh /usr/local/bin/davmail.sh" > ${BUILD_DIR}/install/doinst.sh + +cd ${BUILD_DIR} +/sbin/makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz + +rm -v -r -f ${BUILD_DIR} diff --git a/davmail/slack-desc b/davmail/slack-desc new file mode 100644 index 0000000..414c1a0 --- /dev/null +++ b/davmail/slack-desc @@ -0,0 +1,11 @@ +davmail: DavMail Gateway +davmail: +davmail: DavMail is a POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway +davmail: allowing users to use any mail/calendar client. +davmail: +davmail: +davmail: +davmail: +davmail: +davmail: +davmail: (http://davmail.sourceforge.net/) diff --git a/djmount/djmount.SlackBuild b/djmount/djmount.SlackBuild new file mode 100755 index 0000000..00c3a26 --- /dev/null +++ b/djmount/djmount.SlackBuild @@ -0,0 +1,26 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="djmount" +VERSION="0.71" +APP_URL=http://downloads.sourceforge.net/project/${PRGNAM}/${PRGNAM}/${VERSION}/${PRGNAM}-${VERSION}.tar.gz +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +# Download +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/src +wget -q -O - ${APP_URL} | tar -v -x -z -C ${BUILD_DIR}/src -f - +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc + +# Build +cd ${BUILD_DIR}/src/${PRGNAM}-${VERSION} +./configure --prefix=/usr/local +make +make install DESTDIR=${BUILD_DIR} +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} diff --git a/djmount/slack-desc b/djmount/slack-desc new file mode 100644 index 0000000..6bd6948 --- /dev/null +++ b/djmount/slack-desc @@ -0,0 +1,11 @@ +djmount: djmount +djmount: +djmount: djmount is a UPnP AV client. It mounts as a Linux filesystem +djmount: the media content of compatible UPnP AV devices. +djmount: +djmount: +djmount: +djmount: +djmount: +djmount: +djmount: (http://djmount.sourceforge.net/) diff --git a/ffmpeg/doinst.sh b/ffmpeg/doinst.sh new file mode 100644 index 0000000..53559d5 --- /dev/null +++ b/ffmpeg/doinst.sh @@ -0,0 +1,6 @@ +( if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi +/sbin/ldconfig -v -n /usr/local/lib${LIBDIRSUFFIX} ) diff --git a/ffmpeg/ffmpeg.SlackBuild b/ffmpeg/ffmpeg.SlackBuild new file mode 100755 index 0000000..59d9bb4 --- /dev/null +++ b/ffmpeg/ffmpeg.SlackBuild @@ -0,0 +1,51 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="ffmpeg" +VERSION="latest" +APP_URL=git://source.ffmpeg.org/ffmpeg.git +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +set -e + +if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +# Download +if [ -d ./${PRGNAM}/.git ]; then + cd ./${PRGNAM} + git pull + cd .. +else + rm -rf ./${PRGNAM} + git clone ${APP_URL} ${PRGNAM} +fi + +# Prepare +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/src +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +cp -v -f ./doinst.sh ${BUILD_DIR}/install/doinst.sh +cp -aRpfv ${PRGNAM} ${BUILD_DIR}/src + +# Build +cd ${BUILD_DIR}/src/${PRGNAM} +chown -Rc root:root . +./configure \ + --prefix=/usr/local \ + --libdir=/usr/local/lib${LIBDIRSUFFIX} \ + --shlibdir=/usr/local/lib${LIBDIRSUFFIX} \ + --enable-shared + +make install -j$(grep -Pc 'processor\t:[0-9]*' /proc/cpuinfo) DESTDIR=${BUILD_DIR} V=99 +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -p -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} + diff --git a/ffmpeg/slack-desc b/ffmpeg/slack-desc new file mode 100644 index 0000000..5d74202 --- /dev/null +++ b/ffmpeg/slack-desc @@ -0,0 +1,11 @@ +ffmpeg: FFmpeg +ffmpeg: +ffmpeg: A complete, cross-platform solution to record, convert and stream +ffmpeg: audio and video. +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: (https://www.ffmpeg.org/) diff --git a/flash_player/flash_player.SlackBuild b/flash_player/flash_player.SlackBuild new file mode 100755 index 0000000..a1f1975 --- /dev/null +++ b/flash_player/flash_player.SlackBuild @@ -0,0 +1,24 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM=flash_player +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +MOZILLA_PLUGIN_PATH=/usr/lib64/mozilla/plugins +VERSION=11 +TAG=1 + +mkdir -v -p ${BUILD_DIR}/install + +tar -v -x -z -C ${BUILD_DIR} -f ./install_flash_player_${VERSION}_linux.$(uname -m).tar.gz + +mv ${BUILD_DIR}/usr/lib ${BUILD_DIR}/usr/lib64 +mkdir -p ${BUILD_DIR}/${MOZILLA_PLUGIN_PATH} +mv -v -f ${BUILD_DIR}/libflashplayer.so ${BUILD_DIR}/${MOZILLA_PLUGIN_PATH}/ + +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc + +cd ${BUILD_DIR} +chown -R root:root . +makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -r -f ${BUILD_DIR} diff --git a/flash_player/slack-desc b/flash_player/slack-desc new file mode 100644 index 0000000..245d3e7 --- /dev/null +++ b/flash_player/slack-desc @@ -0,0 +1,11 @@ +flash_player: Adobe Flash Player +flash_player: +flash_player: Adobe® Flash® Player is a lightweight browser plug-in and rich +flash_player: Internet application runtime that delivers consistent and +flash_player: engaging user experiences, stunning audio/video playback, and +flash_player: exciting gameplay. +flash_player: +flash_player: +flash_player: +flash_player: +flash_player: (http://www.adobe.com/products/flashplayer.html) diff --git a/hipchat/hipchat.SlackBuild b/hipchat/hipchat.SlackBuild new file mode 100755 index 0000000..af27ccf --- /dev/null +++ b/hipchat/hipchat.SlackBuild @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM=hipchat +APP_URL=http://downloads.hipchat.com/linux/arch/hipchat-$(uname -m).tar.xz +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +mkdir -v -p ${BUILD_DIR}/install +wget -q -O - ${APP_URL} | tar -v -x -J -C ${BUILD_DIR} -f - +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc + +VERSION=$(grep ^pkgver ${BUILD_DIR}/.PKGINFO | sed -e 's/^.*\ =\ //g;s/-.*$//g') +rm -v -f ${BUILD_DIR}/.PKGINFO + +cd ${BUILD_DIR} +makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz + +rm -v -r -f ${BUILD_DIR} diff --git a/hipchat/slack-desc b/hipchat/slack-desc new file mode 100644 index 0000000..fbb91ca --- /dev/null +++ b/hipchat/slack-desc @@ -0,0 +1,11 @@ +hipchat: HipChat +hipchat: +hipchat: Group chat and IM built for teams +hipchat: +hipchat: +hipchat: +hipchat: +hipchat: +hipchat: +hipchat: +hipchat: (https://www.hipchat.com/) diff --git a/keepassx/keepassx.SlackBuild b/keepassx/keepassx.SlackBuild new file mode 100755 index 0000000..fc32ee6 --- /dev/null +++ b/keepassx/keepassx.SlackBuild @@ -0,0 +1,29 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="keepassx" +VERSION="2.0" +APP_BUILD="alpha6" +APP_URL="http://www.keepassx.org/dev/attachments/download/69/${PRGNAM}-${VERSION}-${APP_BUILD}.tar.gz" +BUILD_DIR="/tmp/SlackBuild-${PRGNAM}-$(date +%s)" +TAG="${APP_BUILD}" + +# Download +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/build ${BUILD_DIR}/src +wget -q -O - ${APP_URL} | tar -v -x -z -C ${BUILD_DIR}/src -f - +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc + +# Build +mkdir ${BUILD_DIR}/src/${PRGNAM}-${VERSION}-${APP_BUILD}/build +cd ${BUILD_DIR}/src/${PRGNAM}-${VERSION}-${APP_BUILD}/build +cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local +make +make install DESTDIR=${BUILD_DIR} + +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/build ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} diff --git a/keepassx/slack-desc b/keepassx/slack-desc new file mode 100644 index 0000000..a16f06e --- /dev/null +++ b/keepassx/slack-desc @@ -0,0 +1,11 @@ +keepassx: KeePassX +keepassx: +keepassx: KeePassX is an application for people with extremly high demands on +keepassx: secure personal data management. It has a light interface, is cross +keepassx: platform and published under the terms of the GNU General Public +keepassx: License. +keepassx: +keepassx: +keepassx: +keepassx: +keepassx: (http://www.keepassx.org/) diff --git a/libtorrent/doinst.sh b/libtorrent/doinst.sh new file mode 100644 index 0000000..53559d5 --- /dev/null +++ b/libtorrent/doinst.sh @@ -0,0 +1,6 @@ +( if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi +/sbin/ldconfig -v -n /usr/local/lib${LIBDIRSUFFIX} ) diff --git a/libtorrent/libtorrent.SlackBuild b/libtorrent/libtorrent.SlackBuild new file mode 100755 index 0000000..46ee589 --- /dev/null +++ b/libtorrent/libtorrent.SlackBuild @@ -0,0 +1,43 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="libtorrent" +VERSION="1.0.5" +APP_URL=http://downloads.sourceforge.net/project/libtorrent/libtorrent/libtorrent-rasterbar-1.0.5.tar.gz +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +set -e + +if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +# Clone/Pull latest +if ! [ -f libtorrent-rasterbar-${PRGNAM}.tar.gz ]; then + wget -nc ${APP_URL} +fi + +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/src +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +cp -v -f ./doinst.sh ${BUILD_DIR}/install/doinst.sh +tar -v -x -C ${BUILD_DIR}/src -f libtorrent-rasterbar-${VERSION}.tar.gz + +# Build +cd ${BUILD_DIR}/src/${PRGNAM}-rasterbar-${VERSION} +chown -Rc root:root . +# Disable GUI (possible only at compile time: https://github.com/qbittorrent/qBittorrent/wiki/Running-qBittorrent-without-X-server) +./configure \ + --prefix=/usr/local \ + --libdir=/usr/local/lib${LIBDIRSUFFIX} + +make install -j$(grep -Pc 'processor\t:[0-9]*' /proc/cpuinfo) DESTDIR=${BUILD_DIR} V=99 +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -p -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} diff --git a/libtorrent/slack-desc b/libtorrent/slack-desc new file mode 100644 index 0000000..e8daed5 --- /dev/null +++ b/libtorrent/slack-desc @@ -0,0 +1,11 @@ +libtorrent: libtorrent +libtorrent: +libtorrent: libtorrent is a C++ implementation of the BitTorrent protocol with +libtorrent: the goals of being efficient and easy to use. +libtorrent: +libtorrent: +libtorrent: +libtorrent: +libtorrent: +libtorrent: +libtorrent: (http://sourceforge.net/projects/libtorrent/) diff --git a/lua/lua.SlackBuild b/lua/lua.SlackBuild new file mode 100755 index 0000000..c4d55a6 --- /dev/null +++ b/lua/lua.SlackBuild @@ -0,0 +1,39 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="lua" +VERSION="5.1.5" +LUA_V="5.1" +APP_URL=http://www.lua.org/ftp/${PRGNAM}-${VERSION}.tar.gz +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +set -e + +if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" + export CFLAGS="-fPIC" + export CPPFLAGS="-fPIC" +else + LIBDIRSUFFIX="" +fi + +# Download +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/build ${BUILD_DIR}/src +wget -q -O - ${APP_URL} | tar -v -x -z -C ${BUILD_DIR}/src -f - +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc + +# Build +cd ${BUILD_DIR}/src/${PRGNAM}-${VERSION} +make linux install \ + MYLIBS=-ltermcap \ + INSTALL_TOP=${BUILD_DIR}/usr/local \ + INSTALL_LIB=${BUILD_DIR}/usr/local/lib${LIBDIRSUFFIX} \ + INSTALL_CMOD=${BUILD_DIR}/usr/local/lib${LIBDIRSUFFIX}/lua/${LUA_V} +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/build ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} diff --git a/lua/slack-desc b/lua/slack-desc new file mode 100644 index 0000000..90d4062 --- /dev/null +++ b/lua/slack-desc @@ -0,0 +1,11 @@ +lua: Lua +lua: +lua: Lua is a powerful, fast, lightweight, embeddable scripting language. +lua: +lua: +lua: +lua: +lua: +lua: +lua: +lua: (http://www.lua.org/) diff --git a/mediatomb/doinst.sh b/mediatomb/doinst.sh new file mode 100644 index 0000000..32039e2 --- /dev/null +++ b/mediatomb/doinst.sh @@ -0,0 +1,7 @@ +( if [ -z "$(getent passwd mediatomb)" ]; then + /usr/sbin/useradd mediatomb -m -U -G audio,video,cdrom -c "MediaTomb" +fi ) +( if [ ! -d /var/run/mediatomb ]; then + mkdir -v -p /var/run/mediatomb +fi +chown -c -R mediatomb:mediatomb /var/run/mediatomb ) diff --git a/mediatomb/mediatomb.SlackBuild b/mediatomb/mediatomb.SlackBuild new file mode 100755 index 0000000..8bb9a18 --- /dev/null +++ b/mediatomb/mediatomb.SlackBuild @@ -0,0 +1,50 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="mediatomb" +VERSION="latest" +APP_URL=git://${PRGNAM}.git.sourceforge.net/gitroot/${PRGNAM}/${PRGNAM} +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +set -e + +if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +# Download +if [ -d ./${PRGNAM}/.git ]; then + cd ./${PRGNAM} + git pull + cd .. +else + rm -rf ./${PRGNAM} + git clone ${APP_URL} ${PRGNAM} +fi + +# Prepare +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/src ${BUILD_DIR}/etc/rc.d +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +cp -v -f ./doinst.sh ${BUILD_DIR}/install/doinst.sh +cp -v -f ./rc.mediatomb ${BUILD_DIR}/etc/rc.d/rc.mediatomb +cp -v -f ./rc.mediatomb.conf ${BUILD_DIR}/etc/rc.d/rc.mediatomb.conf +cp -aRpfv ${PRGNAM} ${BUILD_DIR}/src + +# Build +cd ${BUILD_DIR}/src/${PRGNAM} +chown -Rc root:root . +autoreconf -i +./configure \ + --prefix=/usr/local \ + --libdir=/usr/local/lib${LIBDIRSUFFIX} +make install -j$(grep -Pc 'processor\t:[0-9]*' /proc/cpuinfo) DESTDIR=${BUILD_DIR} V=99 +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} diff --git a/mediatomb/rc.mediatomb b/mediatomb/rc.mediatomb new file mode 100755 index 0000000..85af602 --- /dev/null +++ b/mediatomb/rc.mediatomb @@ -0,0 +1,62 @@ +#!/bin/bash +# Start/stop/restart mediatomb. +source /etc/rc.d/rc.mediatomb.conf + +# Start mediatomb: +mediatomb_start() { + CMDLINE="/usr/local/bin/mediatomb --daemon + --ip ${MEDIATOMB_IP} + --port ${MEDIATOMB_PORT} + --home ${MEDIATOMB_HOME} + --user ${MEDIATOMB_USER} + --group ${MEDIATOMB_GROUP}" + echo "Starting MediaTomb daemon, listening at ${MEDIATOMB_HOST}:${MEDIATOMB_PORT}" + $CMDLINE --pidfile /var/run/mediatomb/mediatomb.pid + echo +} + +# Stop mediatomb: +mediatomb_stop() { + echo -n "Stopping MEDIATOMB daemon..." + if [ -r /var/run/mediatomb/mediatomb.pid ]; then + kill -HUP $(cat /var/run/mediatomb/mediatomb.pid) + rm -f /var/run/mediatomb/mediatomb.pid + else + killall -HUP -q mediatomb + fi + echo +} + +# Restart mediatomb: +mediatomb_restart() { + mediatomb_stop + sleep 1 + mediatomb_start +} + +# Check if mediatomb is running +mediatomb_status() { + if [ -e /var/run/mediatomb/mediatomb.pid ]; then + echo "mediatomb is running." + else + echo "mediatomb is stopped." + exit 1 + fi +} + +case "$1" in +'start') + mediatomb_start + ;; +'stop') + mediatomb_stop + ;; +'restart') + mediatomb_restart + ;; +'status') + mediatomb_status + ;; +*) + echo "usage $0 start|stop|restart|status" +esac diff --git a/mediatomb/rc.mediatomb.conf b/mediatomb/rc.mediatomb.conf new file mode 100644 index 0000000..e6057a5 --- /dev/null +++ b/mediatomb/rc.mediatomb.conf @@ -0,0 +1,5 @@ +MEDIATOMB_USER=mediatomb +MEDIATOMB_GROUP=mediatomb +MEDIATOMB_HOME=/home/mediatomb +MEDIATOMB_IP=127.0.0.1 +MEDIATOMB_PORT=49152 diff --git a/mediatomb/slack-desc b/mediatomb/slack-desc new file mode 100644 index 0000000..06c3efa --- /dev/null +++ b/mediatomb/slack-desc @@ -0,0 +1,11 @@ +mediatomb: MediaTomb +mediatomb: +mediatomb: MediaTomb is an open source (GPL) UPnP MediaServer with a nice web +mediatomb: user interface, it allows you to stream your digital media through +mediatomb: your home network and listen to/watch it on a variety of UPnP +mediatomb: compatible devices. +mediatomb: +mediatomb: +mediatomb: +mediatomb: +mediatomb: (http://mediatomb.cc/) diff --git a/ntp-dev/ntp-dev.SlackBuild b/ntp-dev/ntp-dev.SlackBuild new file mode 100755 index 0000000..f227036 --- /dev/null +++ b/ntp-dev/ntp-dev.SlackBuild @@ -0,0 +1,30 @@ +#!/bin/bash +# +# Ernest Kugel 2014/01/12 + +BUILD=1 +NTP_DEV_VER="4.2.7p410" +BUILD_DIR="/tmp/build-$(date +%s)" + +mkdir -pv ${BUILD_DIR}/install ${BUILD_DIR}/etc/rc.d ${BUILD_DIR}/opt/ntp-dev-${NTP_DEV_VER}/etc ${BUILD_DIR}/opt/ntp-dev-${NTP_DEV_VER}/var/lib/ntp ${BUILD_DIR}/opt/ntp-dev-${NTP_DEV_VER}/var/run +cat slack-desc > ${BUILD_DIR}/install/slack-desc +sed "s/\${NTP_DEV_VER}/${NTP_DEV_VER}/g" ntp.conf > ${BUILD_DIR}/opt/ntp-dev-${NTP_DEV_VER}/etc/ntp.conf +sed "s/\${NTP_DEV_VER}/${NTP_DEV_VER}/g" rc.ntpd-dev > ${BUILD_DIR}/etc/rc.d/rc.ntpd-dev +chmod +x ${BUILD_DIR}/etc/rc.d/rc.ntpd-dev + +if ! [ -f ntp-dev-${NTP_DEV_VER}.tar.gz ]; then + wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ntp-dev-${NTP_DEV_VER}.tar.gz +fi +tar vxzf ntp-dev-${NTP_DEV_VER}.tar.gz +cd ntp-dev-${NTP_DEV_VER} +./configure --prefix=/opt/ntp-dev-${NTP_DEV_VER} --with-memlock +make V=99 || exit 1 +make check || exit 1 +make install DESTDIR=${BUILD_DIR} || exit 1 +rm -rf ../ntp-dev-${NTP_DEV_VER} + +cd ${BUILD_DIR} +/sbin/makepkg -l n -c n /tmp/ntp-dev-${NTP_DEV_VER}-$(uname -m)-${BUILD}.txz +rm -rf ${BUILD_DIR} + +exit 0 diff --git a/ntp-dev/ntp.conf b/ntp-dev/ntp.conf new file mode 100644 index 0000000..8dd0736 --- /dev/null +++ b/ntp-dev/ntp.conf @@ -0,0 +1,17 @@ +# See http://www.pool.ntp.org/join/configuration.html for syntax + +server 127.127.1.0 +fudge 127.127.1.0 stratum 10 + +server 1.pool.ntp.org +server 2.pool.ntp.org +server 3.pool.ntp.org +server 4.pool.ntp.org + +driftfile /opt/ntp-dev-${NTP_DEV_VER}/var/lib/ntp/ntp.drift + +restrict default kod nomodify notrap nopeer noquery +restrict -6 default kod nomodify notrap nopeer noquery + +restrict 127.0.0.1 +restrict -6 ::1 diff --git a/ntp-dev/rc.ntpd-dev b/ntp-dev/rc.ntpd-dev new file mode 100755 index 0000000..0c5b694 --- /dev/null +++ b/ntp-dev/rc.ntpd-dev @@ -0,0 +1,71 @@ +#!/bin/sh +# Start/stop/restart ntpd. + +# Start ntpd: +ntpd_start() { + CMDLINE="/opt/ntp-dev-${NTP_DEV_VER}/bin/ntpd -c /opt/ntp-dev-${NTP_DEV_VER}/etc/ntp.conf -g" + echo -n "Starting NTP daemon: $CMDLINE" + $CMDLINE -p /opt/ntp-dev-${NTP_DEV_VER}/var/run/ntpd.pid + echo + # The kernel is now mocking around with the the hardware clock if + # ntpd is running, so if the hardware clock (wall clock) is set to + # 'localtime' execute hwclock --localtime --systohc to disable the + # 11 minute mode kernel function: + if [ -x /sbin/hwclock ]; then + # Check for a broken motherboard RTC clock (where ioports for rtc are + # unknown) to prevent hwclock causing a hang: + if ! grep -q -w rtc /proc/ioports ; then + CLOCK_OPT="--directisa" + fi + if ! grep -q "^UTC" /etc/hardwareclock 2> /dev/null ; then + echo "Saving system time to the hardware clock (localtime)." + /sbin/hwclock $CLOCK_OPT --localtime --systohc + fi + fi +} + +# Stop ntpd: +ntpd_stop() { + echo -n "Stopping NTP daemon..." + if [ -r /opt/ntp-dev-${NTP_DEV_VER}/var/run/ntpd.pid ]; then + kill -HUP $(cat /opt/ntp-dev-${NTP_DEV_VER}/var/run/ntpd.pid) + rm -f /opt/ntp-dev-${NTP_DEV_VER}/var/run/ntpd.pid + else + killall -HUP -q ntpd + fi + echo +} + +# Restart ntpd: +ntpd_restart() { + ntpd_stop + sleep 1 + ntpd_start +} + +# Check if ntpd is running +ntpd_status() { + if [ -e /opt/ntp-dev-${NTP_DEV_VER}/var/rund.pid ]; then + echo "ntpd is running." + else + echo "ntpd is stopped." + exit 1 + fi +} + +case "$1" in +'start') + ntpd_start + ;; +'stop') + ntpd_stop + ;; +'restart') + ntpd_restart + ;; +'status') + ntpd_status + ;; +*) + echo "usage $0 start|stop|restart|status" +esac diff --git a/ntp-dev/slack-desc b/ntp-dev/slack-desc new file mode 100644 index 0000000..6a64cbf --- /dev/null +++ b/ntp-dev/slack-desc @@ -0,0 +1,11 @@ +ntp-dev: ntp-dev (NTP stands for Network Time Protocol) +ntp-dev: +ntp-dev: NTP stands for Network Time Protocol, and it is an Internet protocol +ntp-dev: used to synchronize the clocks of computers to some time reference. +ntp-dev: NTP is an Internet standard protocol originally developed by Professor +ntp-dev: David L. Mills at the University of Delaware. +ntp-dev: +ntp-dev: NTP version 4, a significant revision of the previous NTP standard, is +ntp-dev: the current development version. It is formalized by RFCs released by +ntp-dev: the IETF. +ntp-dev: diff --git a/qbittorrent/doinst.sh b/qbittorrent/doinst.sh new file mode 100644 index 0000000..a113244 --- /dev/null +++ b/qbittorrent/doinst.sh @@ -0,0 +1,13 @@ +( if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi +/sbin/ldconfig -v -n /usr/local/lib${LIBDIRSUFFIX} ) +( if [ -z "$(getent passwd qbittorrent)" ]; then + /usr/sbin/useradd qbittorrent -m -U -c "qBitTorrent" +fi ) +( if [ ! -d /var/run/qbittorrent ]; then + mkdir -v -p /var/run/qbittorrent +fi +chown -c -R qbittorrent:qbittorrent /var/run/qbittorrent ) diff --git a/qbittorrent/qbittorrent.SlackBuild b/qbittorrent/qbittorrent.SlackBuild new file mode 100755 index 0000000..bd227ff --- /dev/null +++ b/qbittorrent/qbittorrent.SlackBuild @@ -0,0 +1,50 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="qbittorrent" +VERSION="latest" +APP_URL="https://github.com/qbittorrent/qBittorrent.git" +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +set -e + +if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +# Clone/Pull latest +if [ -d ./${PRGNAM}/.git ]; then + cd ./${PRGNAM} + git pull + cd .. +else + rm -rfv ./${PRGNAM} + git clone ${APP_URL} ${PRGNAM} +fi + +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/src ${BUILD_DIR}/etc/rc.d +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +cp -v -f ./doinst.sh ${BUILD_DIR}/install/doinst.sh +cp -v -f ./rc.qbittorrent ${BUILD_DIR}/etc/rc.d/rc.qbittorrent +cp -aRpfv ${PRGNAM} ${BUILD_DIR}/src + +# Build +cd ${BUILD_DIR}/src/${PRGNAM} +chown -Rc root:root . +# Skip GUI: https://github.com/qbittorrent/qBittorrent/wiki/Running-qBittorrent-without-X-server +./configure \ + --prefix=/usr/local \ + --libdir=/usr/local/lib${LIBDIRSUFFIX} \ + --disable-gui + +make install -j$(grep -Pc 'processor\t:[0-9]*' /proc/cpuinfo) DESTDIR=${BUILD_DIR} V=99 +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} diff --git a/qbittorrent/rc.qbittorrent b/qbittorrent/rc.qbittorrent new file mode 100755 index 0000000..47adc6c --- /dev/null +++ b/qbittorrent/rc.qbittorrent @@ -0,0 +1,56 @@ +#!/bin/bash +# Start/stop/restart qbittorrent. + +# Start qbittorrent: +qbittorrent_start() { + echo "y" | sudo -u qbittorrent /usr/local/bin/qbittorrent-nox -d -webui-port=8080 + pgrep qbittorrent-nox > /var/run/qbittorrent/qbittorrent.pid + echo "Starting qBitTorrent daemon..." + echo +} + +# Stop qbittorrent: +qbittorrent_stop() { + echo -n "Stopping qBitTorrent daemon..." + if [ -r /var/run/qbittorrent/qbittorrent.pid ]; then + kill -HUP $(cat /var/run/qbittorrent/qbittorrent.pid) + rm -f /var/run/qbittorrent/qbittorrent.pid + else + killall -HUP -q qbittorrent-nox + fi + echo +} + +# Restart qbittorrent: +qbittorrent_restart() { + qbittorrent_stop + sleep 1 + qbittorrent_start +} + +# Check if qbittorrent is running +qbittorrent_status() { + if [ -e /var/run/qbittorrent/qbittorrent.pid ]; then + echo "qbittorrent is running." + else + echo "qbittorrent is stopped." + exit 1 + fi +} + +case "$1" in +'start') + qbittorrent_start + ;; +'stop') + qbittorrent_stop + ;; +'restart') + qbittorrent_restart + ;; +'status') + qbittorrent_status + ;; +*) + echo "usage $0 start|stop|restart|status" +esac diff --git a/qbittorrent/slack-desc b/qbittorrent/slack-desc new file mode 100644 index 0000000..3751309 --- /dev/null +++ b/qbittorrent/slack-desc @@ -0,0 +1,11 @@ +qbittorrent: qBittorrent - A BitTorrent client in Qt +qbittorrent: +qbittorrent: qBittorrent is a bittorrent client programmed in C++ / Qt that +qbittorrent: uses libtorrent (sometimes called libtorrent-rasterbar) by Arvid +qbittorrent: Norberg. +qbittorrent: +qbittorrent: +qbittorrent: +qbittorrent: +qbittorrent: +qbittorrent: (https://github.com/qbittorrent/qBittorrent) diff --git a/vlc/doinst.sh b/vlc/doinst.sh new file mode 100644 index 0000000..ee945d4 --- /dev/null +++ b/vlc/doinst.sh @@ -0,0 +1,13 @@ +( if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi +/sbin/ldconfig -v -n /usr/local/lib${LIBDIRSUFFIX} ) +( if [ -z "$(getent passwd vlc)" ]; then + /usr/sbin/useradd vlc -m -U -G audio,video,cdrom -c "VLC Pleayer" +fi ) +( if [ ! -d /var/run/vlc ]; then + mkdir -v -p /var/run/vlc +fi +chown -c -R vlc:vlc /var/run/vlc ) diff --git a/vlc/rc.vlc b/vlc/rc.vlc new file mode 100755 index 0000000..0e95903 --- /dev/null +++ b/vlc/rc.vlc @@ -0,0 +1,61 @@ +#!/bin/sh +# Start/stop/restart vlc. +source /etc/rc.d/rc.vlc.conf + +# Start vlc: +vlc_start() { + CMDLINE="/usr/local/bin/cvlc --daemon + -I http + --http-host ${VLC_HOST} + --http-port ${VLC_PORT} + --http-password=${VLC_PASSWORD}" + echo "Starting VLC daemon, listening at ${VLC_HOST}:${VLC_PORT}" + sudo -s -u ${VLC_USER} $CMDLINE --pidfile /var/run/vlc/vlc.pid + echo +} + +# Stop vlc: +vlc_stop() { + echo -n "Stopping VLC daemon..." + if [ -r /var/run/vlc/vlc.pid ]; then + kill -HUP $(cat /var/run/vlc/vlc.pid) + rm -f /var/run/vlc/vlc.pid + else + killall -HUP -q vlc + fi + echo +} + +# Restart vlc: +vlc_restart() { + vlc_stop + sleep 1 + vlc_start +} + +# Check if vlc is running +vlc_status() { + if [ -e /var/run/vlc/vlc.pid ]; then + echo "vlc is running." + else + echo "vlc is stopped." + exit 1 + fi +} + +case "$1" in +'start') + vlc_start + ;; +'stop') + vlc_stop + ;; +'restart') + vlc_restart + ;; +'status') + vlc_status + ;; +*) + echo "usage $0 start|stop|restart|status" +esac diff --git a/vlc/rc.vlc.conf b/vlc/rc.vlc.conf new file mode 100644 index 0000000..ae3c89b --- /dev/null +++ b/vlc/rc.vlc.conf @@ -0,0 +1,4 @@ +VLC_USER="vlc" +VLC_HOST=127.0.0.1 +VLC_PORT=8080 +VLC_PASSWORD="vlc" diff --git a/vlc/slack-desc b/vlc/slack-desc new file mode 100644 index 0000000..66e8e51 --- /dev/null +++ b/vlc/slack-desc @@ -0,0 +1,11 @@ +vlc: VLC media player +vlc: +vlc: VLC is a free and open source cross-platform multimedia player and +vlc: framework that plays most multimedia files as well as DVDs, Audio +vlc: CDs, VCDs, and various streaming protocols. +vlc: +vlc: +vlc: +vlc: +vlc: +vlc: (https://www.videolan.org/) diff --git a/vlc/vlc.SlackBuild b/vlc/vlc.SlackBuild new file mode 100755 index 0000000..4c19fcd --- /dev/null +++ b/vlc/vlc.SlackBuild @@ -0,0 +1,51 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="vlc" +VERSION="latest" +#APP_URL=http://download.videolan.org/pub/videolan/${PRGNAM}/${VERSION}/${PRGNAM}-${VERSION}.tar.xz +APP_URL=git://git.videolan.org/${PRGNAM}.git +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +set -e + +if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +# Clone/Pull latest +if [ -d ./${PRGNAM}/.git ]; then + cd ./${PRGNAM} + git pull + cd .. +else + rm -rfv ./${PRGNAM} + git clone ${APP_URL} ${PRGNAM} +fi + +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/src ${BUILD_DIR}/etc/rc.d +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +cp -v -f ./doinst.sh ${BUILD_DIR}/install/doinst.sh +cp -v -f ./rc.vlc ${BUILD_DIR}/etc/rc.d/rc.vlc +cp -v -f ./rc.vlc.conf ${BUILD_DIR}/etc/rc.d/rc.vlc.conf +cp -aRpfv ${PRGNAM} ${BUILD_DIR}/src + +# Build +cd ${BUILD_DIR}/src/${PRGNAM} +chown -Rc root:root . +./bootstrap +./configure \ + --prefix=/usr/local \ + --libdir=/usr/local/lib${LIBDIRSUFFIX} + +make install -j$(grep -Pc 'processor\t:[0-9]*' /proc/cpuinfo) DESTDIR=${BUILD_DIR} V=99 +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -p -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} diff --git a/x264/doinst.sh b/x264/doinst.sh new file mode 100644 index 0000000..53559d5 --- /dev/null +++ b/x264/doinst.sh @@ -0,0 +1,6 @@ +( if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi +/sbin/ldconfig -v -n /usr/local/lib${LIBDIRSUFFIX} ) diff --git a/x264/slack-desc b/x264/slack-desc new file mode 100644 index 0000000..4e64ea4 --- /dev/null +++ b/x264/slack-desc @@ -0,0 +1,11 @@ +x264: x264 +x264: +x264: x264 media encoder/decoder +x264: +x264: +x264: +x264: +x264: +x264: +x264: +x264: (https://www.videolan.org/) diff --git a/x264/x264.SlackBuild b/x264/x264.SlackBuild new file mode 100755 index 0000000..db3ff8e --- /dev/null +++ b/x264/x264.SlackBuild @@ -0,0 +1,48 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="x264" +VERSION="latest" +#APP_URL=http://download.videolan.org/pub/videolan/${PRGNAM}/${VERSION}/${PRGNAM}-${VERSION}.tar.xz +APP_URL=git://git.videolan.org/${PRGNAM}.git +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 +set -e + +if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +# Clone/Pull latest +if [ -d ./${PRGNAM}/.git ]; then + cd ./${PRGNAM} + git pull + cd .. +else + rm -rfv ./${PRGNAM} + git clone ${APP_URL} ${PRGNAM} +fi + +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/src +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +cp -v -f ./doinst.sh ${BUILD_DIR}/install/doinst.sh +cp -aRpfv ${PRGNAM} ${BUILD_DIR}/src + +# Build +cd ${BUILD_DIR}/src/${PRGNAM} +chown -Rc root:root . +./configure \ + --prefix=/usr/local \ + --libdir=/usr/local/lib${LIBDIRSUFFIX} \ + --enable-shared + +make install -j$(grep -Pc 'processor\t:[0-9]*' /proc/cpuinfo) DESTDIR=${BUILD_DIR} V=99 +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -p -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR} diff --git a/xvidcore/doinst.sh b/xvidcore/doinst.sh new file mode 100644 index 0000000..53559d5 --- /dev/null +++ b/xvidcore/doinst.sh @@ -0,0 +1,6 @@ +( if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi +/sbin/ldconfig -v -n /usr/local/lib${LIBDIRSUFFIX} ) diff --git a/xvidcore/slack-desc b/xvidcore/slack-desc new file mode 100644 index 0000000..d4e2501 --- /dev/null +++ b/xvidcore/slack-desc @@ -0,0 +1,11 @@ +xvidcore: Xvid latest daily snapshot (Unstable!) +xvidcore: +xvidcore: Best open-source video software for all platforms. +xvidcore: +xvidcore: +xvidcore: +xvidcore: +xvidcore: +xvidcore: +xvidcore: +xvidcore: (https://labs.xvidcore.com/) diff --git a/xvidcore/xvidcore.SlackBuild b/xvidcore/xvidcore.SlackBuild new file mode 100755 index 0000000..c7126c8 --- /dev/null +++ b/xvidcore/xvidcore.SlackBuild @@ -0,0 +1,45 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="xvidcore" +VERSION="latest" +APP_URL=http://svn.xvid.org/trunk +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 +set -e + +if [ "$(getconf LONG_BIT)" == "64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +# Download latest daily build and fetch description and post-install script +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/src +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc +cp -v -f ./doinst.sh ${BUILD_DIR}/install/doinst.sh +if [ -d ./.svn ]; then + svn update --username anonymous --password '' --non-interactive . +else + svn checkout ${APP_URL} --username anonymous --password '' --non-interactive . +fi +cp -v -a -R -p -f ${PRGNAM} ${BUILD_DIR}/src/${PRGNAM} + +# Build +cd ${BUILD_DIR}/src/${PRGNAM}/build/generic +./bootstrap.sh +./configure \ + --prefix=/usr/local \ + --libdir=/usr/local/lib${LIBDIRSUFFIX} + +make -j$(grep -Pc 'processor\t:[0-9]*' /proc/cpuinfo) V=99 +make install DESTDIR=${BUILD_DIR} +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -p -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz + +# Clean up +rm -v -r -f ${BUILD_DIR} diff --git a/yakuake/slack-desc b/yakuake/slack-desc new file mode 100644 index 0000000..7dffbc8 --- /dev/null +++ b/yakuake/slack-desc @@ -0,0 +1,11 @@ +yakuake: Yakuake +yakuake: +yakuake: Yakuake is a drop-down terminal emulator based on KDE Konsole +yakuake: technology. +yakuake: +yakuake: +yakuake: +yakuake: +yakuake: +yakuake: +yakuake: (http://yakuake.kde.org/) diff --git a/yakuake/yakuake.SlackBuild b/yakuake/yakuake.SlackBuild new file mode 100755 index 0000000..a27fb00 --- /dev/null +++ b/yakuake/yakuake.SlackBuild @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Ernest Kugel, 2014 + +PRGNAM="yakuake" +VERSION="2.9.9" +APP_URL=http://download.kde.org/stable/yakuake/${VERSION}/src/yakuake-${VERSION}.tar.xz +BUILD_DIR=/tmp/SlackBuild-${PRGNAM}-$(date +%s) +TAG=1 + +# Download +mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/build ${BUILD_DIR}/src +wget -q -O - ${APP_URL} | tar -v -x -J -C ${BUILD_DIR}/src -f - +cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc + +# Build +mkdir ${BUILD_DIR}/src/${PRGNAM}-${VERSION}/build +cd ${BUILD_DIR}/src/${PRGNAM}-${VERSION}/build +cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../ +make +make install DESTDIR=${BUILD_DIR} +cd ${BUILD_DIR} +rm -v -r -f ${BUILD_DIR}/build ${BUILD_DIR}/src + +# Create package +/sbin/makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz +rm -v -r -f ${BUILD_DIR}