ports/189443: New port: Split off amttool from comms/amtterm into sysutils/amttool
Tony Li
tony.li at tony.li
Wed May 7 21:00:00 UTC 2014
>Number: 189443
>Category: ports
>Synopsis: New port: Split off amttool from comms/amtterm into sysutils/amttool
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed May 07 21:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Tony Li
>Release: FreeBSD 9.2-STABLE amd64
>Organization:
>Environment:
FreeBSD Mumble 9.2-STABLE FreeBSD 9.2-STABLE #0: Mon May 5 04:47:47 PDT 2014 root at js-build-vm2:/home/buildbot/workspace/iso-build-full--default/obj/home/buildbot/workspace/iso-build-full--default/fbsd-stable9-picoral/sys/Mumble amd64
>Description:
The current port for comms/amtterm provides two useful tools: amtterm, which provides access to remote systems using the Serial-Over-LAN feature that is part of Intel's Active Management Techology (AMT), plus amttool, a routine that's useful for managing systems over AMT.
Unfortunately, amttool has many dependencies. These are not shared with amtterm. This change proposes that we split these into two separate ports: comms/amtterm for the amtterm utility and sysutils/amttool for the tool itself.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# ../comms/amtterm.diff
# amttool
# amttool/Makefile
# amttool/pkg-descr
#
echo x - ../comms/amtterm.diff
sed 's/^X//' >../comms/amtterm.diff << '9665280b111323df2f05fd983b6e7392'
X*** patch-GNUmakefile.orig Wed May 7 09:52:56 2014
X--- patch-GNUmakefile Tue May 6 17:16:22 2014
X***************
X*** 0 ****
X--- 1,44 ----
X+ *** GNUmakefile.orig Thu May 26 02:19:45 2011
X+ --- GNUmakefile Tue May 6 17:15:38 2014
X+ ***************
X+ *** 37,53 ****
X+
X+ #################################################################
X+
X+ ! build: $(TARGETS)
X+
X+ install: build
X+ ! $(INSTALL_DIR) $(bindir) $(appdir) $(mandir)/man1 $(mandir)/man7
X+ ! $(INSTALL_BINARY) $(TARGETS) $(bindir)
X+ $(INSTALL_SCRIPT) amttool $(bindir)
X+ - $(INSTALL_DATA) $(DESKTOP) $(appdir)
X+ - $(INSTALL_DATA) gamt.man $(mandir)/man1/gamt.1
X+ - $(INSTALL_DATA) amtterm.man $(mandir)/man1/amtterm.1
X+ $(INSTALL_DATA) amttool.man $(mandir)/man1/amttool.1
X+ $(INSTALL_DATA) amt-howto.man $(mandir)/man7/amt-howto.7
X+
X+ clean:
X+ rm -f *.o *~
X+ --- 37,58 ----
X+
X+ #################################################################
X+
X+ ! ifeq ($(BUILD), amttool)
X+ ! build:
X+
X+ install: build
X+ ! $(INSTALL_DIR) $(bindir) $(mandir)/man1 $(mandir)/man7
X+ $(INSTALL_SCRIPT) amttool $(bindir)
X+ $(INSTALL_DATA) amttool.man $(mandir)/man1/amttool.1
X+ $(INSTALL_DATA) amt-howto.man $(mandir)/man7/amt-howto.7
X+ + else
X+ + build: $(TARGETS)
X+ +
X+ + install: build
X+ + $(INSTALL_DIR) $(bindir) $(mandir)/man1
X+ + $(INSTALL_BINARY) $(TARGETS) $(bindir)
X+ + $(INSTALL_DATA) amtterm.man $(mandir)/man1/amtterm.1
X+ + endif
X+
X+ clean:
X+ rm -f *.o *~
X*** Makefile.orig Wed May 7 09:51:50 2014
X--- Makefile Wed May 7 08:13:24 2014
X***************
X*** 2,10 ****
X
X PORTNAME= amtterm
X PORTVERSION= 1.3
X! PORTREVISION= 3
X CATEGORIES= comms
X! MASTER_SITES= https://www.kraxel.org/releases/${PORTNAME}/
X
X MAINTAINER= crees at FreeBSD.org
X COMMENT= Serial-over-lan client for Intel AMT
X--- 2,11 ----
X
X PORTNAME= amtterm
X PORTVERSION= 1.3
X! PORTREVISION= 4
X CATEGORIES= comms
X! MASTER_SITES= https://www.kraxel.org/releases/${PORTNAME}/ \
X! https://www.kraxel.org/cgit/amtterm/snapshot/
X
X MAINTAINER= crees at FreeBSD.org
X COMMENT= Serial-over-lan client for Intel AMT
X***************
X*** 12,31 ****
X LICENSE= GPLv2
X LICENSE_FILE= ${WRKSRC}/COPYING
X
X! RUN_DEPENDS= p5-SOAP-Lite>=0.5:${PORTSDIR}/net/p5-SOAP-Lite
X!
X! USES= gmake dos2unix shebangfix
X DOS2UNIX_FILES= RedirectionConstants.h
X- SHEBANG_FILES= amttool
X
X MAKEFILE= GNUmakefile
X- MAKE_ARGS+= HAVE_GTK=no mandir=${STAGEDIR}${MANPREFIX}/man
X
X! PLIST_FILES= bin/${PORTNAME} \
X! bin/amttool \
X! share/applications/gamt.desktop \
X! man/man1/gamt.1.gz man/man1/${PORTNAME}.1.gz \
X man/man1/amttool.1.gz man/man7/amt-howto.7.gz
X
X post-patch:
X @${REINPLACE_CMD} -e 's,/sbin/ldconfig -p,${LDCONFIG} -r,' \
X--- 13,32 ----
X LICENSE= GPLv2
X LICENSE_FILE= ${WRKSRC}/COPYING
X
X! USES= gmake dos2unix
X DOS2UNIX_FILES= RedirectionConstants.h
X
X MAKEFILE= GNUmakefile
X
X! .if defined(AMTTOOL)
X! MAKE_ARGS+= HAVE_GTK=no mandir=${STAGEDIR}${MANPREFIX}/man BUILD=amttool
X! PLIST_FILES= bin/amttool \
X man/man1/amttool.1.gz man/man7/amt-howto.7.gz
X+ .else
X+ MAKE_ARGS+= HAVE_GTK=no mandir=${STAGEDIR}${MANPREFIX}/man BUILD=${PORTNAME}
X+ PLIST_FILES= bin/${PORTNAME} \
X+ man/man1/amtterm.1.gz
X+ .endif
X
X post-patch:
X @${REINPLACE_CMD} -e 's,/sbin/ldconfig -p,${LDCONFIG} -r,' \
9665280b111323df2f05fd983b6e7392
echo c - amttool
mkdir -p amttool > /dev/null 2>&1
echo x - amttool/Makefile
sed 's/^X//' >amttool/Makefile << '33678e1881841cf707c25fe3701b38a9'
X
XPORTNAME= amttool
XPKGNAMESUFFIX= +amttool
X
XMAINTAINER= tony.li at tony.li
XCOMMENT= A tool for talking to systems using Intel's Active Management Technology (AMT)
X
XLICENSE= GPLv2
XLICENSE_FILE= ${WRKSRC}/COPYING
X
XRUN_DEPENDS= p5-SOAP-Lite>=0.5:${PORTSDIR}/net/p5-SOAP-Lite
X
XUSES= shebangfix
XSHEBANG_FILES= amttool
X
XAMTTOOL= yes
XMASTERDIR= ${.CURDIR}/../../comms/amtterm
XPKGDIR= ${.CURDIR}
X
X.include "${MASTERDIR}/Makefile"
X
33678e1881841cf707c25fe3701b38a9
echo x - amttool/pkg-descr
sed 's/^X//' >amttool/pkg-descr << '35382494bfe4938f7014b328b284a247'
XThis is a perl script to gather informations about and remotely control AMT managed computers.
X
XWWW: https://www.kraxel.org/blog/linux/amtterm/
35382494bfe4938f7014b328b284a247
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list