pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

otrtool: Import otrtool-1.2.0 as wip/otrtool.



Module Name:	pkgsrc-wip
Committed By:	Dominik Muth <dominik.muth%gmx.de@localhost>
Pushed By:	dominik.muth
Date:		Wed Mar 2 11:17:09 2016 +0100
Changeset:	d980a8f0668b5056a40ccaceb33736057b8eea99

Modified Files:
	Makefile
Added Files:
	otrtool/DESCR
	otrtool/Makefile
	otrtool/PLIST
	otrtool/TODO
	otrtool/distinfo
	otrtool/patches/patch-Makefile

Log Message:
otrtool: Import otrtool-1.2.0 as wip/otrtool.

otrtool aims to provide an open source tool to deal with otrkey-files from
onlinetvrecoder.com. At the moment it is able to decrypt them, in the
future a download manager and/or EPG could be added.

Note: This is free software, but you will need an onlinetvrecorder.com
account to make use of it.

This package has been comfirmed working on NetBSD-7.0/amd64 and
Ubuntu-16.04-beta/amd64.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d980a8f0668b5056a40ccaceb33736057b8eea99

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                       |  1 +
 otrtool/DESCR                  |  6 +++++
 otrtool/Makefile               | 20 ++++++++++++++++
 otrtool/PLIST                  |  3 +++
 otrtool/TODO                   |  2 ++
 otrtool/distinfo               |  7 ++++++
 otrtool/patches/patch-Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 91 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 8366e2b..7e99277 100644
--- a/Makefile
+++ b/Makefile
@@ -2146,6 +2146,7 @@ SUBDIR+=	osmo
 SUBDIR+=	osmo-sdr-git
 SUBDIR+=	osmose
 SUBDIR+=	osxinfo
+SUBDIR+=	otrtool
 SUBDIR+=	ots
 SUBDIR+=	outguess
 SUBDIR+=	overgod
