forked from Lainports/freebsd-ports
It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
71 lines
2.5 KiB
Makefile
71 lines
2.5 KiB
Makefile
PORTNAME= toybox
|
|
PORTVERSION= 0.8.8
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://landley.net/toybox/downloads/
|
|
|
|
MAINTAINER= vidar@karlsen.tech
|
|
COMMENT= All-in-one command line
|
|
WWW= https://landley.net/toybox/
|
|
|
|
LICENSE= 0BSD
|
|
LICENSE_NAME= BSD Zero Clause License
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
BUILD_DEPENDS= bash:shells/bash gsed:textproc/gsed
|
|
LIB_DEPENDS= libinotify.so:devel/libinotify
|
|
|
|
USES= gmake shebangfix
|
|
|
|
SHEBANG_FILES= scripts/bloatcheck scripts/mcm-buildall.sh \
|
|
scripts/change.sh scripts/findglobals.sh \
|
|
scripts/genconfig.sh scripts/install.sh \
|
|
scripts/make.sh scripts/mkroot.sh \
|
|
scripts/portability.sh scripts/record-commands \
|
|
scripts/runtest.sh scripts/single.sh \
|
|
scripts/test.sh configure \
|
|
tests/*
|
|
|
|
BIN_LINKS= [ cat chgrp chmod chown cksum cpio crc32 date dos2unix echo \
|
|
egrep false fgrep fsync grep help hostname kill ln ls mkdir \
|
|
mknod mktemp mountpoint nice pidof printenv pwd rm rmdir sed \
|
|
sleep sync touch true uname unix2dos usleep vmstat
|
|
SBIN_LINKS= killall5 lsmod mkswap modinfo sysctl
|
|
USRBIN_LINKS= acpi ascii base64 basename bunzip2 bzcat cal chrt chvt \
|
|
clear cmp comm count cut dirname du expand factor fallocate \
|
|
file find flock fmt groups head hexedit iconv id killall link \
|
|
logger logname lspci lsusb makedevs mkfifo mkpasswd nl nohup \
|
|
od paste patch pmap printf pwdx readlink realpath renice \
|
|
reset rev seq setsid shred sort split strings tac tee test \
|
|
time timeout truncate tty uniq unlink uudecode uuencode \
|
|
uuidgen w watch wc which who whoami xargs xxd yes
|
|
USRSBIN_LINKS= chroot
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|<sys/inotify.h>|"${LOCALBASE}/include/sys/inotify.h"|' \
|
|
${WRKSRC}/lib/portability.c
|
|
${REINPLACE_CMD} -e 's|sed|gsed|' ${WRKSRC}/scripts/single.sh
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && HOSTCC=${CC} ${GMAKE} bsd_defconfig
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/toybox ${STAGEDIR}${PREFIX}/bin
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/bin
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/sbin
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/usr/bin
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/usr/sbin
|
|
.for f in ${BIN_LINKS}
|
|
${LN} -s ../../bin/toybox ${STAGEDIR}${PREFIX}/${PORTNAME}/bin/${f}
|
|
.endfor
|
|
.for f in ${SBIN_LINKS}
|
|
${LN} -s ../../bin/toybox ${STAGEDIR}${PREFIX}/${PORTNAME}/sbin/${f}
|
|
.endfor
|
|
.for f in ${USRBIN_LINKS}
|
|
${LN} -s ../../../bin/toybox ${STAGEDIR}${PREFIX}/${PORTNAME}/usr/bin/${f}
|
|
.endfor
|
|
.for f in ${USRSBIN_LINKS}
|
|
${LN} -s ../../../bin/toybox ${STAGEDIR}${PREFIX}/${PORTNAME}/usr/sbin/${f}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|