From eddde2cf28c7d85274e351778dc417e13eaefefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:27:56 +0200 Subject: [PATCH 01/12] New package: perl-Data-Perl-0.002011 --- srcpkgs/perl-Data-Perl/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/perl-Data-Perl/template diff --git a/srcpkgs/perl-Data-Perl/template b/srcpkgs/perl-Data-Perl/template new file mode 100644 index 00000000000000..1b213d2e29b58b --- /dev/null +++ b/srcpkgs/perl-Data-Perl/template @@ -0,0 +1,16 @@ +# Template file for 'perl-Data-Perl' +pkgname=perl-Data-Perl +version=0.002011 +revision=1 +wrksrc="${pkgname/perl-/}-$version" +build_style=perl-module +hostmakedepends="perl perl-strictures perl-List-MoreUtils perl-Class-Method-Modifiers perl-Role-Tiny perl-Module-Runtime" +makedepends="${hostmakedepends}" +depends="${makedepends}" +checkdepends="perl-Test-Deep perl-Test-Output perl-Test-Fatal" +short_desc="Base classes wrapping fundamental Perl data types" +maintainer="Jan Christian Grünhage " +license="Artistic-1.0-Perl, GPL-1.0-or-later" +homepage="https://metacpan.org/release/Data-Perl" +distfiles="${CPAN_SITE}/Data/${pkgname/perl-/}-${version}.tar.gz" +checksum=8d34dbe314cfa2d99bd9aae546bbde94c38bb05b74b07c89bde1673a6f6c55f4 From b35864250e26c529e79343d874a46f240ccd045d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:28:16 +0200 Subject: [PATCH 02/12] New package: perl-Type-Tiny-1.014000 --- srcpkgs/perl-Type-Tiny/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/perl-Type-Tiny/template diff --git a/srcpkgs/perl-Type-Tiny/template b/srcpkgs/perl-Type-Tiny/template new file mode 100644 index 00000000000000..8e63f9491a1033 --- /dev/null +++ b/srcpkgs/perl-Type-Tiny/template @@ -0,0 +1,15 @@ +# Template file for 'perl-Type-Tiny' +pkgname=perl-Type-Tiny +version=1.014000 +revision=1 +wrksrc="${pkgname/perl-/}-${version}" +build_style=perl-module +hostmakedepends="perl perl-Exporter-Tiny" +makedepends="${hostmakedepends}" +depends="${makedepends}" +short_desc="Perl module for type constraints" +maintainer="Jan Christian Grünhage " +license="Artistic-1.0-Perl, GPL-1.0-or-later" +homepage="https://metacpan.org/release/Type-Tiny" +distfiles="https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/${pkgname/perl-/}-${version}.tar.gz" +checksum=ae3b784c7b86386f81f0a5a475c02e7b1f1b3e357ceb07d9f5c62761378b3086 From 32cdeee314e10765e17c92176dedf38fda9adc86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Tue, 12 Jul 2022 15:02:29 +0200 Subject: [PATCH 03/12] New package: perl-Role-Hooks-0.008 --- srcpkgs/perl-Role-Hooks/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/perl-Role-Hooks/template diff --git a/srcpkgs/perl-Role-Hooks/template b/srcpkgs/perl-Role-Hooks/template new file mode 100644 index 00000000000000..753eff1fa78e9a --- /dev/null +++ b/srcpkgs/perl-Role-Hooks/template @@ -0,0 +1,16 @@ +# Template file for 'perl-Role-Hooks' +pkgname=perl-Role-Hooks +version=0.008 +revision=1 +wrksrc="${pkgname/perl-/}-${version}" +build_style=perl-module +hostmakedepends="perl perl-Class-Method-Modifiers" +makedepends="${hostmakedepends}" +depends="${makedepends}" +checkdepends="perl-Test-Requires" +short_desc="Perl module for role callbacks" +maintainer="Jan Christian Grünhage " +license="GPL-3.0-or-later" +homepage="https://metacpan.org/pod/Role::Hooks" +distfiles="${CPAN_SITE}/Devel/TOBYINK/${pkgname/perl-/}-${version}.tar.gz" +checksum=28d66ea0a8dc306b76da83ff0879493d808f73185bcf9c4ed372f3946fb543ec From 54f6a004debb42e9d8b1cf86be7b4bee2b85c126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:28:50 +0200 Subject: [PATCH 04/12] New package: perl-Sub-HandlesVia-0.031 --- srcpkgs/perl-Sub-HandlesVia/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/perl-Sub-HandlesVia/template diff --git a/srcpkgs/perl-Sub-HandlesVia/template b/srcpkgs/perl-Sub-HandlesVia/template new file mode 100644 index 00000000000000..616d5bba4c97a0 --- /dev/null +++ b/srcpkgs/perl-Sub-HandlesVia/template @@ -0,0 +1,16 @@ +# Template file for 'perl-Sub-HandlesVia' +pkgname=perl-Sub-HandlesVia +version=0.031 +revision=1 +wrksrc="${pkgname/perl-/}-${version}" +build_style=perl-module +hostmakedepends="perl perl-Type-Tiny perl-Exporter-Tiny perl-Class-Tiny perl-Class-Method-Modifiers" +makedepends="${hostmakedepends}" +depends="${makedepends}" +checkdepends="perl-Test-Requires perl-Test-Fatal perl-Moo perl-Role-Hooks" +short_desc="Sub::HandlesVia - alternative handles_via implementation" +maintainer="Jan Christian Grünhage " +license="Artistic-1.0-Perl, GPL-1.0-or-later" +homepage="https://metacpan.org/release/Sub-HandlesVia" +distfiles="${CPAN_SITE}/Sub/${pkgname/perl-/}-${version}.tar.gz" +checksum=53824b58ba392e0ba04d39f119f6f03132f9fb22aa7c0460f29378e287d0f689 From 855675506b5b4773efbb06b1f7bce1416bdeb4f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:29:06 +0200 Subject: [PATCH 05/12] New package: perl-MooX-late-0.100 --- srcpkgs/perl-MooX-late/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/perl-MooX-late/template diff --git a/srcpkgs/perl-MooX-late/template b/srcpkgs/perl-MooX-late/template new file mode 100644 index 00000000000000..c4729bee608568 --- /dev/null +++ b/srcpkgs/perl-MooX-late/template @@ -0,0 +1,16 @@ +# Template file for 'perl-MooX-late' +pkgname=perl-MooX-late +version=0.100 +revision=1 +wrksrc="${pkgname/perl-/}-${version}" +build_style=perl-module +hostmakedepends="perl" +makedepends="${hostmakedepends} perl-Moo perl-Sub-HandlesVia perl-Type-Tiny" +depends="${makedepends}" +checkdepends="perl-Test-Fatal perl-Test-Requires" +short_desc="Easily translate Moose code to Moo" +maintainer="Jan Christian Grünhage " +license="Artistic-1.0-Perl, GPL-1.0-or-later" +homepage="https://metacpan.org/release/MooX-late" +distfiles="${CPAN_SITE}/MooX/${pkgname/perl-/}-${version}.tar.gz" +checksum=2ae5b1e3da5abc0e4006278ecbcfa8fa7c224ea5529a6a688acbb229c09e6a5f From 91e3fed3624863ab52870b44bbd16549c86d30bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Tue, 12 Jul 2022 15:05:58 +0200 Subject: [PATCH 06/12] New package: perl-MooX-HandlesVia-0.001009 --- srcpkgs/perl-MooX-HandlesVia/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/perl-MooX-HandlesVia/template diff --git a/srcpkgs/perl-MooX-HandlesVia/template b/srcpkgs/perl-MooX-HandlesVia/template new file mode 100644 index 00000000000000..a622d1f841be04 --- /dev/null +++ b/srcpkgs/perl-MooX-HandlesVia/template @@ -0,0 +1,16 @@ +# Template file for 'perl-MooX-HandlesVia' +pkgname=perl-MooX-HandlesVia +version=0.001009 +revision=1 +wrksrc="${pkgname/perl-/}-${version}" +build_style=perl-module +hostmakedepends="perl" +makedepends="${hostmakedepends} perl-Module-Runtime perl-Data-Perl perl-Moo perl-Class-Method-Modifiers perl-Role-Tiny perl-MooX-Types-MooseLike" +depends="${makedepends}" +checkdepends="perl-Test-Fatal perl-Test-Exception" +short_desc="NativeTrait-like behavior for Moo" +maintainer="Jan Christian Grünhage " +license="Artistic-1.0-Perl, GPL-1.0-or-later" +homepage="https://metacpan.org/release/MooX-HandlesVia" +distfiles="${CPAN_SITE}/MooX/${pkgname/perl-/}-${version}.tar.gz" +checksum=716353e38894ecb7e8e4c17bc95483db5f59002b03541b54a72c27f2a8f36c12 From b4e699939a4305969e5c026ade241446867ed3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:29:45 +0200 Subject: [PATCH 07/12] New package: perl-GnuPG-Interface-1.02 --- .../patches/0001-disables-version-check.patch | 90 +++++++++++++++++++ .../0002-Hardcode-path-to-usr-bin-gpg.patch | 38 ++++++++ srcpkgs/perl-GnuPG-Interface/template | 15 ++++ 3 files changed, 143 insertions(+) create mode 100644 srcpkgs/perl-GnuPG-Interface/patches/0001-disables-version-check.patch create mode 100644 srcpkgs/perl-GnuPG-Interface/patches/0002-Hardcode-path-to-usr-bin-gpg.patch create mode 100644 srcpkgs/perl-GnuPG-Interface/template diff --git a/srcpkgs/perl-GnuPG-Interface/patches/0001-disables-version-check.patch b/srcpkgs/perl-GnuPG-Interface/patches/0001-disables-version-check.patch new file mode 100644 index 00000000000000..2807cf114e696b --- /dev/null +++ b/srcpkgs/perl-GnuPG-Interface/patches/0001-disables-version-check.patch @@ -0,0 +1,90 @@ +From fe898b9211fd0a6d273c438c21755e39b9b221b3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= + +Date: Wed, 15 Jun 2022 13:05:40 +0200 +Subject: [PATCH 1/2] disables version check + +Void ships GnuPG in a new enough version anyway, so this check is not +necessary. The reason to disable the check is that it's broken rn: + +``` +error determining fileno for STDIN: Illegal seek at (eval 270) line 55. +Use of uninitialized value $line in pattern match (m//) at /usr/share/perl5/vendor_perl/GnuPG/Interface.pm line 827. +Use of uninitialized value $a in split at /usr/share/perl5/vendor_perl/GnuPG/Interface.pm line 841. +Use of uninitialized value $a in split at /usr/share/perl5/vendor_perl/GnuPG/Interface.pm line 841. +GnuPG Version 1.4 or 2.2+ required at (eval 270) line 55. +``` +--- + lib/GnuPG/Interface.pm | 18 ++---------------- + t/version_updates.t | 30 ------------------------------ + 2 files changed, 2 insertions(+), 46 deletions(-) + delete mode 100644 t/version_updates.t + +diff --git a/lib/GnuPG/Interface.pm b/lib/GnuPG/Interface.pm +index 905ae30..7fd2321 100644 +--- a/lib/GnuPG/Interface.pm ++++ b/lib/GnuPG/Interface.pm +@@ -818,22 +818,8 @@ sub search_keys( $% ) { + } + + sub _version { +- my ( $self ) = @_; +- +- my $out = IO::Handle->new; +- my $handles = GnuPG::Handles->new( stdout => $out ); +- my $pid = $self->wrap_call( commands => [ '--no-options', '--version' ], handles => $handles ); +- my $line = $out->getline; +- $line =~ /(\d+\.\d+\.\d+)/; +- +- my $version = $1; +- unless ($self->cmp_version($version, '2.2') >= 0 or +- ($self->cmp_version($version, '1.4') >= 0 and $self->cmp_version($version, '1.5') < 0 )) { +- croak "GnuPG Version 1.4 or 2.2+ required"; +- } +- waitpid $pid, 0; +- +- return $version; ++ # version detection is broken, hardcoding that we're on 2.2+ ++ return '2.3.7'; + } + + sub cmp_version($$) { +diff --git a/t/version_updates.t b/t/version_updates.t +deleted file mode 100644 +index 758ee7b..0000000 +--- a/t/version_updates.t ++++ /dev/null +@@ -1,30 +0,0 @@ +-#!/usr/bin/perl -w +- +-use strict; +- +-use lib './t'; +-use MyTest; +-use MyTestSpecific; +- +-TEST +-{ +- my $gpg = GnuPG::Interface->new(call => './test/fake-gpg-v1'); +- return ($gpg->version() eq '1.4.23'); +-}; +- +- +-TEST +-{ +- my $gpg = GnuPG::Interface->new(call => './test/fake-gpg-v2'); +- return ($gpg->version() eq '2.2.12'); +-}; +- +-TEST +-{ +- my $gpg = GnuPG::Interface->new(call => './test/fake-gpg-v1'); +- my $v1 = $gpg->version(); +- $gpg->call('./test/fake-gpg-v2'); +- my $v2 = $gpg->version(); +- +- return ($v1 eq '1.4.23' && $v2 eq '2.2.12'); +-} +-- +2.36.1 + diff --git a/srcpkgs/perl-GnuPG-Interface/patches/0002-Hardcode-path-to-usr-bin-gpg.patch b/srcpkgs/perl-GnuPG-Interface/patches/0002-Hardcode-path-to-usr-bin-gpg.patch new file mode 100644 index 00000000000000..6052103f5468bd --- /dev/null +++ b/srcpkgs/perl-GnuPG-Interface/patches/0002-Hardcode-path-to-usr-bin-gpg.patch @@ -0,0 +1,38 @@ +From 4185798921211925d38e9ea2cd0f28f3eb32ddca Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= + +Date: Wed, 15 Jun 2022 13:10:01 +0200 +Subject: [PATCH 2/2] Hardcode path to /usr/bin/gpg + +--- + lib/GnuPG/Interface.pm | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +diff --git a/lib/GnuPG/Interface.pm b/lib/GnuPG/Interface.pm +index 7fd2321..ed2f49e 100644 +--- a/lib/GnuPG/Interface.pm ++++ b/lib/GnuPG/Interface.pm +@@ -76,7 +76,7 @@ sub gnupg_call { shift->call(@_); } + + sub BUILD { + my ( $self, $args ) = @_; +- $self->hash_init( call => 'gpg', %$args ); ++ $self->hash_init( call => '/usr/bin/gpg', %$args ); + } + + struct( +@@ -1183,9 +1183,8 @@ keys to list in a key-listing. + + =item call + +-This defines the call made to invoke GnuPG. Defaults to 'gpg'; this +-should be changed if 'gpg' is not in your path, or there is a different +-name for the binary on your system. ++This defines the call made to invoke GnuPG. Defaults to '/usr/bin/gpg'; this ++should be changed if there is a different name for the binary on your system. + + =item passphrase + +-- +2.36.1 + diff --git a/srcpkgs/perl-GnuPG-Interface/template b/srcpkgs/perl-GnuPG-Interface/template new file mode 100644 index 00000000000000..20756374d9570d --- /dev/null +++ b/srcpkgs/perl-GnuPG-Interface/template @@ -0,0 +1,15 @@ +# Template file for 'perl-GnuPG-Interface' +pkgname=perl-GnuPG-Interface +version=1.02 +revision=1 +wrksrc="${pkgname/perl-/}-$version" +build_style=perl-module +hostmakedepends="perl which gnupg" +makedepends="${hostmakedepends} perl-Moo perl-MooX-HandlesVia perl-MooX-late" +depends="${makedepends}" +short_desc="Perl interface GnuPG" +maintainer="Jan Christian Grünhage " +license="Artistic-1.0-Perl, GPL-1.0-or-later" +homepage="https://metacpan.org/release/GnuPG-Interface" +distfiles="${CPAN_SITE}/GnuPG/${pkgname/perl-/}-${version}.tar.gz" +checksum=c27a48c3d48e1a9205e362eeea66d46b032bd84637991fdf0b13828bcafdd3e6 From c797c079056e40d0e1f1cc3a6da7a168d763b254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:30:02 +0200 Subject: [PATCH 08/12] New package: perl-Net-IDN-Encode-2.500 --- srcpkgs/perl-Net-IDN-Encode/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/perl-Net-IDN-Encode/template diff --git a/srcpkgs/perl-Net-IDN-Encode/template b/srcpkgs/perl-Net-IDN-Encode/template new file mode 100644 index 00000000000000..a4022ba73d2662 --- /dev/null +++ b/srcpkgs/perl-Net-IDN-Encode/template @@ -0,0 +1,16 @@ +# Template file for 'perl-Net-IDN-Encode' +pkgname=perl-Net-IDN-Encode +version=2.500 +revision=1 +wrksrc="${pkgname/perl-/}-${version}" +build_style=perl-module +hostmakedepends="perl" +makedepends="${hostmakedepends}" +depends="${makedepends}" +checkdepends="perl-Test-NoWarnings" +short_desc="Internationalizing Domain Names in Applications (IDNA) for Perl" +maintainer="Jan Christian Grünhage " +license="Artistic-1.0-Perl, GPL-1.0-or-later" +homepage="https://metacpan.org/release/Net-IDN-Encode" +distfiles="${CPAN_SITE}/Net/${pkgname/perl-/}-${version}.tar.gz" +checksum=55453633e3ff24ce325b34bc2c8157b9859962a31ab5cf28bf7ccc1c9b3a3eaa From 59fd3c33b7963dae93ed042142b8254cb5d52de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:30:19 +0200 Subject: [PATCH 09/12] New package: perl-Class-MethodMaker-2.24 --- srcpkgs/perl-Class-MethodMaker/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/perl-Class-MethodMaker/template diff --git a/srcpkgs/perl-Class-MethodMaker/template b/srcpkgs/perl-Class-MethodMaker/template new file mode 100644 index 00000000000000..71d9e06d8ba9b3 --- /dev/null +++ b/srcpkgs/perl-Class-MethodMaker/template @@ -0,0 +1,15 @@ +# Template file for 'perl-Class-MethodMaker' +pkgname=perl-Class-MethodMaker +version=2.24 +revision=1 +wrksrc="${pkgname/perl-/}-${version}" +build_style=perl-module +hostmakedepends="perl" +makedepends="${hostmakedepends}" +depends="${makedepends}" +short_desc="Easy building of Perl Classes" +maintainer="Jan Christian Grünhage " +license="Artistic-1.0-Perl, GPL-1.0-or-later" +homepage="https://metacpan.org/release/Class-MethodMaker" +distfiles="${CPAN_SITE}/Class/${pkgname/perl-/}-${version}.tar.gz" +checksum=5eef58ccb27ebd01bcde5b14bcc553b5347a0699e5c3e921c7780c3526890328 From 7ec53398b8bac2eb035ec67d934dbb8e19d6eccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:30:32 +0200 Subject: [PATCH 10/12] New package: perl-MooX-Types-MooseLike-0.29 --- srcpkgs/perl-MooX-Types-MooseLike/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/perl-MooX-Types-MooseLike/template diff --git a/srcpkgs/perl-MooX-Types-MooseLike/template b/srcpkgs/perl-MooX-Types-MooseLike/template new file mode 100644 index 00000000000000..dc6441ed9142ca --- /dev/null +++ b/srcpkgs/perl-MooX-Types-MooseLike/template @@ -0,0 +1,16 @@ +# Template file for 'perl-MooX-Types-MooseLike' +pkgname=perl-MooX-Types-MooseLike +version=0.29 +revision=1 +wrksrc="${pkgname/perl-/}-${version}" +build_style=perl-module +hostmakedepends="perl" +makedepends="${hostmakedepends} perl-Module-Runtime perl-Moo" +depends="${makedepends}" +checkdepends="perl-Test-Fatal perl-Test-Exception" +short_desc="Moosish types and a type builder" +maintainer="Jan Christian Grünhage " +license="Artistic-1.0-Perl, GPL-1.0-or-later" +homepage="https://metacpan.org/release/MooX-Types-MooseLike" +distfiles="${CPAN_SITE}/MooX/${pkgname/perl-/}-${version}.tar.gz" +checksum=1d3780aa9bea430afbe65aa8c76e718f1045ce788aadda4116f59d3b7a7ad2b4 From 03f54fd08bb12dcdae2d08b681e3b8276188b965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:30:43 +0200 Subject: [PATCH 11/12] New package: qprint-1.1 --- srcpkgs/qprint/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/qprint/template diff --git a/srcpkgs/qprint/template b/srcpkgs/qprint/template new file mode 100644 index 00000000000000..a09afbc36cbaac --- /dev/null +++ b/srcpkgs/qprint/template @@ -0,0 +1,20 @@ +# Template file for 'qprint' +pkgname=qprint +version=1.1 +revision=1 +build_style=gnu-configure +short_desc="Encode and decode Quoted-Printable files" +maintainer="Jan Christian Grünhage " +license="Public Domain" +homepage="https://www.fourmilab.ch/webtools/qprint/" +distfiles="https://www.fourmilab.ch/webtools/qprint/qprint-${version}.tar.gz" +checksum=ffa9ca1d51c871fb3b56a4bf0165418348cf080f01ff7e59cd04511b9665019c + +pre_install() { + mkdir -p "${DESTDIR}/usr/bin" + mkdir -p "${DESTDIR}/usr/share/man/man1" +} + +post_install() { + vlicense COPYING +} From c8df88b6ca32705de145a3874223a6f114ff6813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:30:47 +0200 Subject: [PATCH 12/12] New package: signing-party-2.11 --- srcpkgs/signing-party/patches/makefiles.patch | 232 ++++++++++++++++++ srcpkgs/signing-party/template | 27 ++ 2 files changed, 259 insertions(+) create mode 100644 srcpkgs/signing-party/patches/makefiles.patch create mode 100644 srcpkgs/signing-party/template diff --git a/srcpkgs/signing-party/patches/makefiles.patch b/srcpkgs/signing-party/patches/makefiles.patch new file mode 100644 index 00000000000000..fa8d9d2e82d233 --- /dev/null +++ b/srcpkgs/signing-party/patches/makefiles.patch @@ -0,0 +1,232 @@ +commit 2ef002d78cbdeae8867a6aac63da451f0bb017c9 +Author: Jan Christian Grünhage +Date: Fri Jun 18 17:57:01 2021 +0200 + + make `make install` install stuff actually + + So far, installing was done outside of the Makefiles, which means that + the installing has to be duplicated per distro. This can be seen in the + files in the `debian` folder and in + https://github.com/archlinux/svntogit-community/blob/276cd50659b33f4b0ee2cc2b3d22b07665ff7a07/trunk/PKGBUILD#L48-L84. + To avoid things like these while I was packaging this for Void Linux, I + added or changed Makefiles for the individual projects. This way, I only + need this patch in Void instead of workarounds like Arch has. + +diff --git a/caff/Makefile b/caff/Makefile +index 714aa8f..e9bf872 100644 +--- a/caff/Makefile ++++ b/caff/Makefile +@@ -6,6 +6,9 @@ all: $(MAN) + pod2man $< > $@ + + install: ++ install -Dm755 {caff,pgp-clean,pgp-fixkey} -t $(DESTDIR)/usr/bin/ ++ install -Dm644 {caff,pgp-clean,pgp-fixkey}.1 -t ${DESTDIR}/usr/share/man/man1/ ++ install -Dm644 {caffrc.sample,README*} -t $(DESTDIR)/usr/share/doc/signing-party/caff/ + + clean: + rm -f $(MAN) +diff --git a/gpg-key2latex/Makefile b/gpg-key2latex/Makefile +index c2d35d8..33ac35b 100644 +--- a/gpg-key2latex/Makefile ++++ b/gpg-key2latex/Makefile +@@ -6,6 +6,8 @@ all: $(MAN) + pod2man $< > $@ + + install: ++ install -Dm755 gpg-key2latex -t $(DESTDIR)/usr/bin/ ++ install -Dm644 gpg-key2latex.1 -t ${DESTDIR}/usr/share/man/man1/ + + clean: + rm -f $(MAN) +diff --git a/gpg-key2ps/Makefile b/gpg-key2ps/Makefile +index 5f483c5..9e66cce 100644 +--- a/gpg-key2ps/Makefile ++++ b/gpg-key2ps/Makefile +@@ -4,6 +4,9 @@ gpg-key2ps.1: gpg-key2ps + pod2man $< > $@ + + install: ++ install -Dm755 gpg-key2ps -t $(DESTDIR)/usr/bin/ ++ install -Dm644 gpg-key2ps.1 -t ${DESTDIR}/usr/share/man/man1/ ++ install -Dm644 README -t $(DESTDIR)/usr/share/doc/signing-party/gpg-key2ps/ + + clean: + rm -f gpg-key2ps.1 +diff --git a/gpg-mailkeys/Makefile b/gpg-mailkeys/Makefile +new file mode 100644 +index 0000000..bf94df8 +--- /dev/null ++++ b/gpg-mailkeys/Makefile +@@ -0,0 +1,9 @@ ++ ++all: ++ ++install: ++ install -Dm755 gpg-mailkeys -t $(DESTDIR)/usr/bin/ ++ install -Dm644 gpg-mailkeys.1 -t ${DESTDIR}/usr/share/man/man1/ ++ install -Dm644 {example.gpg-mailkeysrc,README} -t $(DESTDIR)/usr/share/doc/signing-party/gpg-mailkeys/ ++ ++clean: +diff --git a/gpgdir/Makefile b/gpgdir/Makefile +new file mode 100644 +index 0000000..22f4fc0 +--- /dev/null ++++ b/gpgdir/Makefile +@@ -0,0 +1,8 @@ ++all: ++ ++install: ++ install -Dm755 gpgdir -t $(DESTDIR)/usr/bin/ ++ install -Dm644 gpgdir.1 -t ${DESTDIR}/usr/share/man/man1/ ++ install -Dm644 {README,ChangeLog} -t $(DESTDIR)/usr/share/doc/signing-party/gpgdir/ ++ ++clean: +diff --git a/gpglist/Makefile b/gpglist/Makefile +index f4f8487..72679b9 100644 +--- a/gpglist/Makefile ++++ b/gpglist/Makefile +@@ -6,6 +6,8 @@ all: $(MAN) + pod2man $< > $@ + + install: ++ install -Dm755 gpglist -t $(DESTDIR)/usr/bin/ ++ install -Dm644 gpglist.1 -t ${DESTDIR}/usr/share/man/man1/ + + clean: + rm -f $(MAN) +diff --git a/gpgparticipants/Makefile b/gpgparticipants/Makefile +new file mode 100644 +index 0000000..c308340 +--- /dev/null ++++ b/gpgparticipants/Makefile +@@ -0,0 +1,7 @@ ++all: ++ ++install: ++ install -Dm755 gpg{participants,participants-filter,participants-prefill} -t $(DESTDIR)/usr/bin/ ++ install -Dm644 gpg{participants,participants-filter,participants-prefill}.1 -t ${DESTDIR}/usr/share/man/man1/ ++ ++clean: +diff --git a/gpgsigs/Makefile b/gpgsigs/Makefile +index 339ddb8..994983b 100644 +--- a/gpgsigs/Makefile ++++ b/gpgsigs/Makefile +@@ -4,10 +4,9 @@ gpgsigs.1: gpgsigs + pod2man $< > $@ + + install: +- install -D gpgsigs $(DESTDIR)/usr/bin/gpgsigs +- install -d $(DESTDIR)/usr/share/doc/signing-party/examples/gpgsigs +- install -m644 gpgsigs-lt2k5*.txt \ +- $(DESTDIR)/usr/share/doc/signing-party/examples/gpgsigs ++ install -Dm755 gpgsigs $(DESTDIR)/usr/bin/gpgsigs ++ install -Dm644 gpgsigs.1 -t ${DESTDIR}/usr/share/man/man1/ ++ install -Dm644 gpgsigs-lt2k5*.txt -t $(DESTDIR)/usr/share/doc/signing-party/gpgsigs/examples + + clean: + rm -f gpgsigs.1 +diff --git a/gpgwrap/Makefile b/gpgwrap/Makefile +index 30064df..8355e91 100644 +--- a/gpgwrap/Makefile ++++ b/gpgwrap/Makefile +@@ -1,9 +1,14 @@ + MAKE=make + +-.PHONY: all clean ++.PHONY: all clean install + + all: + cd src && ${MAKE} all DIET="${DIET}" + ++install: ++ install -Dm755 bin/gpgwrap -t $(DESTDIR)/usr/bin/ ++ install -Dm644 doc/gpgwrap.1 -t ${DESTDIR}/usr/share/man/man1/ ++ install -Dm644 {README,NEWS} -t $(DESTDIR)/usr/share/doc/signing-party/gpgwrap ++ + clean: + cd src && ${MAKE} clean +diff --git a/keyanalyze/Makefile b/keyanalyze/Makefile +index 3517b74..a9ce7b7 100644 +--- a/keyanalyze/Makefile ++++ b/keyanalyze/Makefile +@@ -16,9 +16,8 @@ pgpring/pgpring: pgpring/config.status + $(MAKE) -C pgpring pgpring + + install: +- install pgpring/pgpring $(DESTDIR)/usr/bin +- install keyanalyze $(DESTDIR)/usr/bin +- install process_keys $(DESTDIR)/usr/bin ++ install -Dm755 {pgpring/pgpring,keyanalyze,process_keys} $(DESTDIR)/usr/bin ++ install -Dm644 {pgpring/pgpring,keyanalyze,process_keys}.1 -t ${DESTDIR}/usr/share/man/man1/ + + clean: + [ ! -f pgpring/Makefile ] || $(MAKE) -C pgpring distclean +diff --git a/keyart/Makefile b/keyart/Makefile +new file mode 100644 +index 0000000..0efc12c +--- /dev/null ++++ b/keyart/Makefile +@@ -0,0 +1,8 @@ ++all: ++ ++install: ++ install -Dm755 keyart -t $(DESTDIR)/usr/bin/ ++ install -Dm644 doc/keyart.1 -t ${DESTDIR}/usr/share/man/man1/ ++ install -Dm644 {README,doc/druken-bishop.txt,doc/party-worksheet} -t $(DESTDIR)/usr/share/doc/signing-party/gpgdir/ ++ ++clean: +diff --git a/keylookup/Makefile b/keylookup/Makefile +index dacd4db..4b91390 100644 +--- a/keylookup/Makefile ++++ b/keylookup/Makefile +@@ -1,9 +1,9 @@ + all: + + install: +- install -D keylookup $(DESTDIR)/usr/bin/keylookup +- install -D -m644 keylookup.1 $(DESTDIR)/usr/share/man/man1/keylookup.1 +- install -D -m644 NEWS \ +- $(DESTDIR)/usr/share/doc/signing-party/NEWS.keylookup ++ install -Dm755 keylookup -t $(DESTDIR)/usr/bin/ ++ install -Dm644 keylookup.1 -t $(DESTDIR)/usr/share/man/man1/ ++ install -Dm644 NEWS -t \ ++ $(DESTDIR)/usr/share/doc/signing-party/keylookup/NEWS + + clean: +diff --git a/sig2dot/Makefile b/sig2dot/Makefile +index 772207c..37d6665 100644 +--- a/sig2dot/Makefile ++++ b/sig2dot/Makefile +@@ -1,9 +1,9 @@ + all: + + install: +- install -D sig2dot $(DESTDIR)/usr/bin/sig2dot +- install -D -m644 sig2dot.1 $(DESTDIR)/usr/share/man/man1/sig2dot.1 +- install -D -m644 README.sig2dot \ +- $(DESTDIR)/usr/share/doc/signing-party/README.sig2dot ++ install -Dm755 sig2dot -t $(DESTDIR)/usr/bin/ ++ install -Dm644 sig2dot.1 -t $(DESTDIR)/usr/share/man/man1/ ++ install -Dm644 README.sig2dot \ ++ $(DESTDIR)/usr/share/doc/signing-party/sig2dot/README + + clean: +diff --git a/springgraph/Makefile b/springgraph/Makefile +index 8f174b7..d3ee8ab 100644 +--- a/springgraph/Makefile ++++ b/springgraph/Makefile +@@ -1,9 +1,9 @@ + all: + + install: +- install -D springgraph $(DESTDIR)/usr/bin/springgraph +- install -D -m644 springgraph.1 $(DESTDIR)/usr/share/man/man1/springgraph.1 +- install -D -m644 README.springgraph \ +- $(DESTDIR)/usr/share/doc/signing-party/README.springgraph ++ install -Dm755 springgraph -t $(DESTDIR)/usr/bin/ ++ install -Dm644 springgraph.1 -t $(DESTDIR)/usr/share/man/man1/ ++ install -Dm644 README.springgraph \ ++ $(DESTDIR)/usr/share/doc/signing-party/springgraph/README + + clean: diff --git a/srcpkgs/signing-party/template b/srcpkgs/signing-party/template new file mode 100644 index 00000000000000..13fa5838e4a09e --- /dev/null +++ b/srcpkgs/signing-party/template @@ -0,0 +1,27 @@ +# Template file for 'signing-party' +pkgname=signing-party +version=2.11 +revision=1 +wrksrc="${pkgname}-v${version}" +build_style=gnu-makefile +hostmakedepends="perl autoconf automake" +makedepends="libmd-devel" +depends="perl-Class-MethodMaker perl-GnuPG-Interface perl-MailTools + perl-MIME-tools perl-Net-IDN-Encode perl-Term-ReadKey perl-Text-Template + qprint" # keyanalyze should be in here, but it's currently broken +short_desc="OpenPGP tools for signing keys, keyring analysis, and party preparation" +maintainer="Jan Christian Grünhage " +license="BSD-3-Clause, GPL-2.0-or-later, GPL-2.0-only, MIT, BSD-2-Clause, GPL-3.0-or-later" +homepage="https://salsa.debian.org/signing-party-team/signing-party" +distfiles="https://salsa.debian.org/${pkgname}-team/${pkgname}/-/archive/v${version}/${pkgname}-v${version}.tar.gz" +checksum=e339cfea9af6f12bf09de8aa6c8972c168d2eb712cb72a8a7415e3f7ecb43cf2 + +post_patch() { +# keyanalyze has built separately for crosscompiling to work. +# building keyanalyze is also broken right now, so it's not included so far + vsed -i Makefile -e 's/keyanalyze//' +} + +post_install() { + vlicense debian/copyright +}