diff --git a/network/library/miniupnpc/actions.py b/network/library/miniupnpc/actions.py index 3fa723c053..4c6a687d3b 100644 --- a/network/library/miniupnpc/actions.py +++ b/network/library/miniupnpc/actions.py @@ -2,21 +2,25 @@ # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. -# See the file http://www.gnu.org/licenses/gpl.txt +# See the file https://www.gnu.org/licenses/gpl-3.0.txt -from pisi.actionsapi import pisitools -from pisi.actionsapi import autotools +from pisi.actionsapi import pythonmodules +from pisi.actionsapi import cmaketools from pisi.actionsapi import shelltools from pisi.actionsapi import get -import os -#WorkDir = "miniupnpc-1.9" def setup(): - shelltools.system('cmake -L -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr .') + shelltools.makedirs("build") + shelltools.cd("build") + cmaketools.configure('-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -L', sourceDir = '..') def build(): - autotools.make() + pythonmodules.compile(pyVer = '3') + shelltools.cd("build") + cmaketools.make() def install(): - autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + pythonmodules.install(pyVer = '3') + shelltools.cd("build") + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) diff --git a/network/library/miniupnpc/files/fix_install_for_headers.patch b/network/library/miniupnpc/files/fix_install_for_headers.patch new file mode 100644 index 0000000000..c0fa691d2c --- /dev/null +++ b/network/library/miniupnpc/files/fix_install_for_headers.patch @@ -0,0 +1,40 @@ +From f82b0563a72e33800f5918ead68c41bcda1fd4c1 Mon Sep 17 00:00:00 2001 +From: heitbaum +Date: Fri, 1 Oct 2021 00:00:27 +1000 +Subject: [PATCH] miniupnpc/CMakeLists.txt: fix install for headers + +--- + miniupnpc/CMakeLists.txt | 20 ++++++++++---------- + 1 file changed, 10 insertions(+), 10 deletions(-) + +diff --git a/miniupnpc/CMakeLists.txt b/miniupnpc/CMakeLists.txt +index 0553eeb3..6b0904c0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -221,16 +221,16 @@ endif () + + if (NOT UPNPC_NO_INSTALL) + install (FILES +- miniupnpc.h +- miniwget.h +- upnpcommands.h +- igd_desc_parse.h +- upnpreplyparse.h +- upnperrors.h +- upnpdev.h +- miniupnpctypes.h +- portlistingparse.h +- miniupnpc_declspec.h ++ include/miniupnpc.h ++ include/miniwget.h ++ include/upnpcommands.h ++ include/igd_desc_parse.h ++ include/upnpreplyparse.h ++ include/upnperrors.h ++ include/upnpdev.h ++ include/miniupnpctypes.h ++ include/portlistingparse.h ++ include/miniupnpc_declspec.h + DESTINATION include/miniupnpc + ) + diff --git a/network/library/miniupnpc/files/fix_install_rules_to_account_for_BUILD_var.patch b/network/library/miniupnpc/files/fix_install_rules_to_account_for_BUILD_var.patch new file mode 100644 index 0000000000..9af078f25e --- /dev/null +++ b/network/library/miniupnpc/files/fix_install_rules_to_account_for_BUILD_var.patch @@ -0,0 +1,51 @@ +From ed1dc4bb5cdc4a53963f3eb01089289e30acc5a3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Wed, 29 Sep 2021 08:28:27 +0200 +Subject: [PATCH] Makefile: fix install rules to account for $(BUILD) + +Fix missing references to $(BUILD) in the install rules, as well +as incorrect shared library symlink name. Otherwise, the 'install' +phase fails either being unable to find files: + + make: *** No rule to make target 'miniupnpc.pc', needed by 'install'. Stop. + +or trying to create the symlink in the wrong subdirectory: + + ln: failed to create symbolic link '/tmp/z/usr/lib/build/libminiupnpc.so': No such file or directory +--- + miniupnpc/Makefile | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/miniupnpc/Makefile b/miniupnpc/Makefile +index 4563b283..11a17f95 100644 +--- a/Makefile ++++ b/Makefile +@@ -162,7 +162,7 @@ PKGCONFIGDIR = $(INSTALLDIRLIB)/pkgconfig + + FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES) + ifeq (, $(findstring amiga, $(OS))) +-FILESTOINSTALL += $(SHAREDLIBRARY) miniupnpc.pc ++FILESTOINSTALL += $(SHAREDLIBRARY) $(BUILD)/miniupnpc.pc + endif + + +@@ -251,15 +251,15 @@ install: updateversion $(FILESTOINSTALL) + $(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB) + ifeq (, $(findstring amiga, $(OS))) + $(INSTALL) -m 644 $(SHAREDLIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/$(SONAME) +- ln -fs $(SONAME) $(DESTDIR)$(INSTALLDIRLIB)/$(SHAREDLIBRARY) ++ ln -fs $(SONAME) $(DESTDIR)$(INSTALLDIRLIB)/$(notdir $(SHAREDLIBRARY)) + $(INSTALL) -d $(DESTDIR)$(PKGCONFIGDIR) +- $(INSTALL) -m 644 miniupnpc.pc $(DESTDIR)$(PKGCONFIGDIR) ++ $(INSTALL) -m 644 $(BUILD)/miniupnpc.pc $(DESTDIR)$(PKGCONFIGDIR) + endif + $(INSTALL) -d $(DESTDIR)$(INSTALLDIRBIN) + ifneq (, $(findstring amiga, $(OS))) +- $(INSTALL) -m 755 upnpc-static $(DESTDIR)$(INSTALLDIRBIN)/upnpc ++ $(INSTALL) -m 755 $(BUILD)/upnpc-static $(DESTDIR)$(INSTALLDIRBIN)/upnpc + else +- $(INSTALL) -m 755 upnpc-shared $(DESTDIR)$(INSTALLDIRBIN)/upnpc ++ $(INSTALL) -m 755 $(BUILD)/upnpc-shared $(DESTDIR)$(INSTALLDIRBIN)/upnpc + endif + $(INSTALL) -m 755 external-ip.sh $(DESTDIR)$(INSTALLDIRBIN)/external-ip + ifeq (, $(findstring amiga, $(OS))) diff --git a/network/library/miniupnpc/pspec.xml b/network/library/miniupnpc/pspec.xml index c4669e15cb..b851952230 100644 --- a/network/library/miniupnpc/pspec.xml +++ b/network/library/miniupnpc/pspec.xml @@ -11,24 +11,39 @@ Copyright (c) 2005-2011, Thomas BERNARD.All rights reserved. library - miniupnpc is a UPnP Control Point. - miniupnpc, the client library, enabling applications to access the services provided by an UPnP "Internet Gateway Device" present on the network. In UPnP terminology,miniupnpc is a UPnP Control Point. - http://miniupnp.free.fr/files/download.php?file=miniupnpc-2.1.20191224.tar.gz + miniupnpc is a UPnP Control Point. + miniupnpc, the client library, enabling applications to access the services provided by an UPnP "Internet Gateway Device" present on the network. In UPnP terminology,miniupnpc is a UPnP Control Point. + http://miniupnp.free.fr/files/miniupnpc-2.2.3.tar.gz cmake + + fix_install_for_headers.patch + fix_install_rules_to_account_for_BUILD_var.patch + miniupnpc - + /usr/lib + /usr/share/doc - + + + python3-miniupnpc + + miniupnpc + + + /usr/lib/python3.8 + + + miniupnpc-devel @@ -37,10 +52,18 @@ /usr/include/miniupnpc /usr/lib/pkgconfig + /usr/lib/cmake/miniupnpc + + 2021-10-14 + 2.2.3 + Version bump + Kamil Atlı + suvari@pisilinux.org + 2020-06-04 2.1.20191224 diff --git a/network/library/miniupnpc/translations.xml b/network/library/miniupnpc/translations.xml index 6f27922dcf..d14f5b65a0 100644 --- a/network/library/miniupnpc/translations.xml +++ b/network/library/miniupnpc/translations.xml @@ -3,9 +3,8 @@ miniupnpc bir uPnP istemci kütüphanesi - bir uPnP istemci kitaplığı;uygulamaların ağdaki mevcut bir UPnP "internet ağgeçidi aygıtı" - tarafından sağlanan servislere erişimine olanak verir. - + bir uPnP istemci kitaplığı;uygulamaların ağdaki mevcut bir UPnP "internet ağgeçidi aygıtı" tarafından sağlanan servislere erişimine olanak verir. + miniupnpc diff --git a/network/p2p/transmission/actions.py b/network/p2p/transmission/actions.py new file mode 100644 index 0000000000..40e77aa250 --- /dev/null +++ b/network/p2p/transmission/actions.py @@ -0,0 +1,58 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get +from pisi.actionsapi import qt5 + +j = ''.join([ + ' --enable-cli', + ' --enable-utp', + ' --enable-lightweight', + ' --enable-daemon', + ' --disable-static', + ' --disable-mac', + ' --with-gtk', + ' --with-crypto=openssl', + ' --without-systemd ' + ]) + +def setup(): + autotools.configure(j) + + # transmission with qt gui configure. + shelltools.cd("qt") + qt5.configure() + +def build(): + autotools.make() + + # transmission with qt gui make. + shelltools.cd("qt") + qt5.make() + qt5.make("translations") + +def install(): + # qt + qt5.install("-C qt INSTALL_ROOT=%s/usr" % get.installDIR()) + pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "qt/README.txt", "README-QT") + pisitools.insinto("%s/applications" % get.dataDIR(), "qt/transmission-qt.desktop") + + # gtk + autotools.rawInstall("-C gtk DESTDIR=%s" % get.installDIR()) + autotools.rawInstall("-C po DESTDIR=%s" % get.installDIR()) + + # cli, web, deamon + for _dir in ["cli", "web", "utils"]: + autotools.rawInstall("-C %s DESTDIR=%s" % (_dir, get.installDIR())) + + # For daemon config files. + pisitools.dodir("/etc/transmission-daemon") + + pisitools.dodoc("AUTHORS", "COPYING", "NEWS.md", "README.md") + diff --git a/network/p2p/transmission/pspec.xml b/network/p2p/transmission/pspec.xml new file mode 100644 index 0000000000..df4828d7df --- /dev/null +++ b/network/p2p/transmission/pspec.xml @@ -0,0 +1,117 @@ + + + + + transmission + https://transmissionbt.com/ + + PisiLinux Community + admins@pisilinux.org + + MIT + GPL-2 + service + app:gui + app:console + network.p2p + A fast, easy, and free BitTorrent client. + Transmission is a free, lightweight Bittorrent client. It features a simple, intuitive interface on top of an efficient backend. This package provides only daemon, web interface and command line client. If you want use Transmission with graphical interface, you should install transmission-gtk or transmission-qt. + + https://github.com/transmission/transmission-releases/raw/master/transmission-3.00.tar.xz + + + intltool + curl-devel + gtk3-devel + qt5-linguist + openssl-devel + qt5-base-devel + xfsprogs-devel + libevent-devel + libnotify-devel + miniupnpc-devel + + + + + + + + transmission-cli + app:console + Transmission's cli tools, web interface and daemon. + + zlib + curl + openssl + libevent + miniupnpc + + + /usr/bin + /etc + /usr/share + /usr/share/man + /usr/share/doc + + + + + transmission-gtk + app:gui + Transmission's GTK+ interface (default). + + transmission-cli + zlib + curl + gtk3 + glib2 + pango + openssl + libevent + miniupnpc + libnotify + gdk-pixbuf + + + /usr/bin/transmission-gtk + /usr/share/appdata/transmission-gtk.xml + /usr/share/applications/transmission-gtk.desktop + /usr/share/locale + /usr/share/man/man1/transmission-gtk.1 + + + + + transmission-qt + app:gui + Transmission's Qt interface. + + transmission-cli + zlib + curl + libgcc + openssl + libevent + qt5-base + miniupnpc + + + /usr/bin/transmission-qt + /usr/share/applications/transmission-qt.desktop + /usr/share/man/man1/transmission-qt.1 + /usr/share/doc/transmission/README-QT + + + + + + 2021-10-14 + 3.00 + First build. + fury + uglyside@yandex.ru + + + + diff --git a/network/p2p/transmission/translations.xml b/network/p2p/transmission/translations.xml new file mode 100644 index 0000000000..a6fa79334c --- /dev/null +++ b/network/p2p/transmission/translations.xml @@ -0,0 +1,23 @@ + + + + transmission + Hızlı, basit ve özgür BitTorrent istemcisi + Transmission özgür ve hafif BitTorrent istemcisidir. İki değişik kitaplıkla yazılmış basit ve kullanışlı arayüz istemcisi vardır. Qt ile yazılmış arayüz paketinin adı transmission-qt, GTK+ ile yazılmış olanı ise transmission-gtk'dir. Bu pakette sadece servis, komut satırı istemcisi ve Web arayüzü bulunmaktadır. + + + + transmission-cli + Transmission'un öntanımlı CLI, web ve sunucu bileşenleri + + + + transmission-gtk + Transmission'un öntanımlı GTK+ arayüz istemcisi + + + + transmission-qt + Transmission'un Qt arayüz istemcisi + +