pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-ec2instanceconnectcli: Convert to a multi-package and remove all .cmd
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Thu Jun 10 09:48:43 2021 +0200
Changeset: e58051261008b23985041e87cf01e3416fec332c
Modified Files:
py-ec2instanceconnectcli/Makefile
py-ec2instanceconnectcli/PLIST
Added Files:
py-ec2instanceconnectcli/ALTERNATIVES
Removed Files:
py-ec2instanceconnectcli/TODO
Log Message:
py-ec2instanceconnectcli: Convert to a multi-package and remove all .cmd
Install all scripts with appended PYVERSSUFFIX and add an ALTERNATIVES to
possibly have a generic `msftp' and `mssh'.
Remove all .cmd files: they are probably not easily usable on pkgsrc platforms.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e58051261008b23985041e87cf01e3416fec332c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-ec2instanceconnectcli/ALTERNATIVES | 2 ++
py-ec2instanceconnectcli/Makefile | 6 ++++++
py-ec2instanceconnectcli/PLIST | 8 ++------
py-ec2instanceconnectcli/TODO | 2 --
4 files changed, 10 insertions(+), 8 deletions(-)
diffs:
diff --git a/py-ec2instanceconnectcli/ALTERNATIVES b/py-ec2instanceconnectcli/ALTERNATIVES
new file mode 100644
index 0000000000..156b552b2f
--- /dev/null
+++ b/py-ec2instanceconnectcli/ALTERNATIVES
@@ -0,0 +1,2 @@
+bin/msftp @PREFIX@/bin/msftp@PYVERSSUFFIX@
+bin/mssh @PREFIX@/bin/mssh@PYVERSSUFFIX@
diff --git a/py-ec2instanceconnectcli/Makefile b/py-ec2instanceconnectcli/Makefile
index dc67c3da1f..b591628155 100644
--- a/py-ec2instanceconnectcli/Makefile
+++ b/py-ec2instanceconnectcli/Makefile
@@ -15,5 +15,11 @@ DEPENDS+= ${PYPKGPREFIX}-cryptography>=1.9:../../security/py-cryptography
USE_LANGUAGES= # none
+post-install:
+.for p in msftp mssh
+ ${MV} ${DESTDIR}${PREFIX}/bin/${p} ${DESTDIR}${PREFIX}/bin/${p}${PYVERSSUFFIX} || ${TRUE}
+.endfor
+ ${RM} ${DESTDIR}${PREFIX}/bin/*.cmd
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/py-ec2instanceconnectcli/PLIST b/py-ec2instanceconnectcli/PLIST
index 301d4712a5..c532897c87 100644
--- a/py-ec2instanceconnectcli/PLIST
+++ b/py-ec2instanceconnectcli/PLIST
@@ -1,10 +1,6 @@
@comment $NetBSD$
-bin/msftp
-bin/msftp-putty.cmd
-bin/msftp.cmd
-bin/mssh
-bin/mssh-putty.cmd
-bin/mssh.cmd
+bin/msftp${PYVERSSUFFIX}
+bin/mssh${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
diff --git a/py-ec2instanceconnectcli/TODO b/py-ec2instanceconnectcli/TODO
deleted file mode 100644
index 694ca9b5c6..0000000000
--- a/py-ec2instanceconnectcli/TODO
+++ /dev/null
@@ -1,2 +0,0 @@
-- Remove all `*.cmd' scripts
-- Add support for multi-packages
Home |
Main Index |
Thread Index |
Old Index