1
0

license functionality and good, also man-pages-posix2017

This commit is contained in:
dtb 2023-12-05 21:01:07 -07:00
parent 9ba8bc4b64
commit 74f18e34d3
3 changed files with 37 additions and 7 deletions

View File

@ -1,8 +1,13 @@
#!/bin/sh
ARCH=all
DESCRIPTION="Utility that changes apparent MAC addresses."
LICENSE=gpl30
NAME=macchanger
VERSION=nightly
PROVIDES=macchanger
REL=0
UPSTREAM=https://github.com/alobbs/macchanger.git
VERSION=nightly
. soft
# depends on

16
soft/man-pages-posix2017 Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
ARCH=all
DESCRIPTION="POSIX.1-2017 manual pages"
LICENSE=custom
NAME=man-pages-posix2017
PROVIDES=man-pages-posix
REL=0
UPSTREAM=https://git.kernel.org/pub/scm/docs/man-pages/man-pages-posix.git
VERSION=nightly
stream_licesne(){
cat "$SRC"/POSIX-COPYRIGHT
}
. soft
cp "$SRC"/man0p "$SRC"/man1p "$SRC"/man3p "$MAN"

View File

@ -3,13 +3,21 @@
set -e
GMAKE=gmake
PREFIX=/usr/local
PREFIX=/usr/local/soft
BIN="$PREFIX/bin"
SHARE="$PREFIX"/share
FONTS="$SHARE"/fonts
LICENSES="$PREFIX"/licenses
MAN="$PREFIX"/man
SRC="$PREFIX/src/$NAME"
soft_advise(){
printf "\
%s: %s: It is advised to run the following, or the system equivalent:
%s\n" soft "$NAME" "$*" >&2
}
case "$UPSTREAM_TYPE" in
custom) ;;
*) get_upstream(){
@ -28,8 +36,9 @@ custom) ;;
} ;;
esac; get_upstream
soft_advise(){
printf "\
%s: %s: It is advised to run the following, or the system equivalent:
%s\n" soft "$NAME" "$*" >&2
}
if test "$LICENSE" = custom || ! test -e "$LICENSES/$LICENSE"
then case "$LICENSE" in
gpl30) curl -o "$LICENSES/$LICENSE" \
'https://www.gnu.org/licenses/gpl-3.0.txt' ;;
*) stream_license >"$LICENSES/$LICENSE" ;;
esac