summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-05 21:50:41 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-05 21:50:41 (EST)
commit31376ad7324139201072914fc85d95f11e0dc196 (patch)
tree7b8f233efde6d3358ca4ad55d47b3b5d31e7a7e2
Initial commit
-rw-r--r--.gitignore9
-rwxr-xr-xbuild24
-rw-r--r--changelog5
-rw-r--r--control6
-rw-r--r--copyright34
-rw-r--r--cpuid-doc.pkg/control8
-rw-r--r--cpuid-doc.pkg/files2
-rw-r--r--cpuid.pkg/control6
-rw-r--r--cpuid.pkg/docs0
-rw-r--r--cpuid.pkg/files1
-rw-r--r--format1
-rwxr-xr-xrelease13
-rw-r--r--source.mk8
-rw-r--r--substvars5
14 files changed, 122 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..46688c5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+# Vim swap and other dot files
+.*
+!.gitignore
+
+# Source archives
+*-*.orig.tar.*
+
+# Work area
+tmp/
diff --git a/build b/build
new file mode 100755
index 0000000..8654173
--- /dev/null
+++ b/build
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+ @:
+
+build:
+ # Needs pod2man to generate manual page from Perl script:
+ touch src/cpuinfo2cpuid.man
+ oh-autobuild
+ touch $@
+
+install: build
+ oh-autoinstall -- BUILDROOT="$${PWD}/dest"
+ # Perl script:
+ rm dest/usr/bin/cpuinfo2cpuid
+ rm dest/usr/share/man/man1/cpuinfo2cpuid.1.gz
+ # Useful documentation (-t requires BusyBox >= 1.23.0):
+ install -D -m 0644 -t dest/usr/share/doc/cpuid/ src/FAMILY.NOTES
+ oh-fixperms
+ oh-strip
+ oh-installfiles
+ oh-shlibdeps
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..a813b42
--- /dev/null
+++ b/changelog
@@ -0,0 +1,5 @@
+cpuid (20201006-1) trunk
+
+ * Initial release.
+
+ -- Patrick McDermott <patrick.mcdermott@libiquity.com> Tue, 05 Jan 2021 21:45:00 -0500
diff --git a/control b/control
new file mode 100644
index 0000000..8183c4f
--- /dev/null
+++ b/control
@@ -0,0 +1,6 @@
+Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com>
+Build-Depends:
+ opkbuild (>= 4.2.1),
+ opkhelper-3.0 (>= 3.1.3),
+ busybox (>= 1.23.0)
+Homepage: http://www.etallen.com/cpuid.html
diff --git a/copyright b/copyright
new file mode 100644
index 0000000..c30bbc8
--- /dev/null
+++ b/copyright
@@ -0,0 +1,34 @@
+Upstream Source
+===============
+
+Copyright 2003,2004,2005,2006,2010,2011,2012,2013,2014,2015,2016,2017,2018,
+2020 by Todd Allen.
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+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.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software Foundation, Inc.,
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+On this system, a copy of the GNU General Public License may be found at
+<file:///usr/share/common-licenses/GPL-2>.
+
+
+Distribution Packaging
+======================
+
+Copyright (C) 2019, 2021 Patrick McDermott
+
+These files may be reproduced, distributed, modified, and otherwise dealt in
+under the terms of the Expat License.
+
+On this system, a copy of the Expat License may be found at
+<file:///usr/share/common-licenses/Expat>.
diff --git a/cpuid-doc.pkg/control b/cpuid-doc.pkg/control
new file mode 100644
index 0000000..26eea2b
--- /dev/null
+++ b/cpuid-doc.pkg/control
@@ -0,0 +1,8 @@
+Architecture: all
+Platform: all
+Section: doc
+Depends: cpuid (>= ${Source-Version})
+Description: Tool to dump x86 CPUID information about the CPU(s) - documentation
+ ${Common-Description}
+ .
+ This package provides documentation for the cpuid tool.
diff --git a/cpuid-doc.pkg/files b/cpuid-doc.pkg/files
new file mode 100644
index 0000000..1c01a01
--- /dev/null
+++ b/cpuid-doc.pkg/files
@@ -0,0 +1,2 @@
+/usr/share/man/man1/cpuid.1.gz
+/usr/share/doc/cpuid/FAMILY.NOTES
diff --git a/cpuid.pkg/control b/cpuid.pkg/control
new file mode 100644
index 0000000..240c34e
--- /dev/null
+++ b/cpuid.pkg/control
@@ -0,0 +1,6 @@
+Architecture: any
+Platform: all
+Section: util
+Depends: ${Shlib-Depends}
+Description: Tool to dump x86 CPUID information about the CPU(s)
+ ${Common-Description}
diff --git a/cpuid.pkg/docs b/cpuid.pkg/docs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/cpuid.pkg/docs
diff --git a/cpuid.pkg/files b/cpuid.pkg/files
new file mode 100644
index 0000000..e09f424
--- /dev/null
+++ b/cpuid.pkg/files
@@ -0,0 +1 @@
+/usr/bin/cpuid
diff --git a/format b/format
new file mode 100644
index 0000000..cd5ac03
--- /dev/null
+++ b/format
@@ -0,0 +1 @@
+2.0
diff --git a/release b/release
new file mode 100755
index 0000000..871cb4a
--- /dev/null
+++ b/release
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -eu
+
+read src ver <<-EOF
+ $(sed '1s/^\(.*\) (\(.*\)) .*$/\1 \2/; q;' changelog)
+ EOF
+
+sed '/^ -- .* /{ s/^\( -- .* \).*$/\1'"$(LC_ALL='POSIX' date \
+ '+%a, %d %b %Y %H:%M:%S %z')"'/; :l; n; b l; };' changelog >changelog~
+mv changelog~ changelog
+git commit -m "changelog: Release ${src} ${ver}" -- changelog
+git tag "${src}/${ver}" HEAD
diff --git a/source.mk b/source.mk
new file mode 100644
index 0000000..b8098f8
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,8 @@
+upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).src.tar.gz
+upstream_url = http://www.etallen.com/$(OPK_SOURCE)/$(upstream_archive)
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz
+
+$(source_archive):
+ wget -c -O '$(source_archive)' '$(upstream_url)'
+
+source: $(source_archive)
diff --git a/substvars b/substvars
new file mode 100644
index 0000000..b0fac0d
--- /dev/null
+++ b/substvars
@@ -0,0 +1,5 @@
+Common-Description:
+ cpuid dumps detailed information about the CPU(s) gathered from the CPUID
+ instruction, and also determines the exact model of CPU(s). It supports Intel,
+ AMD, VIA, Hygon, and Zhaoxin CPUs, as well as older Transmeta, Cyrix, UMC,
+ NexGen, Rise, and SiS CPUs.