Up to [cvs.NetBSD.org] / pkgsrc / sysutils / bsdfetch
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: use ${DESTDIR}${PREFIX} instead of ${DESTDIR}/${PREFIX}
sysutils/bsdfetch: update to 1.1.2 CHANGES * remove unneeded sysctl entries, slimming down the bsdfetch binary size to some extent * clean-up documentaion
sysutils/bsdfetch: update to bsdfetch-1.1.1 bugfix release: * get_uptime(): eliminate compiler's warning on armv6 arch. According to man sysctlbyname(3) populates struct timeval instead of struct timpespec for KERN_BOOTTIME On armv6 architecure long has 4 bytes length but time_t has 8, so clang compiler generates warning about integer precision loss. Use explicit cast
sysutils/bsdfetch: update to bsdfetch-1.1.0
This is a major release, bringing several changes:
* Get rid of unnecessary #includes and function prototypes.
* Identifiers starting with `_' are reserved in C, therefore:
_PRG_NAME -> getprogname()
_VERSION -> VERSION
* Use a single large buffer `buf' for everything. This gets rid of most
of the local variables which were needed.
* Remove functions die() & error(). *BSD already provides err(3) and
friends for this.
* Use cpr() instead of show(). As cpr() takes a variable no. of args., a
lot of local variable can be eliminated.
* In get_shell() and get_user(), call getpwuid() only if the variable is
unusable. Then, _check_ the return of getpwuid()--it could be NULL.
* In get_cpu(), on NetBSD, print the temp. of _all_ CPUs. On FreeBSD,
`-n' should turn off colour when printing CPU temperatures.
* Fold get_arch() into get_sysinfo(); and cut build strings from kernel
version on NetBSD.
* Many other simplifications (bsdfetch.c is now ~100 lines shorter). and
apart from zero, or a few, mild warnings (platform-dependent), code
compiles with clang's `-Weverything' turned on.
* FIX: Removed -march=native (FreeBSD Clang does not support it)
(At least not on ARM - Tested on Raspberry Pi 4)
sysutils/bsdfetch: update to version 1.0.4. Changes: * Fix get_user()/get_shell() for empty USER/SHELL vars * Add __DATE__ to version() output * Declare void parameter
syutils/bsdfetch: import package from wip. bsdfetch is a simple tool to display information about a running *BSD system. Written in C, bsdfetch doesn't require any external dependency.