commit c3498a4f2a276b343060b2a579c6f2e46b6e28bf Author: Jay Larson Date: Tue Jul 24 18:26:42 2018 -0500 First check in diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5522d30 --- /dev/null +++ b/Makefile @@ -0,0 +1,70 @@ +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation here: +# (http://www.gnu.org/licenses/gpl-2.0.html) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +DEPENDS = glibc +ARCH = x86_64 +URL = http://www.nongnu.org/dmidecode/ +REPO = main +BRIEF = Retreives information about your system hardware +DESC = Dmidecode reports information about your system hardware as \ +described in your system BIOS +SNAPVER = 0 + +ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) +TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') +SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') +PATCHDIR := $(PWD)/SRC/patches +VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER) + +include /usr/share/snap/Makefile.snaplinux + +$(SRCDIR)/Makefile: $(ARCHIVE) + @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ + tar -jxf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-gzip' ]; then \ + tar -zxf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-tar' ]; then \ + tar -xf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-xz' ]; then \ + tar -xf $(ARCHIVE); \ + else \ + echo 'Unable to determine archive type'; \ + exit 1; \ + fi + @touch $(SRCDIR)/Makefile + +$(SRCDIR)/dmidecode: $(SRCDIR)/Makefile + @cd $(SRCDIR) && \ + for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \ + patch --verbose -Np1 -i $$patch; \ + done + + @cd $(SRCDIR) && make + +$(ROOT): $(SRCDIR)/dmidecode + @if [ -d $(ROOT) ]; then \ + touch $(ROOT); \ + else \ + mkdir -v $(ROOT); \ + fi + + @cd $(SRCDIR) && make install DESTDIR=$(ROOT) + +test: $(ROOT) + @cd $(SRCDIR); \ + make check + +clean: + @rm -rvf $(ROOT) \ + $(SNAPINFO) \ + $(MANIFEST) \ + $(FILES) \ + $(SRCDIR) + diff --git a/SNAP/README b/SNAP/README new file mode 100644 index 0000000..cb756b1 --- /dev/null +++ b/SNAP/README @@ -0,0 +1,5 @@ +This is the directory where the manifest, snapinfo, +and files.tar.gz files will be created. It is also +where the usher file should be placed if it is +required by the package. Any other files that need +to be included could also be placed here. diff --git a/SNAP/files.tar.gz b/SNAP/files.tar.gz new file mode 100644 index 0000000..76fb885 Binary files /dev/null and b/SNAP/files.tar.gz differ diff --git a/SNAP/manifest b/SNAP/manifest new file mode 100644 index 0000000..e1b0aeb --- /dev/null +++ b/SNAP/manifest @@ -0,0 +1,19 @@ +e2d50965885745fdd72b4f4baa4679f4bb02260f -rw-r--r-- usr/local/share/man/man8/vpddecode.8 +1c29def0efa82d7a370c89b864acb5d3ecab0428 -rw-r--r-- usr/local/share/man/man8/ownership.8 +ba5b4e52bf233f5cb7f54df84a2d533fa6851e7d -rw-r--r-- usr/local/share/man/man8/dmidecode.8 +0d15561fa3bac68eac713cb33f7fff78a18a8eeb -rw-r--r-- usr/local/share/man/man8/biosdecode.8 +________________________________________ drwxr-xr-x usr/local/share/man/man8 +________________________________________ drwxr-xr-x usr/local/share/man +085e35b29dc4685eb903e4e6ab0b6f430b9aa440 -rw-r--r-- usr/local/share/doc/dmidecode/README +b6e6b2b277d0ef667c03f9e98122a5a09ea4f6b6 -rw-r--r-- usr/local/share/doc/dmidecode/CHANGELOG +2ce5d4ee2e6e7123e4bf7d2167922cd5c54baa98 -rw-r--r-- usr/local/share/doc/dmidecode/AUTHORS +________________________________________ drwxr-xr-x usr/local/share/doc/dmidecode +________________________________________ drwxr-xr-x usr/local/share/doc +________________________________________ drwxr-xr-x usr/local/share +d2a3a2109877a74bfbe61ed41664ee773a9dbef6 -rwxr-xr-x usr/local/sbin/vpddecode +9a2fc49651ec2cc8873a8cfc75fb446ee52c1a4c -rwxr-xr-x usr/local/sbin/ownership +878652e221453291384aebddb59decf0fa9fc250 -rwxr-xr-x usr/local/sbin/dmidecode +e759a6e2b064f7fa86d96279b1a1658088521ac8 -rwxr-xr-x usr/local/sbin/biosdecode +________________________________________ drwxr-xr-x usr/local/sbin +________________________________________ drwxr-xr-x usr/local +________________________________________ drwxr-xr-x usr diff --git a/SNAP/snapinfo b/SNAP/snapinfo new file mode 100644 index 0000000..16241f8 --- /dev/null +++ b/SNAP/snapinfo @@ -0,0 +1,12 @@ +name: dmidecode +version: 3.1-0 +arch: x86_64 +depends: glibc +builddeps: +srcpkg: dmidecode +bytes: 215040 +url: http://www.nongnu.org/dmidecode/ +repo: main +sha256man: 563ace822cc45894a0d17e5a543cd51bfc7454b6062e347046cc13f25e372257 +brief: Retreives information about your system hardware +description: Dmidecode reports information about your system hardware as described in your system BIOS diff --git a/SRC/dmidecode-3.1.tar.xz b/SRC/dmidecode-3.1.tar.xz new file mode 100644 index 0000000..f97792e Binary files /dev/null and b/SRC/dmidecode-3.1.tar.xz differ diff --git a/SRC/dmidecode-3.1.tar.xz.sig b/SRC/dmidecode-3.1.tar.xz.sig new file mode 100644 index 0000000..34c5a61 Binary files /dev/null and b/SRC/dmidecode-3.1.tar.xz.sig differ diff --git a/SRC/patches/README b/SRC/patches/README new file mode 100644 index 0000000..976577a --- /dev/null +++ b/SRC/patches/README @@ -0,0 +1,3 @@ +Place any patch files here and preface each with a +number indicating the order of execution. Patch +files are expected to use a .patch extension.