First check in
This commit is contained in:
80
Makefile
Normal file
80
Makefile
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
# 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,ncurses,openssl,readline
|
||||||
|
ARCH = x86_64
|
||||||
|
URL = https://sourceforge.net/projects/ipmitool/
|
||||||
|
REPO = main
|
||||||
|
BRIEF = Manage IPMI devices
|
||||||
|
DESC = IPMItool provides a simple command-line interface to IPMI-enabled \
|
||||||
|
devices through an IPMIv1.5 or IPMIv2.0 LAN interface or Linux/Solaris kernel \
|
||||||
|
driver
|
||||||
|
SNAPVER = 1
|
||||||
|
|
||||||
|
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)/configure: $(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)/configure
|
||||||
|
|
||||||
|
$(SRCDIR)/config.log: $(SRCDIR)/configure
|
||||||
|
@cd $(SRCDIR) && \
|
||||||
|
for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \
|
||||||
|
patch --verbose -Np1 -i $$patch; \
|
||||||
|
done
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--program-prefix= \
|
||||||
|
--program-suffix= \
|
||||||
|
--build=x86_64-snap-linux-gnu \
|
||||||
|
--host=x86_64-snap-linux-gnu \
|
||||||
|
--target=x86_64-snap-linux-gnu
|
||||||
|
|
||||||
|
$(SRCDIR)/binfile: $(SRCDIR)/config.log
|
||||||
|
@cd $(SRCDIR) && make
|
||||||
|
|
||||||
|
$(ROOT): $(SRCDIR)/binfile
|
||||||
|
@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 @@
|
|||||||
|
45c6de6f173d475a9f12288889d3e024ef166fa5 -rw-r--r-- usr/share/man/man8/ipmievd.8.gz
|
||||||
|
________________________________________ drwxr-xr-x usr/share/man/man8
|
||||||
|
ca972c5211eaceeef3be705cedcc9f4dafda8d61 -rw-r--r-- usr/share/man/man1/ipmitool.1.gz
|
||||||
|
________________________________________ drwxr-xr-x usr/share/man/man1
|
||||||
|
________________________________________ drwxr-xr-x usr/share/man
|
||||||
|
edfee6d83026de413b778e3fa87d3c2c45cd783c -rw-r--r-- usr/share/ipmitool/oem_ibm_sel_map
|
||||||
|
________________________________________ drwxr-xr-x usr/share/ipmitool
|
||||||
|
10495893893b0d952182ac9e29a03e2ea459aa29 -rw-r--r-- usr/share/doc/ipmitool/README
|
||||||
|
478a90f52db0a0dcf49c9486d725984bacc0dab3 -rw-r--r-- usr/share/doc/ipmitool/ChangeLog
|
||||||
|
4193a874862867b180608c3297b0239cc883b7d2 -rw-r--r-- usr/share/doc/ipmitool/COPYING
|
||||||
|
4d1e9e019f21f05ac5fb0f1af16eca0dd4d5b409 -rw-r--r-- usr/share/doc/ipmitool/AUTHORS
|
||||||
|
________________________________________ drwxr-xr-x usr/share/doc/ipmitool
|
||||||
|
________________________________________ drwxr-xr-x usr/share/doc
|
||||||
|
________________________________________ drwxr-xr-x usr/share
|
||||||
|
ae4cf4484a70ded7ae721fb5d2b1072411504dfe -rwxr-xr-x usr/sbin/ipmievd
|
||||||
|
________________________________________ drwxr-xr-x usr/sbin
|
||||||
|
ca0211dbdabed4f91a48746508a1b4672bd0ea69 -rwxr-xr-x usr/bin/ipmitool
|
||||||
|
________________________________________ drwxr-xr-x usr/bin
|
||||||
|
________________________________________ drwxr-xr-x usr
|
||||||
12
SNAP/snapinfo
Normal file
12
SNAP/snapinfo
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
name: ipmitool
|
||||||
|
version: 1.8.18-1
|
||||||
|
arch: x86_64
|
||||||
|
depends: glibc,ncurses,openssl,readline
|
||||||
|
builddeps:
|
||||||
|
srcpkg: ipmitool
|
||||||
|
bytes: 1413120
|
||||||
|
url: https://sourceforge.net/projects/ipmitool/
|
||||||
|
repo: main
|
||||||
|
sha256man: 6dcb079617879b8190d6f4979f8ecdbdcf080a7cc77dbdf8fd5d51bb7ff7a749
|
||||||
|
brief: Manage IPMI devices
|
||||||
|
description: IPMItool provides a simple command-line interface to IPMI-enabled devices through an IPMIv1.5 or IPMIv2.0 LAN interface or Linux/Solaris kernel driver
|
||||||
BIN
SRC/ipmitool-1.8.18.tar.bz2
Normal file
BIN
SRC/ipmitool-1.8.18.tar.bz2
Normal file
Binary file not shown.
1
SRC/ipmitool-1.8.18.tar.bz2.sha1
Normal file
1
SRC/ipmitool-1.8.18.tar.bz2.sha1
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ff4781bb78f264d44fa4bf1767f268d4079d87ba
|
||||||
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