diff --git a/otrtool/DESCR b/otrtool/DESCR
new file mode 100644
index 0000000..84516b8
--- /dev/null
+++ b/otrtool/DESCR
@@ -0,0 +1,6 @@
+otrtool aims to provide an open source tool to deal with otrkey-files from
+onlinetvrecoder.com. At the moment it is able to decrypt them, in the
+future a download manager and/or EPG could be added.
+
+Note: This is free software, but you will need an onlinetvrecorder.com
+account to make use of it.
diff --git a/otrtool/Makefile b/otrtool/Makefile
new file mode 100644
index 0000000..a265896
--- /dev/null
+++ b/otrtool/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	otrtool-1.2.0
+CATEGORIES=	multimedia
+MASTER_SITES=	${MASTER_SITE_GITHUB:=otrtool/}
+
+COMMENT=	Decrypter for videos (otrkey) from onlinetvrecorder.com
+HOMEPAGE=	${MASTER_SITE_GITHUB:=otrtool/otrtool/}
+MAINTAINER=	dominik.muth%gmx.de@localhost
+LICENSE=	cc0-1.0-universal
+GITHUB_PROJECT=	otrtool
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+BUILD_MAKE_FLAGS+=	VERSION=${GITHUB_TAG}-pkgsrc
+
+.include "../../security/libmcrypt/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+
+# url2pkg-marker (please do not remove this line.)
+.include "../../mk/bsd.pkg.mk"
diff --git a/otrtool/PLIST b/otrtool/PLIST
new file mode 100644
index 0000000..dbbda31
--- /dev/null
+++ b/otrtool/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/otrtool
+man/man1/otrtool.1
diff --git a/otrtool/TODO b/otrtool/TODO
new file mode 100644
index 0000000..05a056b
--- /dev/null
+++ b/otrtool/TODO
@@ -0,0 +1,2 @@
+Check that this builds, runs, and works on systems other than NetBSD-7.0/amd64
+and Ubuntu-16.04-beta/amd64.
diff --git a/otrtool/distinfo b/otrtool/distinfo
new file mode 100644
index 0000000..41c6684
--- /dev/null
+++ b/otrtool/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (otrtool-1.2.0.tar.gz) = 11de1361a0fed00b86b3b7b70a1cf64ed8de7a08
+RMD160 (otrtool-1.2.0.tar.gz) = 50100982dc0fdd2b232bb9b2fd6bb30de7aa91fa
+SHA512 (otrtool-1.2.0.tar.gz) = 22c854427cce385c9eebb828944e5a52c0db29a9e187ada90b3c64f1891c7284027ae6a76b2d9f681ac6c214fd7327bd4f8397856722d3a2ce3fda0ddf91cb35
+Size (otrtool-1.2.0.tar.gz) = 20670 bytes
+SHA1 (patch-Makefile) = 43fec93290f0b1c98533f225d44b3dea912c951c
diff --git a/otrtool/patches/patch-Makefile b/otrtool/patches/patch-Makefile
new file mode 100644
index 0000000..252e3ce
--- /dev/null
+++ b/otrtool/patches/patch-Makefile
@@ -0,0 +1,52 @@
+$NetBSD$
+
+--- Makefile.orig	2016-03-01 02:38:52.000000000 +0000
++++ Makefile
+@@ -11,14 +11,13 @@
+ SHELL = /bin/sh
+ .SUFFIXES:
+ .SUFFIXES: .c .o
+-PREFIX = /usr/local
++PREFIX ?= /usr/local
+ 
+ DVERSION = v1.2.0
+-VERSION := $(shell git describe --tags --long --dirty 2>/dev/null || echo "$(DVERSION)")
++VERSION ?= $(shell git describe --tags --long --dirty 2>/dev/null || echo "$(DVERSION)")
+ 
+-CC = gcc
+-CFLAGS = -O3 -Wall -Wextra -g -DVERSION='"$(VERSION)"'
+-LDFLAGS = -lmcrypt -lcurl
++CFLAGS += -O3 -Wall -Wextra -g -DVERSION='"$(VERSION)"'
++LDFLAGS += -lmcrypt -lcurl
+ 
+ # large file support
+ CFLAGS += $(shell getconf LFS_CFLAGS)
+@@ -38,7 +37,7 @@ otrtool.1.gz:
+ 	gzip -c doc/otrtool.1 > otrtool.1.gz
+ 
+ $(MAIN): $(OBJS)
+-	$(CC) $(CFLAGS) -o $(MAIN) $(OBJS) $(LDFLAGS)
++	$(CC) $(CPPFLAGS) $(CFLAGS) -o $(MAIN) $(OBJS) $(LDFLAGS)
+ 	@echo Build successful
+ 
+ # this is a suffix replacement rule for building .o's from .c's
+@@ -46,14 +45,16 @@ $(MAIN): $(OBJS)
+ # the rule(a .c file) and $@: the name of the target of the rule (a .o file) 
+ # (see the gnu make manual section about automatic variables)
+ .c.o:
+-	$(CC) $(CFLAGS) -c $< -o $@
++	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
+ 
+ clean:
+ 	$(RM) $(OBJS) $(MAIN) $(MAIN).1.gz
+ 
+ install: $(MAIN) $(MAIN).1.gz
+-	install -m 0755 $(MAIN) $(PREFIX)/bin
+-	install -m 0644 $(MAIN).1.gz $(PREFIX)/share/man/man1
++	install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
++	install -m 0755 $(MAIN) $(DESTDIR)$(PREFIX)/bin/
++	install -m 0755 -d $(DESTDIR)$(PREFIX)/man/man1
++	install -m 0644 $(MAIN).1.gz $(DESTDIR)$(PREFIX)/man/man1/
+ 
+ depend: $(SRCS)
+ 	makedepend -w70 -Y $^


Home | Main Index | Thread Index | Old Index