summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-29 04:09:01 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-29 04:09:01 +0300
commitf2960c7999bd68b22423598d43bc6ec5603e830b (patch)
tree579f44b017d0930ced060520b1bab751d1fef1df
parent92748d3da5c8f1c3079516e4d582f1a123582f28 (diff)
mtx added
-rw-r--r--metadata/categories.conf1
-rw-r--r--packages/sys-block/mtx/files/destdir.patch26
-rw-r--r--packages/sys-block/mtx/mtx-1.3.12.exheres-06
-rw-r--r--packages/sys-block/mtx/mtx.exlib15
4 files changed, 48 insertions, 0 deletions
diff --git a/metadata/categories.conf b/metadata/categories.conf
index 88ff033..dbc3666 100644
--- a/metadata/categories.conf
+++ b/metadata/categories.conf
@@ -8,4 +8,5 @@ net-libs
net-misc
net-print
net-vpn
+sys-block
sys-devel
diff --git a/packages/sys-block/mtx/files/destdir.patch b/packages/sys-block/mtx/files/destdir.patch
new file mode 100644
index 0000000..046a73e
--- /dev/null
+++ b/packages/sys-block/mtx/files/destdir.patch
@@ -0,0 +1,26 @@
+Source: written by Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+Reason: added support for $DESTDIR to Makefile.in
+Upstream: not submitted, feel free to do it
+
+
+diff -Naur mtx-1.3.12/Makefile.in mtx-1.3.12_patched/Makefile.in
+--- mtx-1.3.12/Makefile.in 2008-08-19 09:26:37.000000000 +0000
++++ mtx-1.3.12_patched/Makefile.in 2018-07-29 01:04:27.675361775 +0000
+@@ -109,13 +109,13 @@
+ 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) "$$file" "${DESTDIR}"/$(mandir)/man1 ; \
+ done
+
+ clean:
diff --git a/packages/sys-block/mtx/mtx-1.3.12.exheres-0 b/packages/sys-block/mtx/mtx-1.3.12.exheres-0
new file mode 100644
index 0000000..e192f37
--- /dev/null
+++ b/packages/sys-block/mtx/mtx-1.3.12.exheres-0
@@ -0,0 +1,6 @@
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+# Distributed under the terms of the GNU General Public License v2
+
+require mtx
+
+PLATFORMS="amd64 ~amd64 x86 ~x86"
diff --git a/packages/sys-block/mtx/mtx.exlib b/packages/sys-block/mtx/mtx.exlib
new file mode 100644
index 0000000..171a560
--- /dev/null
+++ b/packages/sys-block/mtx/mtx.exlib
@@ -0,0 +1,15 @@
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+# Distributed under the terms of the GNU General Public License v2
+
+require sourceforge [ suffix=tar.gz ]
+require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
+
+SUMMARY="Utilities for controlling SCSI media changers and tape drives"
+LICENCES="GPL-2"
+SLOT="0"
+MYOPTIONS=""
+
+DEFAULT_SRC_PREPARE_PATCHES=(
+ "${FILES}"/destdir.patch
+)
+