./sysutils/bsdfetch, BSD system information tool written in C

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.1.2, Package name: bsdfetch-1.1.2, Maintainer: vins

bsdfetch is a simple tool to display information about a running *BSD
system. Written in C, bsdfetch doesn't require any external dependency.


Master sites:


Version history: (Expand)


CVS history: (Expand)


   2023-07-02 20:53:41 by Paolo Vincenzo Olivo | Files touched by this commit (2) | Package updated
Log message:
sysutils/bsdfetch: update to 1.1.2

CHANGES

* remove unneeded sysctl entries, slimming down the bsdfetch binary size
  to some extent
* clean-up documentaion
   2023-01-16 14:08:43 by Paolo Vincenzo Olivo | Files touched by this commit (3) | Package updated
Log message:
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
   2023-01-09 12:15:33 by Paolo Vincenzo Olivo | Files touched by this commit (2) | Package updated
Log message:
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)
   2023-01-02 23:54:45 by Paolo Vincenzo Olivo | Files touched by this commit (2) | Package updated
Log message:
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
   2022-12-18 15:30:56 by Paolo Vincenzo Olivo | Files touched by this commit (4)
Log message:
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.