diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-10-22 18:26:51 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-10-22 18:26:51 +0200 |
commit | 2b52e67da00817f93884a344a9a8b7e2c585fc8c (patch) | |
tree | caa9c494197016efa62412c2483e36f011b2d392 /package/dmidecode | |
parent | e8f74f7222ddc977bf775e31101980b9311b7200 (diff) | |
parent | 48b18373159b70caca3f41643804c549552d66f4 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/dmidecode')
-rw-r--r-- | package/dmidecode/Makefile | 26 | ||||
-rw-r--r-- | package/dmidecode/patches/patch-Makefile | 22 | ||||
-rw-r--r-- | package/dmidecode/patches/patch-Makefile.orig | 20 |
3 files changed, 68 insertions, 0 deletions
diff --git a/package/dmidecode/Makefile b/package/dmidecode/Makefile new file mode 100644 index 000000000..4c037298c --- /dev/null +++ b/package/dmidecode/Makefile @@ -0,0 +1,26 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= dmidecode +PKG_VERSION:= 2.11 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 9fddbbc3e330bee5950b8b5d424a57cb +PKG_DESCR:= reports information about your system's hardware +PKG_SECTION:= misc +PKG_URL:= http://www.nongnu.org/dmidecode/ +PKG_SITES:= http://download.savannah.gnu.org/releases/dmidecode/ + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,DMIDECODE,dmidecode,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIG_STYLE:= manual + +dmidecode-install: + $(INSTALL_DIR) $(IDIR_DMIDECODE)/usr/sbin + $(INSTALL_BIN) $(WRKINST)/usr/sbin/dmidecode \ + $(IDIR_DMIDECODE)/usr/sbin + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/dmidecode/patches/patch-Makefile b/package/dmidecode/patches/patch-Makefile new file mode 100644 index 000000000..cf37262cb --- /dev/null +++ b/package/dmidecode/patches/patch-Makefile @@ -0,0 +1,22 @@ +--- dmidecode-2.11.orig/Makefile 2010-10-11 16:08:16.000000000 +0200 ++++ dmidecode-2.11/Makefile 2011-10-17 19:22:27.000000000 +0200 +@@ -12,8 +12,8 @@ + # (at your option) any later version. + # + +-CC = gcc +-CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ ++CC ?= gcc ++CFLAGS ?= -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ + -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef + #CFLAGS += -DBIGENDIAN + #CFLAGS += -DALIGNMENT_WORKAROUND +@@ -26,7 +26,7 @@ CFLAGS += -O2 + LDFLAGS = + + DESTDIR = +-prefix = /usr/local ++prefix = /usr + sbindir = $(prefix)/sbin + mandir = $(prefix)/share/man + man8dir = $(mandir)/man8 diff --git a/package/dmidecode/patches/patch-Makefile.orig b/package/dmidecode/patches/patch-Makefile.orig new file mode 100644 index 000000000..fcd3c6dd7 --- /dev/null +++ b/package/dmidecode/patches/patch-Makefile.orig @@ -0,0 +1,20 @@ +--- dmidecode-2.11.orig/Makefile 2010-10-11 16:08:16.000000000 +0200 ++++ dmidecode-2.11/Makefile 2011-10-17 19:21:58.000000000 +0200 +@@ -12,7 +12,7 @@ + # (at your option) any later version. + # + +-CC = gcc ++CC ?= gcc + CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ + -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef + #CFLAGS += -DBIGENDIAN +@@ -26,7 +26,7 @@ CFLAGS += -O2 + LDFLAGS = + + DESTDIR = +-prefix = /usr/local ++prefix = /usr + sbindir = $(prefix)/sbin + mandir = $(prefix)/share/man + man8dir = $(mandir)/man8 |