2014-02-24 17:49:54 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2014 Sree Harsha Totakura <sreeharsha@totakura.in>
|
2017-12-26 03:48:57 +00:00
|
|
|
|
;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
|
2022-05-15 00:00:03 +00:00
|
|
|
|
;;; Copyright © 2016–2018, 2020–2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-07-08 17:39:25 +00:00
|
|
|
|
;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org>
|
2019-07-16 01:49:51 +00:00
|
|
|
|
;;; Copyright © 2019 Jens Mølgaard <jens@zete.tk>
|
2020-05-02 01:14:41 +00:00
|
|
|
|
;;; Copyright © 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
|
2021-01-06 07:20:19 +00:00
|
|
|
|
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
|
2014-02-24 17:49:54 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages upnp)
|
|
|
|
|
#:use-module (gnu packages)
|
2019-07-16 01:49:51 +00:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2021-01-06 07:34:29 +00:00
|
|
|
|
#:use-module (gnu packages compression)
|
2021-01-06 07:37:02 +00:00
|
|
|
|
#:use-module (gnu packages gettext)
|
2019-07-16 01:49:51 +00:00
|
|
|
|
#:use-module (gnu packages image)
|
|
|
|
|
#:use-module (gnu packages mp3)
|
2021-01-06 07:37:02 +00:00
|
|
|
|
#:use-module (gnu packages photo)
|
2020-05-02 01:14:41 +00:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2014-02-24 17:49:54 +00:00
|
|
|
|
#:use-module (gnu packages python)
|
2021-01-06 07:37:02 +00:00
|
|
|
|
#:use-module (gnu packages sqlite)
|
|
|
|
|
#:use-module (gnu packages video)
|
|
|
|
|
#:use-module (gnu packages xiph)
|
2014-02-24 17:49:54 +00:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2018-07-08 17:39:25 +00:00
|
|
|
|
#:use-module (guix utils)
|
2014-02-24 17:49:54 +00:00
|
|
|
|
#:use-module (guix download)
|
2018-07-08 17:39:25 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2021-01-06 07:22:26 +00:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2019-07-16 01:49:51 +00:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (ice-9 match))
|
2014-02-24 17:49:54 +00:00
|
|
|
|
|
|
|
|
|
(define-public miniupnpc
|
|
|
|
|
(package
|
|
|
|
|
(name "miniupnpc")
|
2020-01-16 16:28:43 +00:00
|
|
|
|
(version "2.1.20191224")
|
2014-02-24 17:49:54 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2017-01-11 20:05:46 +00:00
|
|
|
|
(uri (string-append "https://miniupnp.tuxfamily.org/files/"
|
2019-11-08 23:26:31 +00:00
|
|
|
|
"miniupnpc-" version ".tar.gz"))
|
2014-02-24 17:49:54 +00:00
|
|
|
|
(sha256
|
2020-01-16 16:28:43 +00:00
|
|
|
|
(base32 "1kv6dpj93gckvwvgzxl4vdqpwnicb0c8p0xw53m2gh5naiw44ys4"))))
|
2014-02-24 17:49:54 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python" ,python-2)))
|
|
|
|
|
(arguments
|
|
|
|
|
;; The build system does not use a configure script but depends on
|
|
|
|
|
;; `make'. Hence we should pass parameters to `make' instead and remove
|
|
|
|
|
;; the configure phase.
|
gnu: Replace hard-coded "CC=gcc" with CC-FOR-TARGET calls.
* gnu/packages/admin.scm (cbatticon)[arguments]<#:make-flags>: Use
CC-FOR-TARGET.
* gnu/packages/assembly.scm (dev86)[arguments]<#:make-flags>: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]<#:make-flags>: Likewise.
* gnu/packages/crypto.scm (signify, keyutils, ssss, libscrypt, enchive)
[arguments]<#:make-flags>: Likewise.
* gnu/packages/emacs-xyz.scm (emacs-emacsql, emacs-telega)[arguments]
<#:phases>: Likewise.
* gnu/packages/gnupg.scm (pgpdump)[arguments]<#:make-flags>: Likewise.
* gnu/packages/image-viewers.scm (feh, imv)[arguments]<#:make-flags>:
Likewise.
* gnu/packages/image.scm (libjxr, giflib, freeimage)[arguments]
<#:make-flags>: Likewise.
* gnu/packages/irc.scm (ii, sic)[arguments]<#:make-flags>: Likewise.
* gnu/packages/lua.scm (make-lua-expat, make-lua-ossl, make-lua-sec)
(make-lua-cqueues, make-lua-lgi, lua-resty-signal)[arguments]
<#:make-flags>: Likewise.
* gnu/packages/networking.scm (httping, pixiewps, sslh, nethogs, spiped)
(can-utils, hcxtools, batctl)[arguments]<#:make-flags>: Likewise.
* gnu/packages/pdf.scm (fbida)[arguments]<#:make-flags>: Likewise.
* gnu/packages/ssh.scm (endlessh)[arguments]<#:make-flags>: Likewise.
* gnu/packages/toys.scm (nyancat)[arguments]<#:make-flags>: Likewise.
* gnu/packages/upnp.scm (miniupnpc)[arguments]<#:make-flags>: Likewise.
* gnu/packages/xdisorg.scm (bemenu, xbanish, sxhkd, xcape, xssproxy)
(xrandr-invert-colors, hsetroot, xsettingsd)[arguments]<#:make-flags>:
Likewise.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2021-04-09 19:46:24 +00:00
|
|
|
|
`(#:make-flags
|
2014-02-24 17:49:54 +00:00
|
|
|
|
(list
|
2021-10-23 20:53:12 +00:00
|
|
|
|
(string-append "SH=" (search-input-file %build-inputs "/bin/sh"))
|
2014-02-24 17:49:54 +00:00
|
|
|
|
(string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
|
gnu: Replace hard-coded "CC=gcc" with CC-FOR-TARGET calls.
* gnu/packages/admin.scm (cbatticon)[arguments]<#:make-flags>: Use
CC-FOR-TARGET.
* gnu/packages/assembly.scm (dev86)[arguments]<#:make-flags>: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]<#:make-flags>: Likewise.
* gnu/packages/crypto.scm (signify, keyutils, ssss, libscrypt, enchive)
[arguments]<#:make-flags>: Likewise.
* gnu/packages/emacs-xyz.scm (emacs-emacsql, emacs-telega)[arguments]
<#:phases>: Likewise.
* gnu/packages/gnupg.scm (pgpdump)[arguments]<#:make-flags>: Likewise.
* gnu/packages/image-viewers.scm (feh, imv)[arguments]<#:make-flags>:
Likewise.
* gnu/packages/image.scm (libjxr, giflib, freeimage)[arguments]
<#:make-flags>: Likewise.
* gnu/packages/irc.scm (ii, sic)[arguments]<#:make-flags>: Likewise.
* gnu/packages/lua.scm (make-lua-expat, make-lua-ossl, make-lua-sec)
(make-lua-cqueues, make-lua-lgi, lua-resty-signal)[arguments]
<#:make-flags>: Likewise.
* gnu/packages/networking.scm (httping, pixiewps, sslh, nethogs, spiped)
(can-utils, hcxtools, batctl)[arguments]<#:make-flags>: Likewise.
* gnu/packages/pdf.scm (fbida)[arguments]<#:make-flags>: Likewise.
* gnu/packages/ssh.scm (endlessh)[arguments]<#:make-flags>: Likewise.
* gnu/packages/toys.scm (nyancat)[arguments]<#:make-flags>: Likewise.
* gnu/packages/upnp.scm (miniupnpc)[arguments]<#:make-flags>: Likewise.
* gnu/packages/xdisorg.scm (bemenu, xbanish, sxhkd, xcape, xssproxy)
(xrandr-invert-colors, hsetroot, xsettingsd)[arguments]<#:make-flags>:
Likewise.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2021-04-09 19:46:24 +00:00
|
|
|
|
,(string-append "CC=" (cc-for-target))
|
2015-04-14 08:00:40 +00:00
|
|
|
|
|
|
|
|
|
;; Allow executables to find libminiupnpc.so.
|
|
|
|
|
(string-append "LDFLAGS=-Wl,-rpath="
|
|
|
|
|
(assoc-ref %outputs "out") "/lib"))
|
2014-02-24 17:49:54 +00:00
|
|
|
|
#:phases
|
2016-11-24 17:47:09 +00:00
|
|
|
|
(modify-phases %standard-phases
|
2016-11-24 17:48:15 +00:00
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-before 'install 'qualify-paths
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(substitute* "external-ip.sh"
|
|
|
|
|
(("upnpc")
|
2017-12-12 16:47:34 +00:00
|
|
|
|
(string-append (assoc-ref outputs "out") "/bin/upnpc")))
|
|
|
|
|
#t)))))
|
2014-02-24 17:49:54 +00:00
|
|
|
|
(home-page "http://miniupnp.free.fr/")
|
2016-11-24 18:28:52 +00:00
|
|
|
|
(synopsis "UPnP protocol client library")
|
2014-02-24 17:49:54 +00:00
|
|
|
|
(description
|
2016-11-24 18:28:52 +00:00
|
|
|
|
"The MiniUPnPc client library facilitates access to the services provided
|
2017-04-21 12:46:49 +00:00
|
|
|
|
by any @dfn{Universal Plug and Play} (UPnP) @dfn{Internet Gateway Device} (IGD)
|
|
|
|
|
present on the network. In UPnP terminology, MiniUPnPc is a UPnP Control Point.
|
|
|
|
|
|
|
|
|
|
It is useful whenever an application needs to listen for incoming connections
|
|
|
|
|
while running behind a UPnP-enabled router or firewall. Such applications
|
|
|
|
|
include peer-to-peer applications, active-mode FTP clients, DCC file transfers
|
|
|
|
|
over IRC, instant messaging, network games, and most server software.")
|
2014-02-24 17:49:54 +00:00
|
|
|
|
(license
|
2021-01-06 07:22:26 +00:00
|
|
|
|
(license:x11-style "file://LICENSE" "See 'LICENSE' file in the distribution"))))
|
2017-12-26 03:48:57 +00:00
|
|
|
|
|
|
|
|
|
(define-public libupnp
|
|
|
|
|
(package
|
|
|
|
|
(name "libupnp")
|
2021-10-05 18:52:11 +00:00
|
|
|
|
(version "1.14.12")
|
2017-12-26 03:48:57 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2020-05-12 21:46:54 +00:00
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/pupnp/pupnp/releases/download"
|
|
|
|
|
"/release-" version "/libupnp-" version".tar.bz2"))
|
2017-12-26 03:48:57 +00:00
|
|
|
|
(sha256
|
2021-10-05 18:52:11 +00:00
|
|
|
|
(base32 "1b5mnn01cx840paggxrajg63gqzmw8mi4p14jhi9r4qyvam80709"))))
|
2020-05-12 21:46:54 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list pkg-config))
|
2017-12-26 03:48:57 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; The tests require a network device capable of multicasting which is
|
|
|
|
|
;; not available in the build environment. See
|
|
|
|
|
;; https://lists.gnu.org/archive/html/guix-devel/2015-01/msg00312.html.
|
|
|
|
|
`(#:tests? #f
|
2020-05-12 21:47:40 +00:00
|
|
|
|
#:configure-flags '("--disable-static")))
|
2017-12-26 03:48:57 +00:00
|
|
|
|
(home-page "http://pupnp.sourceforge.net")
|
|
|
|
|
(synopsis "Portable SDK for UPnP Devices")
|
|
|
|
|
(description
|
|
|
|
|
"The portable SDK for UPnP Devices (libupnp) provides developers with an
|
|
|
|
|
API and code for building control points, devices, and bridges that are
|
|
|
|
|
compliant with Version 1.0 of the Universal Plug and Play Device Architecture
|
|
|
|
|
Specification and support several operating systems like Linux, *BSD, Solaris
|
|
|
|
|
and others.")
|
2021-01-06 07:22:26 +00:00
|
|
|
|
(license license:bsd-3)))
|
2019-07-16 01:49:51 +00:00
|
|
|
|
|
|
|
|
|
(define-public readymedia
|
|
|
|
|
(package
|
|
|
|
|
(name "readymedia")
|
2022-05-15 00:00:03 +00:00
|
|
|
|
(version "1.3.1")
|
2019-07-16 01:49:51 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://git.code.sf.net/p/minidlna/git")
|
|
|
|
|
(commit (string-append
|
2021-01-06 07:20:19 +00:00
|
|
|
|
"v" (string-replace-substring version "." "_")))))
|
2019-07-16 01:49:51 +00:00
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2022-05-15 00:00:03 +00:00
|
|
|
|
(base32 "09fg3697wshg0j46mi3bp2i6ypiqm39vmzx52bci8r6j07yz7fwx"))))
|
2019-07-16 01:49:51 +00:00
|
|
|
|
(build-system gnu-build-system)
|
2021-01-06 07:34:29 +00:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags '("--with-os-name=Linux") ; uname -s
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-source
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "Makefile.am"
|
2022-05-15 00:00:03 +00:00
|
|
|
|
((".*LIBAVUTIL_LIBS.*") "")))))))
|
2022-05-15 00:00:01 +00:00
|
|
|
|
(native-inputs (list autoconf automake gettext-minimal))
|
2019-07-16 01:49:51 +00:00
|
|
|
|
(inputs
|
2022-05-15 00:00:01 +00:00
|
|
|
|
(list ffmpeg
|
|
|
|
|
flac
|
|
|
|
|
libexif
|
|
|
|
|
libid3tag
|
|
|
|
|
libjpeg-turbo
|
|
|
|
|
libvorbis
|
|
|
|
|
sqlite
|
|
|
|
|
zlib))
|
2019-07-16 01:49:51 +00:00
|
|
|
|
(home-page "https://sourceforge.net/projects/minidlna/")
|
|
|
|
|
(synopsis "DLNA/UPnP-AV media server")
|
|
|
|
|
(description "ReadyMedia (formerly known as MiniDLNA) is a simple media
|
|
|
|
|
server, which serves multimedia content to compatible clients on the network.
|
|
|
|
|
It aims to be fully compliant with DLNA and UPnP-AV standards.")
|
2021-01-06 07:22:26 +00:00
|
|
|
|
(license license:gpl2)))
|