components/sysutils/mtx/Makefile | ●●●●● patch | view | raw | blame | history | |
components/sysutils/mtx/manifests/sample-manifest.p5m | ●●●●● patch | view | raw | blame | history | |
components/sysutils/mtx/mtx.p5m | ●●●●● patch | view | raw | blame | history | |
components/sysutils/mtx/patches/01-destdir.patch | ●●●●● patch | view | raw | blame | history | |
components/sysutils/mtx/pkg5 | ●●●●● patch | view | raw | blame | history |
components/sysutils/mtx/Makefile
New file @@ -0,0 +1,33 @@ # # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2024 Carsten Grzemba # include ../../../make-rules/shared-macros.mk COMPONENT_NAME= mtx COMPONENT_VERSION= 1.3.12 COMPONENT_FMRI= media/$(COMPONENT_NAME) COMPONENT_CLASSIFICATION= Applications/System Utilities COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_PROJECT_URL= https://sourceforge.net/projects/mtx COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz COMPONENT_ARCHIVE_URL= https://downloads.sourceforge.net/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) COMPONENT_ARCHIVE_HASH= sha256:0261c5e90b98b6138cd23dadecbc7bc6e2830235145ed2740290e1f35672d843 COMPONENT_LICENSE= GPLv2 COMPONENT_LICENSE_FILE= LICENSE COMPONENT_SUMMARY= Media Changer Tools include $(WS_MAKE_RULES)/common.mk # Auto-generated dependencies REQUIRED_PACKAGES += system/library components/sysutils/mtx/manifests/sample-manifest.p5m
New file @@ -0,0 +1,35 @@ # # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2024 <contributor> # set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) set name=pkg.human-version value=$(HUMAN_VERSION) set name=pkg.summary value="$(COMPONENT_SUMMARY)" set name=info.classification value="$(COMPONENT_CLASSIFICATION)" set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) set name=org.opensolaris.consolidation value=$(CONSOLIDATION) license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' file path=usr/sbin/loaderinfo file path=usr/sbin/mtx file path=usr/sbin/scsieject file path=usr/sbin/scsitape file path=usr/sbin/tapeinfo file path=usr/share/man/man1/loaderinfo.1 file path=usr/share/man/man1/mtx.1 file path=usr/share/man/man1/scsieject.1 file path=usr/share/man/man1/scsitape.1 file path=usr/share/man/man1/tapeinfo.1 components/sysutils/mtx/mtx.p5m
New file @@ -0,0 +1,35 @@ # # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2024 Carsten Grzemba # set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) set name=pkg.human-version value=$(HUMAN_VERSION) set name=pkg.summary value="$(COMPONENT_SUMMARY)" set name=info.classification value="$(COMPONENT_CLASSIFICATION)" set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) set name=org.opensolaris.consolidation value=$(CONSOLIDATION) license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' file path=usr/sbin/loaderinfo file path=usr/sbin/mtx file path=usr/sbin/scsieject file path=usr/sbin/scsitape file path=usr/sbin/tapeinfo file path=usr/share/man/man1/loaderinfo.1 file path=usr/share/man/man1/mtx.1 file path=usr/share/man/man1/scsieject.1 file path=usr/share/man/man1/scsitape.1 file path=usr/share/man/man1/tapeinfo.1 components/sysutils/mtx/patches/01-destdir.patch
New file @@ -0,0 +1,32 @@ make install do not support DESTDIR variable diff --git a/Makefile.in b/Makefile.in index 6b967cf..d97319d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -33,6 +33,7 @@ INSTALL_DOC = $(INSTALL) -m 644 INSTALL_BIN = $(INSTALL) -m 755 INSTALL_DIR = $(INSTALL) -m 755 -d +DESTDIR = prefix = @prefix@ exec_prefix = @exec_prefix@ sbindir = @sbindir@ @@ -109,13 +110,13 @@ all: $(BINS) dbgs: $(DBGS) install: $(BINS) - $(INSTALL_DIR) $(sbindir) + $(INSTALL_DIR) $(DESTDIR)$(sbindir) for file in $(BINS); do \ - $(INSTALL_BIN) "$$file" $(sbindir) ; \ + $(INSTALL_BIN) "$$file" $(DESTDIR)$(sbindir) ; \ done - $(INSTALL_DIR) $(mandir) $(mandir)/man1 + $(INSTALL_DIR) $(mandir) $(DESTDIR)$(mandir)/man1 for file in mtx.1 tapeinfo.1 scsitape.1 scsieject.1 loaderinfo.1 ; do \ - $(INSTALL_DOC) "$$file" $(mandir)/man1 ; \ + $(INSTALL_DOC) $(srcdir)/"$$file" $(DESTDIR)$(mandir)/man1 ; \ done clean: components/sysutils/mtx/pkg5
New file @@ -0,0 +1,9 @@ { "dependencies": [ "system/library" ], "fmris": [ "media/mtx" ], "name": "mtx" }