diff options
author | B. Watson <urchlay@slackware.uk> | 2023-09-23 09:11:24 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-09-23 09:11:24 +0700 |
commit | e053c87889bd6db39d2562e75c094eb5daae9615 (patch) | |
tree | db47aff882b3b5f5e6a86b53c21e9b0d982d1639 /perl | |
parent | d085e2302a1305d4661939ad34928ae84447d7ea (diff) |
perl/perl-crypt-dh-gmp: Added (Diffie-Hellman key exchange module).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl')
-rw-r--r-- | perl/perl-crypt-dh-gmp/README | 4 | ||||
-rw-r--r-- | perl/perl-crypt-dh-gmp/perl-crypt-dh-gmp.SlackBuild | 66 | ||||
-rw-r--r-- | perl/perl-crypt-dh-gmp/perl-crypt-dh-gmp.info | 10 | ||||
-rw-r--r-- | perl/perl-crypt-dh-gmp/slack-desc | 19 |
4 files changed, 99 insertions, 0 deletions
diff --git a/perl/perl-crypt-dh-gmp/README b/perl/perl-crypt-dh-gmp/README new file mode 100644 index 000000000000..dcd9293bd6e2 --- /dev/null +++ b/perl/perl-crypt-dh-gmp/README @@ -0,0 +1,4 @@ +perl-crypt-dh-gmp (Diffie-Hellman key exchange module, using GMP) + +Crypt::DH::GMP is a (somewhat) portable replacement for Crypt::DH, +implemented mostly in C (for speed). diff --git a/perl/perl-crypt-dh-gmp/perl-crypt-dh-gmp.SlackBuild b/perl/perl-crypt-dh-gmp/perl-crypt-dh-gmp.SlackBuild new file mode 100644 index 000000000000..e0b19f9584b3 --- /dev/null +++ b/perl/perl-crypt-dh-gmp/perl-crypt-dh-gmp.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/bash + +# Slackware build script for perl-crypt-dh-gmp + +# Written by B. Watson (urchlay@slackware.uk) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=perl-crypt-dh-gmp +SRCNAM=Crypt-DH-GMP +VERSION=${VERSION:-0.00012} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION +chown -R root:root . +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + + +perl Makefile.PL \ + PREFIX=/usr \ + INSTALLDIRS=vendor \ + INSTALLVENDORMAN3DIR=/usr/man/man3 +make +make install DESTDIR=$PKG +rm -f $PKG/usr/lib*/perl5/perllocal.pod $PKG/usr/lib*/perl5/*/*/*/*/*/.packlist +strip $PKG/usr/lib*/perl5/vendor_perl/auto/Crypt/DH/GMP/GMP.so +gzip -9 $PKG/usr/man/man*/* + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a Changes $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/perl/perl-crypt-dh-gmp/perl-crypt-dh-gmp.info b/perl/perl-crypt-dh-gmp/perl-crypt-dh-gmp.info new file mode 100644 index 000000000000..d209713d1981 --- /dev/null +++ b/perl/perl-crypt-dh-gmp/perl-crypt-dh-gmp.info @@ -0,0 +1,10 @@ +PRGNAM="perl-crypt-dh-gmp" +VERSION="0.00012" +HOMEPAGE="https://metacpan.org/pod/Crypt::DH::GMP" +DOWNLOAD="https://cpan.metacpan.org/authors/id/D/DM/DMAKI/Crypt-DH-GMP-0.00012.tar.gz" +MD5SUM="9df5e4d790b81055d8609fa50ec31fdb" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="perl-Test-Requires perl-Module-Install" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" diff --git a/perl/perl-crypt-dh-gmp/slack-desc b/perl/perl-crypt-dh-gmp/slack-desc new file mode 100644 index 000000000000..14c23d4d5f53 --- /dev/null +++ b/perl/perl-crypt-dh-gmp/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +perl-crypt-dh-gmp: perl-crypt-dh-gmp (Diffie-Hellman key exchange module, using GMP) +perl-crypt-dh-gmp: +perl-crypt-dh-gmp: Crypt::DH::GMP is a (somewhat) portable replacement for Crypt::DH, +perl-crypt-dh-gmp: implemented mostly in C (for speed). +perl-crypt-dh-gmp: +perl-crypt-dh-gmp: +perl-crypt-dh-gmp: +perl-crypt-dh-gmp: +perl-crypt-dh-gmp: +perl-crypt-dh-gmp: +perl-crypt-dh-gmp: |