Update 2024-01-21 21:52 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-01-21 21:52:56 +01:00
parent c60e153c40
commit f58efc8e88
7 changed files with 238 additions and 0 deletions

23
.bin/port-info Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
if [ -z "$1" ]
then
echo "usage: $(basename $0) <portsdir>"
exit 2
fi
if [ ! -d "/usr/ports/$1/pkg" ]
then
echo "not a ports dir"
exit 1
fi
cd /usr/ports/$1
make show="COMMENT FULLPKGNAME HOMEPAGE SITES MAINTAINER DESCR" \
| tr -s " " \
| awk 'NR == 1 { print "Comment: "$0 } \
NR == 2 { print "Distname: "$0 } \
NR == 3 { print "Homepage: "$0 } \
NR == 5 { print "Maintainer: "$0"\n" } \
NR == 6 { system("/bin/cat " $0); }'