diff --git a/src/aosp-devel/PKGBUILD b/src/aosp-devel/PKGBUILD deleted file mode 100644 index f75f6bb..0000000 --- a/src/aosp-devel/PKGBUILD +++ /dev/null @@ -1,15 +0,0 @@ -# Maintainer: Pablo Moyano (p4block) -pkgname=aosp-devel -pkgver=0.3 -pkgrel=1 -pkgdesc='Metapackage to pull all dependencies required to build modern Android' -arch=('x86_64') -url='https://wiki.archlinux.org/index.php/Android#Building_Android' -license=('None') -depends=('gcc-multilib' 'repo' 'git' 'gnupg' 'flex' 'bison' 'gperf' 'sdl' 'wxgtk' - 'squashfs-tools' 'curl' 'ncurses' 'zlib' 'schedtool' 'perl-switch' - 'zip' 'unzip' 'libxslt' 'python2-virtualenv' 'bc' 'rsync' 'ccache' - 'java-environment' - 'ncurses5-compat-libs' 'lib32-zlib' 'lib32-ncurses' 'lib32-readline' - 'lib32-ncurses5-compat-libs') - diff --git a/src/deltarpm/PKGBUILD b/src/deltarpm/PKGBUILD deleted file mode 100644 index 41c92ed..0000000 --- a/src/deltarpm/PKGBUILD +++ /dev/null @@ -1,40 +0,0 @@ -# Contributor: Thomas Dziedzic < gostrc at gmail > -# Contributor: Michael Eckert - -pkgname=deltarpm -pkgver=3.6.1 -pkgrel=1 -pkgdesc="Create deltas between rpms" -arch=('i686' 'x86_64') -license=('BSD') -url="https://github.com/rpm-software-management/$pkgname" -depends=('rpm-org' 'zlib') -makedepends=('python2' 'python') -optdepends=('python2: for python2 module' - 'python: for python3 module') -source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz") -md5sums=('c48086229bdfcf5af890f104231180c6') - -build() { - cd "$pkgname-$pkgver" - make PYTHONS='python2 python' \ - prefix=/usr \ - zlibbundled='' \ - zlibldflags='-lz' \ - zlibcppflags='' \ - all python -} - -package() { - cd "$pkgname-$pkgver" - - make DESTDIR="$pkgdir/" \ - PYTHONS='python2 python' \ - prefix=/usr \ - install - - install -D -m644 README "$pkgdir/usr/share/doc/$pkgname/README" - install -D -m644 LICENSE.BSD "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD" -} - -# vim: set ft=sh ts=4 sw=4 noet: diff --git a/src/dpkg/PKGBUILD b/src/dpkg/PKGBUILD deleted file mode 100644 index c25d14e..0000000 --- a/src/dpkg/PKGBUILD +++ /dev/null @@ -1,49 +0,0 @@ -# Maintainer: Alad Wenter -# Contributor: Jochen Schalanda -# Contributor: C. Dominik Bódi -# Contributor: Pierre Carrier -# Contributor: Thomas Dziedzic -# Contributor: Chris Giles -# Contributor: seblu -# Contributor: squiddo -# Contributor: dront78 -# Contributor: hugelgupf - -pkgname=dpkg -pkgver=1.18.24 -_commit=4fd7def03c96e82c03773c6eca111cf244bae8c0 -pkgrel=2 -pkgdesc="The Debian Package Manager. Don't use it instead of Arch's 'pacman'." -arch=('i686' 'x86_64') -url="https://tracker.debian.org/pkg/dpkg" -license=('GPL') -depends=('xz' 'zlib' 'bzip2' 'perl') -makedepends=('perl-io-string' 'perl-timedate' 'git') -checkdepends=('perl-io-string' 'perl-test-pod') -source=("$pkgname-$pkgver::git+https://anonscm.debian.org/git/dpkg/dpkg.git#commit=$_commit") -sha256sums=('SKIP') - -check() { - cd "$pkgname-$pkgver" - #make check -} - -build() { - cd "$pkgname-$pkgver" - autoreconf -f -i - - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --sbindir=/usr/bin \ - --disable-start-stop-daemon - make -} - -package() { - cd "$pkgname-$pkgver" - make DESTDIR="$pkgdir" install - - install -d "$pkgdir/var/$pkgname"/updates/ - touch "${pkgdir}/var/lib/$pkgname"/{status,available} -} diff --git a/src/evdi-pre-release/PKGBUILD b/src/evdi-pre-release/PKGBUILD deleted file mode 100644 index 630f1ac..0000000 --- a/src/evdi-pre-release/PKGBUILD +++ /dev/null @@ -1,43 +0,0 @@ -# Maintainer: PlusMinus - -_libname=evdi -pkgname=$_libname-pre-release -pkgver=1.4.1 -pkgrel=9 -pkgdesc="A Linux® kernel module that enables management of multiple screens." -arch=('i686' 'x86_64') -url="https://github.com/DisplayLink/evdi" -license=('GPL') -groups=() -depends=(dkms) -makedepends=(libdrm) -optdepends=() -provides=("$_libname=$pkgver") -conflicts=($_libname) -backup=() -options=() -install=$pkgname.install -changelog=$pkgname.Changelog -source=($_libname-$pkgver-$pkgrel.tar.gz::https://github.com/DisplayLink/evdi/archive/v$pkgver.tar.gz) -md5sums=('eece77058251418d5707457aa8ae914e') -noextract=() - -build() { -# We only need to build the library in this step, dkms will build the module -cd "$_libname-$pkgver/library" - -make -} - -package() { -# Predfine some target folders -SRCDIR="$pkgdir/usr/src/$_libname-$pkgver" # This one is needed for dkms -LIBNAME=lib$_libname - -cd "$_libname-$pkgver" - -install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so - -install -d $SRCDIR -install -D -m 755 module/* $SRCDIR -} diff --git a/src/evdi-pre-release/evdi-pre-release.Changelog b/src/evdi-pre-release/evdi-pre-release.Changelog deleted file mode 100644 index 4a4d10a..0000000 --- a/src/evdi-pre-release/evdi-pre-release.Changelog +++ /dev/null @@ -1,19 +0,0 @@ -v1.4.1 -Synchronisation of code base to make it in line with Chrome OS kernels - -v1.4.0 -Compilation fixes for kernel 4.10 -API compatibility enforcement between the library and module. - -v1.3.43 -Adding support for indicating an area limit a client that connects to EVDI has. - -v1.3.42 -Fixes for Kernels 4.9 and 4.10. -API change: Extension of evdi_connect function, allowing to register modes that the client supports, regardless of the fact they are not necessarily listed in the EDID of a monitor. - -v1.2.64 -Highlights: fixes for kernel 4.8. - -v1.2.55 -Module and library code to be included in DisplayLink USB Graphics Software for Ubuntu, version 1.2. diff --git a/src/evdi-pre-release/evdi-pre-release.install b/src/evdi-pre-release/evdi-pre-release.install deleted file mode 100644 index 89a7655..0000000 --- a/src/evdi-pre-release/evdi-pre-release.install +++ /dev/null @@ -1,20 +0,0 @@ -# old version (without -$pkgrel): ${1%%-*} -# new version (without -$pkgrel): ${2%%-*} - -post_install() { - echo 'DKMS install...' - dkms install evdi/${1%%-*} -} - -pre_upgrade() { - pre_remove ${2%%-*} -} - -post_upgrade() { - post_install ${1%%-*} -} - -pre_remove() { - echo 'DKMS remove...' - dkms remove evdi/${1%%-*} --all -} diff --git a/src/evdi/.gitignore b/src/evdi/.gitignore deleted file mode 100644 index b20752a..0000000 --- a/src/evdi/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -*.tar.gz -*.tar.xz -pkg/ -src/ diff --git a/src/evdi/PKGBUILD b/src/evdi/PKGBUILD deleted file mode 100644 index 339e501..0000000 --- a/src/evdi/PKGBUILD +++ /dev/null @@ -1,43 +0,0 @@ -# Maintainer: PlusMinus - -pkgname=evdi -pkgver=1.3.43 -pkgrel=1 -pkgdesc="A Linux® kernel module that enables management of multiple screens." -arch=('i686' 'x86_64') -url="https://github.com/DisplayLink/evdi" -license=('GPL') -groups=() -depends=(dkms) -makedepends=(libdrm) -optdepends=() -provides=() -conflicts=() -replaces=() -backup=() -options=() -install=$pkgname.install -changelog=$pkgname.Changelog -source=($pkgname-$pkgver-$pkgrel.tar.gz::https://github.com/DisplayLink/evdi/archive/v$pkgver.tar.gz) -noextract=() -md5sums=('08b08e873f5b4f70929a126427150152') - -build() { -# We only need to build the library in this step, dmks will build the module -cd "$pkgname-$pkgver/library" - -make -} - -package() { -# Predfine some target folders -SRCDIR="$pkgdir/usr/src/$pkgname-$pkgver" # This one is needed for dkms -LIBNAME=lib$pkgname - -cd "$pkgname-$pkgver" - -install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so - -install -d $SRCDIR -install -D -m 755 module/* $SRCDIR -} diff --git a/src/evdi/evdi.Changelog b/src/evdi/evdi.Changelog deleted file mode 100644 index 30bbda7..0000000 --- a/src/evdi/evdi.Changelog +++ /dev/null @@ -1,12 +0,0 @@ -v1.3.43 -Adding support for indicating an area limit a client that connects to EVDI has. - -v1.3.42 -Fixes for Kernels 4.9 and 4.10. -API change: Extension of evdi_connect function, allowing to register modes that the client supports, regardless of the fact they are not necessarily listed in the EDID of a monitor. - -v1.2.64 -Highlights: fixes for kernel 4.8. - -v1.2.55 -Module and library code to be included in DisplayLink USB Graphics Software for Ubuntu, version 1.2. diff --git a/src/evdi/evdi.install b/src/evdi/evdi.install deleted file mode 100644 index 89a7655..0000000 --- a/src/evdi/evdi.install +++ /dev/null @@ -1,20 +0,0 @@ -# old version (without -$pkgrel): ${1%%-*} -# new version (without -$pkgrel): ${2%%-*} - -post_install() { - echo 'DKMS install...' - dkms install evdi/${1%%-*} -} - -pre_upgrade() { - pre_remove ${2%%-*} -} - -post_upgrade() { - post_install ${1%%-*} -} - -pre_remove() { - echo 'DKMS remove...' - dkms remove evdi/${1%%-*} --all -} diff --git a/src/lineageos-devel/PKGBUILD b/src/lineageos-devel/PKGBUILD deleted file mode 100644 index ddae9b6..0000000 --- a/src/lineageos-devel/PKGBUILD +++ /dev/null @@ -1,11 +0,0 @@ -# Maintainer: Pablo Moyano (p4block) -pkgname=lineageos-devel -pkgver=0.1 -pkgrel=1 -pkgdesc='Metapackage to pull all dependencies required to build LineageOS' -arch=('x86_64') -url='https://wiki.archlinux.org/index.php/Android#Building_Android' -license=('None') -depends=('aosp-devel' 'ffmpeg' 'ninja' 'xml2' 'lzop' 'pngcrush' 'imagemagick') -optdepends=('maven' 'gradle') - diff --git a/src/rpm-org/.gitignore b/src/rpm-org/.gitignore deleted file mode 100644 index bd9b4a4..0000000 --- a/src/rpm-org/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -*.tar.gz -*.tar.xz -*.tgz -*.rpm -*.zip -*.bz2 -src/ -pkg/ diff --git a/src/rpm-org/PKGBUILD b/src/rpm-org/PKGBUILD deleted file mode 100644 index a4566a7..0000000 --- a/src/rpm-org/PKGBUILD +++ /dev/null @@ -1,74 +0,0 @@ -# Contributor: Johannes Dewender arch at JonnyJD dot net -# Contributor: Konrad -# Contributor: Luka Perkov lukaperkov net> -# Contributor: Fernando M beford.net> -# Author: Wintershade - -pkgname=rpm-org -pkgver=4.13.0.1 -_pkgver=$pkgver -#_pkgver=4.12.0-rc1 -pkgrel=1 -pkgdesc="RPM Package Manager - RPM.org fork, used in major RPM distros" -arch=('i686' 'x86_64') -url="http://www.rpm.org/" -license=('GPL2') -depends=('lua>=5.1' 'file' 'nss>=3.12' 'popt' 'elfutils' 'libarchive' 'libcap') -makedepends=('python2' 'python') -optdepends=('libdbus: systemd inhibit plugin') -conflicts=('rpm' 'rpmextract') -options=('!libtool') -provides=("rpm=${pkgver}" 'rpmextract=1.0-4') -#source=(https://github.com/rpm-software-management/rpm/releases/download/rpm-${pkgver}-release/rpm-${pkgver}.tar.bz2 -source=(http://ftp.rpm.org/releases/rpm-4.13.x/rpm-$pkgver.tar.bz2 - rpmextract.sh rpmlib-filesystem-check.patch bfdfix.patch) -sha1sums=('9566f95f38fcb214e439c552f378c2f64ba0aff9' - '74849919207885ae024f1ab8ed68a76474d67ad7' - '0c5fa516dde1f10211af896c729e4b00c313e12b' - '456d4a2c9f71c2e3bfa5011800855a73a55aa5bc') - -prepare() { - cd ${srcdir}/rpm-${_pkgver} - patch -p1 < ../rpmlib-filesystem-check.patch - patch -p1 < ../bfdfix.patch - } - - -build() { - cd ${srcdir}/rpm-${_pkgver} - - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --enable-python \ - --with-external-db \ - --with-lua \ - --with-cap \ - CPPFLAGS="`pkg-config --cflags nss`" \ - PYTHON=python2 - make -} - -package() { - cd ${srcdir}/rpm-${_pkgver} - make prefix=${pkgdir}/usr localstatedir=${pkgdir}/var install - rmdir ${pkgdir}/var/tmp - rmdir ${pkgdir}/var - # rpmextract using bsdtar, needs libarchive - install -m755 ${srcdir}/rpmextract.sh ${pkgdir}/usr/bin/ - - # move rpm from /bin to /usr/bin - mv ${pkgdir}/bin/rpm ${pkgdir}/usr/bin/ - rm ${pkgdir}/usr/bin/rpm{query,verify} - cd ${pkgdir}/usr/bin - ln -s rpm rpmquery - ln -s rpm rpmverify - rm -r ${pkgdir}/bin/ - - # also install python 3 files - # building with python 3 files as default doesn't seem to work - cd ${srcdir}/rpm-${_pkgver} - cd python - python setup.py install --root="$pkgdir/" --optimize=1 -} diff --git a/src/rpm-org/bfdfix.patch b/src/rpm-org/bfdfix.patch deleted file mode 100644 index c3e7d69..0000000 --- a/src/rpm-org/bfdfix.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/tools/sepdebugcrcfix.c b/tools/sepdebugcrcfix.c -index cd7fa02..03db7af 100644 ---- a/tools/sepdebugcrcfix.c -+++ b/tools/sepdebugcrcfix.c -@@ -28,7 +28,19 @@ - #include - #include - #include -+#ifndef PACKAGE -+#define PACKAGE -+#ifndef PACKAGE_VERSION -+#define PACKAGE_VERSION - #include -+#undef PACKAGE_VERSION -+#else -+#include -+#endif -+#undef PACKAGE -+#else -+#include -+#endif - - #define _(x) x - #define static_assert(expr) \ diff --git a/src/rpm-org/lua-5.3.patch b/src/rpm-org/lua-5.3.patch deleted file mode 100644 index dd8062a..0000000 --- a/src/rpm-org/lua-5.3.patch +++ /dev/null @@ -1,64 +0,0 @@ -From 82c0aa33c904274d9d62b629c2d15990aab45050 Mon Sep 17 00:00:00 2001 -From: Johannes Dewender -Date: Mon, 18 May 2015 10:11:13 +0200 -Subject: [PATCH] remove luaL_checkint, deprecated in lua 5.3 - -luaL_checkint and luaL_optint are deprecated in lua 5.3 -The variants luaL_checkinteger and luaL_optinteger work -the same with an implicit typecast (lua_integer -> int). ---- - luaext/lposix.c | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - -diff --git a/luaext/lposix.c b/luaext/lposix.c -index a59be3e..51ea2b3 100644 ---- a/luaext/lposix.c -+++ b/luaext/lposix.c -@@ -361,22 +361,22 @@ static int Pfork(lua_State *L) /** fork() */ - - static int Pwait(lua_State *L) /** wait([pid]) */ - { -- pid_t pid = luaL_optint(L, 1, -1); -+ pid_t pid = luaL_optinteger(L, 1, -1); - return pushresult(L, waitpid(pid, NULL, 0), NULL); - } - - - static int Pkill(lua_State *L) /** kill(pid,[sig]) */ - { -- pid_t pid = luaL_checkint(L, 1); -- int sig = luaL_optint(L, 2, SIGTERM); -+ pid_t pid = luaL_checkinteger(L, 1); -+ int sig = luaL_optinteger(L, 2, SIGTERM); - return pushresult(L, kill(pid, sig), NULL); - } - - - static int Psleep(lua_State *L) /** sleep(seconds) */ - { -- unsigned int seconds = luaL_checkint(L, 1); -+ unsigned int seconds = luaL_checkinteger(L, 1); - lua_pushnumber(L, sleep(seconds)); - return 1; - } -@@ -529,7 +529,7 @@ static int Pgetprocessid(lua_State *L) /** getprocessid([selector]) */ - - static int Pttyname(lua_State *L) /** ttyname(fd) */ - { -- int fd=luaL_optint(L, 1, 0); -+ int fd=luaL_optinteger(L, 1, 0); - lua_pushstring(L, ttyname(fd)); - return 1; - } -@@ -880,7 +880,7 @@ static int exit_override(lua_State *L) - if (!have_forked) - return luaL_error(L, "exit not permitted in this context"); - -- exit(luaL_optint(L, 1, EXIT_SUCCESS)); -+ exit(luaL_optinteger(L, 1, EXIT_SUCCESS)); - } - - static const luaL_Reg os_overrides[] = --- -2.1.3 - diff --git a/src/rpm-org/rpmextract.sh b/src/rpm-org/rpmextract.sh deleted file mode 100644 index f9d4e5b..0000000 --- a/src/rpm-org/rpmextract.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -if [ "$1" = "" -o ! -e "$1" ]; then - echo "no package supplied" 1>&2 - exit 1 -fi -bsdtar xf $1 diff --git a/src/rpm-org/rpmlib-filesystem-check.patch b/src/rpm-org/rpmlib-filesystem-check.patch deleted file mode 100644 index 984d8c4..0000000 --- a/src/rpm-org/rpmlib-filesystem-check.patch +++ /dev/null @@ -1,125 +0,0 @@ -diff -up rpm-4.10.90.git11978/lib/depends.c.rpmlib-filesystem-check rpm-4.10.90.git11978/lib/depends.c ---- rpm-4.10.90.git11978/lib/depends.c.rpmlib-filesystem-check 2012-11-01 09:40:26.000000000 +0200 -+++ rpm-4.10.90.git11978/lib/depends.c 2012-11-05 10:53:42.294733695 +0200 -@@ -589,6 +589,109 @@ static int rpmdbProvides(rpmts ts, depCa - return rc; - } - -+/* -+ * Temporary support for live-conversion of the filesystem hierarchy -+ * mailto: kay@redhat.com, harald@redhat.com -+ * https://fedoraproject.org/wiki/Features/UsrMove -+ * -+ * X-CheckUnifiedSystemdir: -+ * /bin, /sbin, /lib, /lib64 --> /usr -+ * -+ * X-CheckUnifiedBindir: -+ * /usr/sbin -> /usr/bin -+ * -+ * X-CheckMultiArchLibdir: -+ * /usr/lib64 /usr/lib/ (e.g. x86_64-linux-gnu) -+ * -+ * This code is not needed for new installations, it can be removed after -+ * updates from older systems are no longer supported: Fedora 19 / RHEL 8. -+ */ -+ -+static int CheckLink(const char *dir, const char *root) -+{ -+ char *d = NULL; -+ struct stat sbuf; -+ int rc = 0; -+ -+ if (!root) -+ root = "/"; -+ -+ rasprintf(&d, "%s%s", root, dir); -+ if (!d) { -+ rc = -1; -+ goto exit; -+ } -+ -+ /* directory or symlink does not exist, all is fine */ -+ if (lstat(d, &sbuf) < 0) { -+ rc = 1; -+ goto exit; -+ } -+ -+ /* if it is a symlink, all is fine */ -+ if (S_ISLNK(sbuf.st_mode)) -+ rc = 1; -+ -+exit: -+ free(d); -+ return rc; -+} -+ -+static int CheckFilesystemHierarchy(rpmds * dsp, const char *root) -+{ -+ static const char *dirs[] = { "bin", "sbin", "lib", "lib64" }; -+ int check; -+ int i; -+ rpmds ds; -+ rpmstrPool pool = rpmdsPool(*dsp); -+ int rc = 0; -+ -+ for (i = 0; i < sizeof(dirs) / sizeof(dirs[0]); i++) { -+ check = CheckLink(dirs[i], root); -+ if (check < 0) { -+ rc = -1; -+ goto exit; -+ } -+ -+ if (check == 0) -+ goto exit; -+ } -+ ds = rpmdsSinglePool(pool, RPMTAG_PROVIDENAME, -+ "rpmlib(X-CheckUnifiedSystemdir)", "1", -+ RPMSENSE_EQUAL); -+ rpmdsMerge(dsp, ds); -+ rpmdsFree(ds); -+ -+ check = CheckLink("usr/lib64", root); -+ if (check < 0) { -+ rc = -1; -+ goto exit; -+ } -+ if (check > 0) { -+ ds = rpmdsSinglePool(pool, RPMTAG_PROVIDENAME, -+ "rpmlib(X-CheckMultiArchLibdir)", "1", -+ RPMSENSE_EQUAL); -+ rpmdsMerge(dsp, ds); -+ rpmdsFree(ds); -+ } -+ -+ check = CheckLink("usr/sbin", root); -+ if (check < 0) { -+ rc = -1; -+ goto exit; -+ } -+ if (check > 0) { -+ ds = rpmdsSinglePool(pool, RPMTAG_PROVIDENAME, -+ "rpmlib(X-CheckUnifiedBindir)", "1", -+ RPMSENSE_EQUAL); -+ rpmdsMerge(dsp, ds); -+ rpmdsFree(ds); -+ } -+ -+exit: -+ return rc; -+} -+ - /** - * Check dep for an unsatisfied dependency. - * @param ts transaction set -@@ -612,8 +715,10 @@ retry: - * Check those dependencies now. - */ - if (dsflags & RPMSENSE_RPMLIB) { -- if (tsmem->rpmlib == NULL) -+ if (tsmem->rpmlib == NULL) { - rpmdsRpmlibPool(rpmtsPool(ts), &(tsmem->rpmlib), NULL); -+ CheckFilesystemHierarchy(&(tsmem->rpmlib), rpmtsRootDir(ts)); -+ } - - if (tsmem->rpmlib != NULL && rpmdsSearch(tsmem->rpmlib, dep) >= 0) { - rpmdsNotify(dep, "(rpmlib provides)", rc); diff --git a/src/sabnzbd/.AURINFO b/src/sabnzbd/.AURINFO deleted file mode 100644 index 6ccbf58..0000000 --- a/src/sabnzbd/.AURINFO +++ /dev/null @@ -1,43 +0,0 @@ -pkgbase = sabnzbd - pkgdesc = A web-interface based binary newsgrabber with NZB file support - pkgver = 0.7.20 - pkgrel = 1 - url = http://www.sabnzbd.org - install = sabnzbd.install - arch = any - license = GPL - depends = curl - depends = par2cmdline - depends = python2 - depends = python2-cheetah - depends = python2-yenc - depends = sqlite - depends = unrar - depends = unzip - optdepends = xdg-utils: registration of .nzb files - optdepends = python2-feedparser: rss support - optdepends = python2-pyopenssl: ssl support - optdepends = par2cmdline-tbb: par2 multi-threading - backup = etc/conf.d/sabnzbd - backup = opt/sabnzbd/sabnzbd.ini - source = http://downloads.sourceforge.net/sabnzbdplus/SABnzbd-0.7.20-src.tar.gz - source = sabnzbd - source = sabnzbd.desktop - source = addnzb.sh - source = nzb-2.png - source = sab2_64.png - source = x-nzb.xml - source = sabnzbd.service - source = sabnzbd.confd - md5sums = 7972b2cdad0a3431262611c271ce5747 - md5sums = 48d60a1c626503c7fef1bc5374390513 - md5sums = f9bd5485072714b11f8c30a28024dc4d - md5sums = 69b9bcbcf67ff3e7a4cdd9f26e001341 - md5sums = 2a49c07b1e3e6448eabe92644315f983 - md5sums = fdc878dd0f6f25617e627b04409abbbd - md5sums = 11fb2cd1451e3725b08bfc2bd045be54 - md5sums = 7da9222f3b86abfed590950f48dc2e77 - md5sums = 8fc2607a7961fc643ef4f6640166322a - -pkgname = sabnzbd - diff --git a/src/sabnzbd/PKGBUILD b/src/sabnzbd/PKGBUILD deleted file mode 100644 index 3624e15..0000000 --- a/src/sabnzbd/PKGBUILD +++ /dev/null @@ -1,47 +0,0 @@ -pkgname=sabnzbd -_pkgname=SABnzbd -pkgver=2.2.0 -pkgrel=1 -pkgdesc="A web-interface based binary newsgrabber with NZB file support" -url="http://www.sabnzbd.org" -arch=("any") -license=("GPL") -depends=("curl" "par2cmdline" - "python2" "python2-cheetah" "python2-sabyenc" - "sqlite" "unrar" "unzip") -optdepends=("xdg-utils: registration of .nzb files" "python2-feedparser: rss support" "python2-pyopenssl: ssl support" "par2cmdline-tbb: par2 multi-threading") -install="${pkgname}.install" -backup=("etc/conf.d/sabnzbd" "opt/${pkgname}/${pkgname}.ini") -source=("https://github.com/${pkgname}/${pkgname}/releases/download/${pkgver}/${_pkgname}-${pkgver}-src.tar.gz" - "${pkgname}" "${pkgname}.desktop" "addnzb.sh" "nzb.png" "sabnzbd.png" "x-nzb.xml" "${pkgname}.service" "${pkgname}.confd") -md5sums=('c90882baf329a9b5fb4ce64594015290' - '48d60a1c626503c7fef1bc5374390513' - '36e5f0f60f28f67102682f80e33c6d4b' - '69b9bcbcf67ff3e7a4cdd9f26e001341' - '46fa8020fcfaad1e06d370fa3b0ea09a' - 'b834ca5dfb63a5d06041c3174172ec09' - '11fb2cd1451e3725b08bfc2bd045be54' - 'da07971fa3790ea4824ed4ce611b38f3' - '8fc2607a7961fc643ef4f6640166322a') - -package() { - mkdir -p "${pkgdir}/opt/${pkgname}" - touch "${pkgdir}/opt/${pkgname}/${pkgname}.ini" - cp -r "${srcdir}/${_pkgname}-${pkgver}/"* "${pkgdir}/opt/${pkgname}" - - # Fix for issues with Python 3 - find "${pkgdir}/opt/${pkgname}" -type f -exec sed -i 's/python/python2/g' {} \; - find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} \; - find "${pkgdir}/opt/${pkgname}" -type f -exec chmod 644 {} \; - chmod 755 "${pkgdir}/opt/${pkgname}/${_pkgname}.py" - - install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" - install -Dm644 "${srcdir}/${pkgname}.confd" "${pkgdir}/etc/conf.d/${pkgname}" - install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" - install -Dm755 "${srcdir}/${pkgname}.desktop" \ - "${pkgdir}/usr/share/applications/${pkgname}.desktop" - install -Dm755 "${srcdir}/addnzb.sh" "${pkgdir}/opt/${pkgname}/addnzb.sh" - install -Dm644 "${srcdir}/nzb.png" "${pkgdir}/opt/${pkgname}/nzb.png" - install -Dm644 "${srcdir}/sabnzbd.png" "${pkgdir}/opt/${pkgname}/sabnzbd.png" - install -Dm770 "${srcdir}/x-nzb.xml" "${pkgdir}/opt/${pkgname}/x-nzb.xml" -} diff --git a/src/sabnzbd/addnzb.sh b/src/sabnzbd/addnzb.sh deleted file mode 100644 index e3b6051..0000000 --- a/src/sabnzbd/addnzb.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -. /etc/conf.d/sabnzbd -curl -s -F apikey="$API_KEY" -F mode="addfile" -F name=@"$1" $URL/sabnzbd/api &> /dev/null diff --git a/src/sabnzbd/nzb.png b/src/sabnzbd/nzb.png deleted file mode 100644 index f443c21..0000000 Binary files a/src/sabnzbd/nzb.png and /dev/null differ diff --git a/src/sabnzbd/sab2_64.png b/src/sabnzbd/sab2_64.png deleted file mode 100644 index 2c62900..0000000 Binary files a/src/sabnzbd/sab2_64.png and /dev/null differ diff --git a/src/sabnzbd/sabnzbd b/src/sabnzbd/sabnzbd deleted file mode 100644 index 0fa0d41..0000000 --- a/src/sabnzbd/sabnzbd +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -python2 /opt/sabnzbd/SABnzbd.py -f ${HOME}/.sabnzbd.ini "${@}" diff --git a/src/sabnzbd/sabnzbd.confd b/src/sabnzbd/sabnzbd.confd deleted file mode 100644 index 389676c..0000000 --- a/src/sabnzbd/sabnzbd.confd +++ /dev/null @@ -1,8 +0,0 @@ -# This file is used to make association of .nzb files with SABnzbd possible. -# If you do not want this feature, you do no have to fill in these settings. - -# The SABnzbd url. Make sure to add a username and password if required -URL="http://127.0.0.1:8080" - -# Put the API key from Config > General here -API_KEY="" diff --git a/src/sabnzbd/sabnzbd.desktop b/src/sabnzbd/sabnzbd.desktop deleted file mode 100755 index 4ce54a2..0000000 --- a/src/sabnzbd/sabnzbd.desktop +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env xdg-open -[Desktop Entry] -Type=Application -Version=1.0 -Name=SABnzbd+ -GenericName=Binary Newsreader -Icon=/opt/sabnzbd/sabnzbd.png -Exec=sh /opt/sabnzbd/addnzb.sh %u -Terminal=false -Categories=Network -MimeType=application/x-nzb diff --git a/src/sabnzbd/sabnzbd.install b/src/sabnzbd/sabnzbd.install deleted file mode 100644 index cf84a47..0000000 --- a/src/sabnzbd/sabnzbd.install +++ /dev/null @@ -1,69 +0,0 @@ -# Change these to modify the ownership of sabnzbd -# If you change this here, you also have to change -# the user and group in the systemd service file. -SABNZBD_USER="sabnzbd" -SABNZBD_GROUP="sabnzbd" - -SABNZBD_DIR="/opt/sabnzbd" # should not be changed - -## arg 1: the new package version -post_install() { - # add x-nzb mimetype - if [[ -f /usr/bin/xdg-mime ]]; then - xdg-mime install --mode system "${SABNZBD_DIR}/x-nzb.xml" - xdg-icon-resource install --context mimetypes --size 256 "${SABNZBD_DIR}/nzb.png" application-x-nzb - fi - - post_upgrade - - cat << "EOM" -==> If you want to associate .nzb-files with SABnzbd, run 'xdg-mime default sabnzbd.desktop applications/x-nzb' -EOM -} - -## arg 1: the new package version -## arg 2: the old package version -pre_upgrade() { - PID="$(pgrep -f SABnzbd.py)" - - if [ -n "${PID}" ];then - systemctl stop sabnzbd.service - fi -} - -## arg 1: the new package version -## arg 2: the old package version -post_upgrade() { - # if the group or user already exists, the request will be denied - # and all original settings will be retained - if [ "$SABNZBD_GROUP" == "sabnzbd" ]; then - groupadd -r sabnzbd &> /dev/null - fi - - if [ "$SABNZBD_USER" == "sabnzbd" ]; then - useradd -s /sbin/nologin -c "SABnzbd user" -d "${SABNZBD_DIR}" \ - -g sabnzbd -r sabnzbd &> /dev/null - fi - - chown -R "${SABNZBD_USER}:${SABNZBD_GROUP}" "${SABNZBD_DIR}" -} - -## arg 1: the old package version -pre_remove() { - pre_upgrade - - if [[ -f /usr/bin/xdg-mime ]]; then - xdg-mime uninstall --mode system "${SABNZBD_DIR}/x-nzb.xml" - xdg-icon-resource uninstall --context mimetypes --size 256 application-x-nzb - fi -} - -## arg 1: the old package version -post_remove() { - # only delete if user is sabnzbd - userdel sabnzbd &> /dev/null - groupdel sabnzbd &> /dev/null || /bin/true - echo "==> There may be some files left in ${SABNZBD_DIR}." -} - -# vim:set ts=2 sw=2 et: diff --git a/src/sabnzbd/sabnzbd.png b/src/sabnzbd/sabnzbd.png deleted file mode 100644 index 5770c0a..0000000 Binary files a/src/sabnzbd/sabnzbd.png and /dev/null differ diff --git a/src/sabnzbd/sabnzbd.service b/src/sabnzbd/sabnzbd.service deleted file mode 100644 index 6806b9c..0000000 --- a/src/sabnzbd/sabnzbd.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=SABnzbd binary newsreader -After=network.target - -[Service] -ExecStart=/opt/sabnzbd/SABnzbd.py -l0 -f /opt/sabnzbd/sabnzbd.ini -User=sabnzbd -Group=sabnzbd - -[Install] -WantedBy=multi-user.target diff --git a/src/sabnzbd/x-nzb.xml b/src/sabnzbd/x-nzb.xml deleted file mode 100644 index e77d284..0000000 --- a/src/sabnzbd/x-nzb.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - An XML-based file format for retrieving posts from NNTP (Usenet) servers - - - - -