Ports: Add dosfstools port

This commit is contained in:
Liav A 2022-10-15 07:05:55 +03:00 committed by Linus Groh
parent f70ec7582f
commit 6bb738c1b3
Notes: sideshowbarker 2024-07-17 05:46:11 +09:00
3 changed files with 21 additions and 0 deletions

View File

@ -42,6 +42,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`doom`](doom/) | DOOM | | https://github.com/SerenityOS/SerenityDOOM |
| [`dos2unix`](dos2unix/) | dos2unix | 7.4.3 | https://waterlan.home.xs4all.nl/dos2unix.html |
| [`dosbox-staging`](dosbox-staging/) | DOSBox Staging | 0.76.0 | https://dosbox-staging.github.io/ |
| [`dosfstools`](dosfstools/) | dosfstools utility suite | 4.2 | https://github.com/dosfstools/dosfstools/ |
| [`drascula`](drascula/) | Dráscula: The Vampire Strikes Back | 1.0 | https://www.scummvm.org/games/#games-drascula |
| [`dreamweb`](dreamweb/) | DreamWeb | 1.1 | https://www.scummvm.org/games/#games-dreamweb |
| [`dropbear`](dropbear/) | Dropbear SSH | 2022.82 | https://dropbear.nl/mirror/dropbear.html |

17
Ports/dosfstools/package.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='dosfstools'
version='4.2'
useconfigure='true'
use_fresh_config_sub='true'
config_sub_paths=('config.sub')
files="https://github.com/dosfstools/dosfstools/releases/download/v${version}/dosfstools-${version}.tar.gz dosfstools-${version}.tar.gz 64926eebf90092dca21b14259a5301b7b98e7b1943e8a201c7d726084809b527"
auth_type='sha256'
pre_configure() {
run ./autogen.sh
}
post_install() {
ln -sf /usr/local/sbin/mkfs.fat "${SERENITY_INSTALL_ROOT}/usr/local/sbin/mkfs.vfat"
ln -sf /usr/local/sbin/mkfs.fat "${SERENITY_INSTALL_ROOT}/usr/local/sbin/mkfs.msdos"
}

View File

@ -8,3 +8,6 @@
// FIXME: This is just a default value to satisfy OpenSSH, feel free to change it.
#define _PATH_MAILDIR "/var/mail"
// Deprecated definition for dosfstools port.
#define _PATH_MOUNTED "/etc/mtab"