license functionality and good, also man-pages-posix2017
This commit is contained in:
parent
9ba8bc4b64
commit
74f18e34d3
@ -1,8 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
ARCH=all
|
||||||
|
DESCRIPTION="Utility that changes apparent MAC addresses."
|
||||||
|
LICENSE=gpl30
|
||||||
NAME=macchanger
|
NAME=macchanger
|
||||||
VERSION=nightly
|
PROVIDES=macchanger
|
||||||
|
REL=0
|
||||||
UPSTREAM=https://github.com/alobbs/macchanger.git
|
UPSTREAM=https://github.com/alobbs/macchanger.git
|
||||||
|
VERSION=nightly
|
||||||
. soft
|
. soft
|
||||||
|
|
||||||
# depends on
|
# depends on
|
||||||
|
16
soft/man-pages-posix2017
Normal file
16
soft/man-pages-posix2017
Normal 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"
|
21
soft/soft
21
soft/soft
@ -3,13 +3,21 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
GMAKE=gmake
|
GMAKE=gmake
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local/soft
|
||||||
|
|
||||||
BIN="$PREFIX/bin"
|
BIN="$PREFIX/bin"
|
||||||
SHARE="$PREFIX"/share
|
SHARE="$PREFIX"/share
|
||||||
FONTS="$SHARE"/fonts
|
FONTS="$SHARE"/fonts
|
||||||
|
LICENSES="$PREFIX"/licenses
|
||||||
|
MAN="$PREFIX"/man
|
||||||
SRC="$PREFIX/src/$NAME"
|
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
|
case "$UPSTREAM_TYPE" in
|
||||||
custom) ;;
|
custom) ;;
|
||||||
*) get_upstream(){
|
*) get_upstream(){
|
||||||
@ -28,8 +36,9 @@ custom) ;;
|
|||||||
} ;;
|
} ;;
|
||||||
esac; get_upstream
|
esac; get_upstream
|
||||||
|
|
||||||
soft_advise(){
|
if test "$LICENSE" = custom || ! test -e "$LICENSES/$LICENSE"
|
||||||
printf "\
|
then case "$LICENSE" in
|
||||||
%s: %s: It is advised to run the following, or the system equivalent:
|
gpl30) curl -o "$LICENSES/$LICENSE" \
|
||||||
%s\n" soft "$NAME" "$*" >&2
|
'https://www.gnu.org/licenses/gpl-3.0.txt' ;;
|
||||||
}
|
*) stream_license >"$LICENSES/$LICENSE" ;;
|
||||||
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user