update to dmidecode-3.0

This commit is contained in:
sthen 2015-09-08 19:31:15 +00:00
parent a14f2f481a
commit 2e2f45eb79
3 changed files with 19 additions and 32 deletions

View File

@ -1,20 +1,24 @@
# $OpenBSD: Makefile,v 1.8 2013/06/27 21:17:50 jasper Exp $
# $OpenBSD: Makefile,v 1.9 2015/09/08 19:31:15 sthen Exp $
ONLY_FOR_ARCHS= amd64 i386
COMMENT= dump DMI/SMBIOS contents in human-readable format
DISTNAME= dmidecode-2.12
DISTNAME= dmidecode-3.0
CATEGORIES= sysutils
MASTER_SITES= http://savannah.nongnu.org/download/dmidecode/
HOMEPAGE= http://www.nongnu.org/dmidecode/
# GPL
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
NO_TEST= Yes
WANTLIB= c
MAKE_FLAGS= CC="${CC}"
FAKE_FLAGS= DESTDIR="${WRKINST}" prefix="${WRKINST}${PREFIX}" \
mandir="${WRKINST}${PREFIX}/man"
NO_TEST= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dmidecode/
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dmidecode/

View File

@ -1,2 +1,2 @@
SHA256 (dmidecode-2.12.tar.gz) = WoIUuZwXYvRRC9krqieTNuX+1uXNLkGNRtlaTsx4OSI=
SIZE (dmidecode-2.12.tar.gz) = 68064
SHA256 (dmidecode-3.0.tar.gz) = aY0gnsgfiLJoXgeUPNYeGsEl2PSz8/Isd38xilbZTt8=
SIZE (dmidecode-3.0.tar.gz) = 71373

View File

@ -1,15 +1,15 @@
--- Makefile.orig Sat Feb 16 19:55:52 2008
+++ Makefile Wed Jan 7 12:11:35 2009
@@ -8,25 +8,25 @@
# Licensed under the GNU Public License.
--- Makefile.orig Thu Sep 3 08:03:19 2015
+++ Makefile Tue Sep 8 21:22:53 2015
@@ -13,7 +13,7 @@
#
-CC = gcc
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
# Let lseek and mmap support 64-bit wide offsets
@@ -23,7 +23,7 @@ CFLAGS += -D_FILE_OFFSET_BITS=64
#CFLAGS += -DALIGNMENT_WORKAROUND
# When debugging, disable -O2 and enable -g.
@ -18,24 +18,7 @@
#CFLAGS += -g
# Pass linker flags here
-LDFLAGS =
+LDFLAGS +=
-DESTDIR =
-prefix = /usr/local
-sbindir = $(prefix)/sbin
-mandir = $(prefix)/share/man
+#DESTDIR =
+#prefix = /usr/local
+sbindir = $(PREFIX)/sbin
+mandir = $(PREFIX)/man
man8dir = $(mandir)/man8
-docdir = $(prefix)/share/doc/dmidecode
+docdir = $(PREFIX)/share/doc/dmidecode
INSTALL := install
INSTALL_DATA := $(INSTALL) -m 644
@@ -100,28 +100,28 @@
@@ -114,28 +114,28 @@ install : install-bin install-man install-doc
uninstall : uninstall-bin uninstall-man uninstall-doc
install-bin : $(PROGRAMS)