mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
Ports: Add a port of dmidecode
This commit is contained in:
parent
c6fe1de30e
commit
a9d1ddb1a5
3 changed files with 77 additions and 0 deletions
24
Ports/dmidecode/package.sh
Executable file
24
Ports/dmidecode/package.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=dmidecode
|
||||
version=3.1
|
||||
useconfigure=false
|
||||
prefix=
|
||||
files="https://download.savannah.gnu.org/releases/dmidecode/dmidecode-${version}.tar.xz dmidecode-${version}.tar.xz
|
||||
https://download.savannah.gnu.org/releases/dmidecode/dmidecode-${version}.tar.xz.sig dmidecode-${version}.tar.xz.sig
|
||||
https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
|
||||
auth_type="sig"
|
||||
auth_import_key="90DFD6523C57373D81F63D19865688D038F02FC8"
|
||||
auth_opts="--keyring ./gnu-keyring.gpg dmidecode-${version}.tar.xz.sig"
|
||||
|
||||
install() {
|
||||
run make clean
|
||||
run make CC=i686-pc-serenity-gcc
|
||||
}
|
||||
|
||||
post_install() {
|
||||
mkdir -p $SERENITY_ROOT/Build/Root/bin
|
||||
run make install-bin DESTDIR=$SERENITY_ROOT/Build/Root/
|
||||
ln -s /usr/local/sbin/dmidecode $SERENITY_ROOT/Build/Root/bin/dmidecode
|
||||
ln -s /usr/local/sbin/biosdecode $SERENITY_ROOT/Build/Root/bin/biosdecode
|
||||
ln -s /usr/local/sbin/vpddecode $SERENITY_ROOT/Build/Root/bin/vpddecode
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue