Skip to content
Permalink
Browse files

sysutils/amttools: update to 1.6, rework patchset, switch to Perl 5.28.

  • Loading branch information
Ionic committed Apr 23, 2019
1 parent 81fd177 commit 5f5cf89f51eca05f24f310423c9f1351caeb0724
@@ -4,8 +4,8 @@ PortSystem 1.0

name amttools
set my_distname amtterm
version 1.4
revision 3
version 1.6
revision 0
categories sysutils
license GPL-2+
maintainers {ionic @Ionic} openmaintainer
@@ -23,17 +23,22 @@ long_description AMT (included in Intel vPro and Centrino Pro) provides \
amtterm and gamt are two terminal tools to connect to \
that pseudo serial interface from a remote computer. \
amttool is a perl script to gather information about \
and remotely control AMT managed computers.
and remotely control AMT managed computers. \
Note that AMT 9.0 dropped support for the old SOAP- \
protocol-based communication this package implements. \
Newer versions use WS Management implemented starting \
with AMT 3.0 and are not supported by this software.
homepage https://www.kraxel.org/blog/linux/${my_distname}/

master_sites https://www.kraxel.org/releases/${my_distname}/

distname ${my_distname}-${version}

checksums rmd160 fac39807990870f88884e541f4b062db8b8d1236 \
sha256 e10af2b02dbf66fb24abd292b9ddc6d86b31eea09887da5cb0eb8fb2ee900e21
checksums rmd160 9fb55ade1f5ca3015be0794236ea3031fc137367 \
sha256 1242cea467827aa1e2e91b41846229ca0a5b3f3e09260b0df9d78dc875075590 \
size 40804

set perl_branch 5.26
set perl_branch 5.28
depends_build port:pkgconfig
depends_run port:p${perl_branch}-soap-lite

@@ -51,7 +56,6 @@ variant universal {}
# (And drop this patch in the gtk variant...)
patchfiles patch-amttool-prepare-hashbang-for-reinplace.diff \
patch-mk_Variables.mk-no-special-usr-local-treatment.diff \
patch-GNUmakefile-check-for-GTK2-only.diff \
patch-GNUmakefile-disable-gamt.diff

build.type gnu
@@ -72,24 +76,11 @@ post-patch {
reinplace -W "${worksrcpath}" "s|@@PERL_BINARY@@|${prefix}/bin/perl${perl_branch}|" amttool
}

variant gtk description {Enable gamt (GTK2-based AMT terminal)} {
depends_lib-append path:lib/pkgconfig/gtk-2.0.pc:gtk2 \
variant gtk description {Enable gamt (GTK3-based AMT terminal)} {
depends_lib-append path:lib/pkgconfig/gtk-3.0.pc:gtk3 \
port:vte

patchfiles-delete patch-GNUmakefile-disable-gamt.diff

# Our libvte is GTK3-only, we need to switch the check to
# that version explicitly. Also holds for the (newer) libvte
# version, which now appends its library version number.
patchfiles-append patch-GNUmakefile-use-GTK3.diff \
patch-GNUmakefile-use-vte-2.91.diff

# This is a "rebased" patch taken from upstream's git repository,
# c.f., https://www.kraxel.org/cgit/amtterm/patch/?id=f08799bee
patchfiles-append patch-gamt.c-switch-to-GTK3.diff

# (More or less) trivial fixups for libvte 2.91.
patchfiles-append patch-gamt.c-switch-to-libvte-2.91.diff
}

livecheck.name ${my_distname}

This file was deleted.

@@ -1,14 +1,14 @@
--- GNUmakefile.old 2016-02-25 00:16:53.000000000 +0100
+++ GNUmakefile 2016-02-25 00:29:38.000000000 +0100
@@ -25,18 +25,6 @@ endef
--- GNUmakefile.old 2017-02-27 11:24:26.000000000 +0100
+++ GNUmakefile 2019-04-23 08:27:37.000000000 +0200
@@ -26,18 +26,6 @@ endef

#################################################################

-# build gamt?
-ifeq ($(HAVE_GTK)$(HAVE_VTE),yesyes)
- TARGETS += gamt
- gamt : CFLAGS += -Wno-strict-prototypes
- gamt : pkglst += gtk+-2.0 vte
- gamt : pkglst += gtk+-3.0 gdk-3.0 vte-2.91
-endif
-
-CFLAGS += $(shell test "$(pkglst)" != "" && pkg-config --cflags $(pkglst))

This file was deleted.

This file was deleted.

@@ -1,5 +1,5 @@
--- amttool.old 2015-07-27 14:08:57.000000000 +0200
+++ amttool 2016-02-25 00:45:12.000000000 +0100
--- amttool.old 2017-02-27 11:24:26.000000000 +0100
+++ amttool 2019-04-23 08:22:57.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!@@PERL_BINARY@@

This file was deleted.

0 comments on commit 5f5cf89

Please sign in to comment.
You can’t perform that action at this time.