forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openbsd: many new small packages (NixOS#371699)
- Loading branch information
Showing
70 changed files
with
531 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "usr.bin/cap_mkdb"; | ||
meta.mainProgram = "cap_mkdb"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/cat"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/bin/chmod/Makefile b/bin/chmod/Makefile | ||
index 82854bae3a3..39813dc8882 100644 | ||
--- a/bin/chmod/Makefile | ||
+++ b/bin/chmod/Makefile | ||
@@ -3,17 +3,8 @@ | ||
PROG= chmod | ||
MAN= chmod.1 chgrp.1 chown.8 chflags.1 | ||
LINKS= ${BINDIR}/chmod ${BINDIR}/chgrp \ | ||
- ${BINDIR}/chmod /sbin/chown | ||
- | ||
-# XXX compatibility | ||
-afterinstall: | ||
- (cd ${DESTDIR}/usr/sbin && \ | ||
- ln -sf ../../sbin/chown . && \ | ||
- ln -sf ../../bin/chgrp . && \ | ||
- chown -h ${BINOWN}:${BINGRP} chown chgrp) | ||
- (cd ${DESTDIR}/usr/bin && \ | ||
- ln -sf ../../bin/chmod chflags && \ | ||
- chown -h ${BINOWN}:${BINGRP} chflags) | ||
+ ${BINDIR}/chmod ${BINDIR}/chown \ | ||
+ ${BINDIR}/chmod ${BINDIR}/chflags | ||
|
||
|
||
.include <bsd.prog.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/chmod"; | ||
|
||
patches = [ ./no-sbin.patch ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "usr.bin/cmp"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/cp"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/date"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/dd"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "usr.sbin/dev_mkdb"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/df"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "usr.sbin/dhcpleasectl"; | ||
|
||
extraPaths = [ "sbin/dhcpleased" ]; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
mkDerivation, | ||
libevent, | ||
byacc, | ||
}: | ||
mkDerivation { | ||
path = "sbin/dhcpleased"; | ||
|
||
postPatch = '' | ||
sed -i 's/DPADD/#DPADD/' $BSDSRCDIR/sbin/dhcpleased/Makefile | ||
''; | ||
|
||
buildInputs = [ libevent ]; | ||
extraNativeBuildInputs = [ byacc ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ mkDerivation, libkvm }: | ||
mkDerivation { | ||
path = "sbin/dmesg"; | ||
|
||
buildInputs = [ libkvm ]; | ||
|
||
postPatch = '' | ||
sed -i /DPADD/d $BSDSRCDIR/sbin/dmesg/Makefile | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/domainname"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/echo"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/ed"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/expr"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ mkDerivation }: mkDerivation { path = "usr.bin/getent"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
mkDerivation, | ||
login, | ||
}: | ||
mkDerivation { | ||
path = "libexec/getty"; | ||
extraPaths = [ "etc/gettytab" ]; | ||
|
||
postPatch = '' | ||
substituteInPlace $BSDSRCDIR/libexec/getty/pathnames.h \ | ||
--replace-fail "/usr/libexec/getty" "$out/bin/getty" \ | ||
--replace-fail "/usr/bin/login" "${login}/bin/login" | ||
''; | ||
|
||
postInstall = '' | ||
mkdir -p $out/etc | ||
cp $BSDSRCDIR/etc/gettytab $out/etc/gettytab | ||
''; | ||
|
||
meta.mainProgram = "getty"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/hostname"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
mkDerivation, | ||
}: | ||
mkDerivation { | ||
path = "usr.bin/id"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "sbin/ifconfig"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "usr.bin/kdump"; | ||
extraPaths = [ | ||
"sys" | ||
"usr.bin/ktrace" | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/kill"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "usr.bin/ktrace"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "usr.sbin/kvm_mkdb"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
lib, | ||
mkDerivation, | ||
buildPackages, | ||
}: | ||
mkDerivation { | ||
path = "lib/libcurses"; | ||
|
||
makeFlags = [ | ||
"AWK=${lib.getBin buildPackages.gawk}/bin/awk" | ||
"HOSTCC=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc" | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "lib/libevent"; | ||
preInstall = '' | ||
mkdir -p $out/include | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
lib, | ||
mkDerivation, | ||
}: | ||
|
||
mkDerivation { | ||
path = "gnu/lib/libexecinfo"; | ||
extraPaths = [ | ||
"gnu/llvm/libunwind" | ||
"gnu/llvm/libcxx" | ||
"gnu/lib/libcxx" | ||
]; | ||
|
||
libcMinimal = true; | ||
|
||
outputs = [ | ||
"out" | ||
"man" | ||
]; | ||
|
||
meta.platforms = lib.platforms.openbsd; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
mkDerivation, | ||
}: | ||
mkDerivation { | ||
path = "lib/libkvm"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/ln"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
mkDerivation, | ||
libutil, | ||
}: | ||
mkDerivation { | ||
path = "usr.bin/login"; | ||
buildInputs = [ | ||
libutil | ||
]; | ||
|
||
meta.mainProgram = "login"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
mkDerivation, | ||
}: | ||
mkDerivation { | ||
path = "libexec/login_passwd"; | ||
|
||
postPatch = '' | ||
sed -i 's/4555/0555/' $BSDSRCDIR/libexec/login_passwd/Makefile | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/ls"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/md5"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/mkdir"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
mkDerivation, | ||
}: | ||
|
||
mkDerivation { | ||
path = "sbin/mount"; | ||
meta.mainProgram = "mount"; | ||
patches = [ ./search-path.patch ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c | ||
index eaff190b572..4bce21559f6 100644 | ||
--- a/sbin/mount/mount.c | ||
+++ b/sbin/mount/mount.c | ||
@@ -338,12 +338,6 @@ mountfs(const char *vfstype, const char *spec, const char *name, | ||
{ | ||
char *cp; | ||
|
||
- /* List of directories containing mount_xxx subcommands. */ | ||
- static const char *edirs[] = { | ||
- _PATH_SBIN, | ||
- _PATH_USRSBIN, | ||
- NULL | ||
- }; | ||
const char **argv, **edir; | ||
struct statfs sf; | ||
pid_t pid; | ||
@@ -427,15 +421,12 @@ mountfs(const char *vfstype, const char *spec, const char *name, | ||
return (1); | ||
case 0: /* Child. */ | ||
/* Go find an executable. */ | ||
- edir = edirs; | ||
- do { | ||
- (void)snprintf(execname, | ||
- sizeof(execname), "%s/mount_%s", *edir, vfstype); | ||
- argv[0] = execname; | ||
- execv(execname, (char * const *)argv); | ||
- if (errno != ENOENT) | ||
- warn("exec %s for %s", execname, name); | ||
- } while (*++edir != NULL); | ||
+ (void)snprintf(execname, | ||
+ sizeof(execname), "mount_%s", vfstype); | ||
+ argv[0] = execname; | ||
+ execvp(execname, (char * const *)argv); | ||
+ if (errno != ENOENT) | ||
+ warn("exec %s for %s", execname, name); | ||
|
||
if (errno == ENOENT) | ||
warn("no mount helper program found for %s", vfstype); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
mkDerivation, | ||
}: | ||
|
||
mkDerivation { | ||
path = "sbin/mount_ffs"; | ||
extraPaths = [ "sbin/mount" ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
mkDerivation, | ||
}: | ||
|
||
mkDerivation { | ||
path = "sbin/mount_tmpfs"; | ||
extraPaths = [ "sbin/mount" ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/mt"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
mkDerivation, | ||
}: | ||
mkDerivation { | ||
path = "usr.sbin/mtree"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "bin/mv"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ mkDerivation }: | ||
mkDerivation { | ||
path = "usr.bin/newsyslog"; | ||
} |
Oops, something went wrong.