From 7fdbcc05dadcb4578915e6150efbefe142a01b12 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 000000000000..1b213d2e29b5 --- /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 f7193ea8ca31c5015267bf620f8e08d9f09f387d 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.012005 --- 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 000000000000..626e7f7b13a9 --- /dev/null +++ b/srcpkgs/perl-Type-Tiny/template @@ -0,0 +1,15 @@ +# Template file for 'perl-Type-Tiny' +pkgname=perl-Type-Tiny +version=1.012005 +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=87ed66e2dbfd3342847e5945692be77883e961c684df803b2ec98c64576c41e9 From 54d9f9a5a78401bde134be1b76d79a36a6177401 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 03/12] New package: perl-Sub-HandlesVia-0.021 --- 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 000000000000..0022f8076e4f --- /dev/null +++ b/srcpkgs/perl-Sub-HandlesVia/template @@ -0,0 +1,16 @@ +# Template file for 'perl-Sub-HandlesVia' +pkgname=perl-Sub-HandlesVia +version=0.021 +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" +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=cc0f1d7e3ff2697d3dc8df5168806d75b9af27cbf6b6781b972299246c698f07 From 0bff5b40ac1208e82b80348acb7e50134e9430bc 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 04/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 000000000000..c4729bee6085 --- /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 068980b5d1f98b7be5b5baebe06d4d0b59d36e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 17 Jun 2021 11:29:16 +0200 Subject: [PATCH 05/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 000000000000..a622d1f841be --- /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 a254e3b49d73f795530846c5e2348ddbd2dacbc3 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 06/12] New package: perl-GnuPG-Interface-1.02 --- .../patches/0001-disables-version-check.patch | 53 +++++++++++++++++++ .../0002-Hardcode-path-to-usr-bin-gpg.patch | 38 +++++++++++++ srcpkgs/perl-GnuPG-Interface/template | 15 ++++++ 3 files changed, 106 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 000000000000..b60d04997551 --- /dev/null +++ b/srcpkgs/perl-GnuPG-Interface/patches/0001-disables-version-check.patch @@ -0,0 +1,53 @@ +From 63927d2932e1b880dcc146f89662f2c20976907c 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 | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/lib/GnuPG/Interface.pm b/lib/GnuPG/Interface.pm +index 905ae30..9c93567 100644 +--- a/lib/GnuPG/Interface.pm ++++ b/lib/GnuPG/Interface.pm +@@ -820,18 +820,18 @@ 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 $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; ++ my $version = '2.2.34'; + 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; ++ #waitpid $pid, 0; + + return $version; + } +-- +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 000000000000..b390384be5df --- /dev/null +++ b/srcpkgs/perl-GnuPG-Interface/patches/0002-Hardcode-path-to-usr-bin-gpg.patch @@ -0,0 +1,38 @@ +From 74734624e9905ec0e8fd9ed578e8b86936210f1c 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 9c93567..1353f9a 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( +@@ -1197,9 +1197,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 000000000000..20756374d957 --- /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 59bf48ddd83cf8838fe4e6b92b475ab88c2267d8 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 07/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 000000000000..a4022ba73d26 --- /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 35bb4001865280f8b7c4594e38e062863f3e39c3 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 08/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 000000000000..71d9e06d8ba9 --- /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 15a6d11faefeb7b3640b97f71cf99224c1b0de5c 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 09/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 000000000000..dc6441ed9142 --- /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 acbeb823fbf1f37078fd7ef4a22bd5640bedcedb 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 10/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 000000000000..a09afbc36cba --- /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 2120600c723d2d3f8a615d1e6684fb947754129d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Mon, 6 Sep 2021 14:12:55 +0200 Subject: [PATCH 11/12] New package: keyanalyze-2.11 --- srcpkgs/keyanalyze/template | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 srcpkgs/keyanalyze/template diff --git a/srcpkgs/keyanalyze/template b/srcpkgs/keyanalyze/template new file mode 100644 index 000000000000..f004ab1ddf54 --- /dev/null +++ b/srcpkgs/keyanalyze/template @@ -0,0 +1,34 @@ +# Template file for 'keyanalyze' +pkgname=keyanalyze +version=2.11 +revision=1 +wrksrc="signing-party-v${version}" +build_wrksrc="keyanalyze/pgpring" +build_style=gnu-configure +make_install_args="-C .." +hostmakedepends="autoconf automake" +makedepends="libmd-devel" +short_desc="Analyses the relationships between the keys in public key ring" +maintainer="Jan Christian Grünhage " +license="GPL-2.0-only" +homepage="https://salsa.debian.org/signing-party-team/signing-party" +distfiles="https://salsa.debian.org/signing-party-team/signing-party/-/archive/v${version}/signing-party-v${version}.tar.gz" +checksum=e339cfea9af6f12bf09de8aa6c8972c168d2eb712cb72a8a7415e3f7ecb43cf2 + +pre_configure() { + autoreconf -fi +} + +post_build() { + cd .. + vsed -i Makefile -e '/all:/s:pgpring/pgpring::' + make CFLAGS="$CFLAGS" +} + +## Currently borked: +# +# ❯ xbps-query --repository=hostdir/binpkgs/signing-party-2.11_1 -f keyanalyze +# /usr/bin +# +## +broken="Package contains a binary at /usr/bin, nothing else" From 696b2abcfe1caab9a62530ecf5bfe442779fa7d5 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 | 25 ++ 2 files changed, 257 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 000000000000..fa8d9d2e82d2 --- /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 000000000000..57438cbae03f --- /dev/null +++ b/srcpkgs/signing-party/template @@ -0,0 +1,25 @@ +# 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() { + vsed -i Makefile -e 's/keyanalyze//' # keyanalyze is built separately +} + +post_install() { + vlicense debian/copyright +}