main/keepfileopen: drop

Its only consumer is now vendoring it

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7495>
This commit is contained in:
Pablo Correa Gómez 2025-12-06 17:06:36 +01:00 committed by The Friendly Merge Bot
parent 7e145bad88
commit 4e071ba624
No known key found for this signature in database
2 changed files with 0 additions and 40 deletions

View file

@ -1,21 +0,0 @@
# Maintainer: Minecrell <minecrell@minecrell.net>
pkgname=keepfileopen
pkgver=1
pkgrel=1
pkgdesc="Small utility to keep a file open. Yes, that's all it does :)"
url="https://postmarketos.org"
arch="all"
license="MIT"
source="keepfileopen.c"
options="!check" # No tests. Not much can go wrong here...
builddir="$srcdir"
build() {
gcc -o keepfileopen keepfileopen.c
}
package() {
install -Dm755 keepfileopen "$pkgdir"/usr/bin/keepfileopen
}
sha512sums="ac9ed0f6ec07ef813ce3a539919acbe8a5a70d5765a5fff267674a3fb239cdb1dba58a14d72a64f990bdcb87c6476d30ef7add21f152df7cb48e36932ef14dbb keepfileopen.c"

View file

@ -1,19 +0,0 @@
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
if (argc != 2) {
fprintf(stderr, "Usage: keepfileopen <file>\n");
return EXIT_FAILURE;
}
if (open(argv[1], O_RDONLY) < 0) {
perror("Failed to open file");
return EXIT_FAILURE;
}
pause();
return EXIT_SUCCESS;
}