First check in
This commit is contained in:
70
Makefile
Normal file
70
Makefile
Normal file
@@ -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)
|
||||
|
||||
5
SNAP/README
Normal file
5
SNAP/README
Normal file
@@ -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.
|
||||
BIN
SNAP/files.tar.gz
Normal file
BIN
SNAP/files.tar.gz
Normal file
Binary file not shown.
19
SNAP/manifest
Normal file
19
SNAP/manifest
Normal file
@@ -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
|
||||
12
SNAP/snapinfo
Normal file
12
SNAP/snapinfo
Normal file
@@ -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
|
||||
BIN
SRC/dmidecode-3.1.tar.xz
Normal file
BIN
SRC/dmidecode-3.1.tar.xz
Normal file
Binary file not shown.
BIN
SRC/dmidecode-3.1.tar.xz.sig
Normal file
BIN
SRC/dmidecode-3.1.tar.xz.sig
Normal file
Binary file not shown.
3
SRC/patches/README
Normal file
3
SRC/patches/README
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user