diff options
author | wiz <wiz@pkgsrc.org> | 2019-07-22 23:04:31 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2019-07-22 23:04:31 +0000 |
commit | 8df73ba1535566280ce1abee78d548d422672e1c (patch) | |
tree | 5a866d147a9d26275c4da01dddef53441fd27bc4 /sysutils | |
parent | 105575a0ee0167819957fc2d7a5b09886bd6c073 (diff) | |
download | pkgsrc-8df73ba1535566280ce1abee78d548d422672e1c.tar.gz |
i3status: update to 2.13.
2019-06-30 i3status 2.13
• add memory module
• add read_file module
• drop CAP_NET_ADMIN (not needed on Linux ≥ 2.6.37)
• switch to autotools
• battery: hide seconds by default
• wireless: add format_quality
• doc: clarify min_width not being supported with dzen2/xmobar
• battery: read multiple batteries on DragonFlyBSD
• make: don’t use pulseaudio on DragonFlyBSD
• wireless: detect interface type on DragonFlyBSD
• cpu usage: fix: correctly print usage for cpu 10
• cpu usage: fix: correctly print for invalid %cpu placeholder
• cpu usage: support non-consecutive CPUs
• time: add only_when_tz_different option
• ethernet: add %interface
• ethernet: fix speed display for 100 Gbit/s cards
• battery: handle POWER_SUPPLY_STATUS=Not charging
• volume: provide more natural volume percentage with ALSA
• volume: fix ALSA capture device monitoring
• volume: implement %devicename for PulseAudio and ALSA
• config: re-arrange disk after network interfaces
• fix: include sys/socket.h on macOS
• fix: strip network interface labels
• fix glob(3) error handling
• various testsuite improvements
• switch to clang-format-3.8
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/i3status/Makefile | 22 | ||||
-rw-r--r-- | sysutils/i3status/PLIST | 3 | ||||
-rw-r--r-- | sysutils/i3status/distinfo | 15 | ||||
-rw-r--r-- | sysutils/i3status/patches/patch-Makefile | 36 | ||||
-rw-r--r-- | sysutils/i3status/patches/patch-Makefile.in | 15 | ||||
-rw-r--r-- | sysutils/i3status/patches/patch-configure | 157 | ||||
-rw-r--r-- | sysutils/i3status/patches/patch-src_print__wireless__info.c | 14 |
7 files changed, 200 insertions, 62 deletions
diff --git a/sysutils/i3status/Makefile b/sysutils/i3status/Makefile index e6c25814ac7..b719f8107e7 100644 --- a/sysutils/i3status/Makefile +++ b/sysutils/i3status/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.9 2019/03/14 11:55:29 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2019/07/22 23:04:31 wiz Exp $ -DISTNAME= i3status-2.12 +DISTNAME= i3status-2.13 CATEGORIES= sysutils MASTER_SITES= https://i3wm.org/i3status/ EXTRACT_SUFX= .tar.bz2 @@ -10,23 +10,31 @@ HOMEPAGE= https://i3wm.org/i3status/ COMMENT= Small program for generating a status bar LICENSE= modified-bsd -USE_TOOLS+= gmake +TOOL_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc +TOOL_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto + +GNU_CONFIGURE= yes +USE_TOOLS+= gmake pkg-config + +INSTALLATION_DIRS= share/examples/${PKGBASE} CONF_FILES= ${PREFIX}/share/examples/${PKGBASE}/i3status.conf ${PKG_SYSCONFDIR}/i3status.conf BUILD_DEFS+= VARBASE -MAKE_ENV+= MANDIR=${PKGMANDIR} -MAKE_ENV+= SYSCONFDIR=${PKG_SYSCONFDIR} -MAKE_ENV+= DEBUG=0 - SUBST_CLASSES+= fix-paths SUBST_STAGE.fix-paths= pre-configure SUBST_MESSAGE.fix-paths= Fixing absolute paths. SUBST_FILES.fix-paths= i3status.conf SUBST_SED.fix-paths+= -e 's,/var,${VARBASE},g' +post-install: + ${MV} ${DESTDIR}${PREFIX}/etc/i3status.conf ${DESTDIR}${PREFIX}/share/examples/${PKGBASE} + .include "../../devel/confuse/buildlink3.mk" .include "../../devel/yajl/buildlink3.mk" +.include "../../mk/bsd.prefs.mk" +.if ${OPSYS} != "OpenBSD" && ${OPSYS} != "DragonFly" .include "../../audio/pulseaudio/buildlink3.mk" +.endif .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/i3status/PLIST b/sysutils/i3status/PLIST index 85380970650..418c3034681 100644 --- a/sysutils/i3status/PLIST +++ b/sysutils/i3status/PLIST @@ -1,5 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1 2016/06/14 06:39:37 kamil Exp $ +@comment $NetBSD: PLIST,v 1.2 2019/07/22 23:04:31 wiz Exp $ bin/i3status man/man1/i3status.1 -share/doc/i3status/LICENSE share/examples/i3status/i3status.conf diff --git a/sysutils/i3status/distinfo b/sysutils/i3status/distinfo index 2f6f9721f5d..d814da3a07c 100644 --- a/sysutils/i3status/distinfo +++ b/sysutils/i3status/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.2 2019/03/14 11:55:29 wiz Exp $ +$NetBSD: distinfo,v 1.3 2019/07/22 23:04:31 wiz Exp $ -SHA1 (i3status-2.12.tar.bz2) = cb397987a1d931b600731e5ad033fe2f371d02b1 -RMD160 (i3status-2.12.tar.bz2) = d0cfd5dd51b0460c4052c81923b2ca4394ed8840 -SHA512 (i3status-2.12.tar.bz2) = 687a880a65cb8df46f5e9d2256b59724ba3424c502e9a0fb3ca71b070875df5f4008ee501c554bc716f2d728a5cf813a36d22d7377d42c3c46b14381d385bab3 -Size (i3status-2.12.tar.bz2) = 57162 bytes -SHA1 (patch-Makefile) = 3e6358c173b74f24d82995a0019f36854237e135 -SHA1 (patch-src_print__wireless__info.c) = 0b51f34f95cb3731c2df033df503b0e58e91ad2a +SHA1 (i3status-2.13.tar.bz2) = b09fd2f322046daaca22f60cf6bfc7dbebea1b11 +RMD160 (i3status-2.13.tar.bz2) = 8432809add78a0086ce8181160528f5e34b7c0d3 +SHA512 (i3status-2.13.tar.bz2) = 6dadff19e53499d169ba4f491e1f821014b4f92fc3c93d7947c85cbbbdeaba538d02bd8ab98fe266a8f80756a287fd5803ec77a8cd874d50082b5cad309875c2 +Size (i3status-2.13.tar.bz2) = 201409 bytes +SHA1 (patch-Makefile.in) = e50ed614d41a1bcef33feb6414322affa5e20a92 +SHA1 (patch-configure) = e372bf638683a2b30a13f6fd5b58d0293e5bd767 +SHA1 (patch-src_print__wireless__info.c) = 7039b7fbd2f43b798763793cd4296035610eeee0 diff --git a/sysutils/i3status/patches/patch-Makefile b/sysutils/i3status/patches/patch-Makefile deleted file mode 100644 index 3295ea160f0..00000000000 --- a/sysutils/i3status/patches/patch-Makefile +++ /dev/null @@ -1,36 +0,0 @@ -$NetBSD: patch-Makefile,v 1.2 2019/03/14 11:55:29 wiz Exp $ - -Adjust paths and install LICENSE. - ---- Makefile.orig 2018-05-11 09:10:46.000000000 +0000 -+++ Makefile -@@ -13,6 +13,9 @@ ifndef SYSCONFDIR - SYSCONFDIR=$(PREFIX)/etc - endif - endif -+ifndef MANDIR -+ MANDIR=$(MANDIR) -+endif - - PKG_CONFIG ?= pkg-config - CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -@@ -110,13 +113,15 @@ manpage: - - install: - install -m 755 -d $(DESTDIR)$(PREFIX)/bin -- install -m 755 -d $(DESTDIR)$(SYSCONFDIR) -- install -m 755 -d $(DESTDIR)$(MANPREFIX)/share/man/man1 -+ install -m 755 -d $(DESTDIR)$(PREFIX)/share/examples/i3status -+ install -m 755 -d $(DESTDIR)$(PREFIX)/share/doc/i3status -+ install -m 755 -d $(DESTDIR)$(MANPREFIX)/$(MANDIR)/man1 - install -m 755 i3status $(DESTDIR)$(PREFIX)/bin/i3status - # Allow network configuration for getting the link speed - (which setcap && setcap cap_net_admin=ep $(DESTDIR)$(PREFIX)/bin/i3status) || true -- install -m 644 i3status.conf $(DESTDIR)$(SYSCONFDIR)/i3status.conf -- install -m 644 man/i3status.1 $(DESTDIR)$(MANPREFIX)/share/man/man1 -+ install -m 644 i3status.conf $(DESTDIR)$(PREFIX)/share/examples/i3status/i3status.conf -+ install -m 644 LICENSE $(DESTDIR)$(PREFIX)/share/doc/i3status -+ install -m 644 man/i3status.1 $(DESTDIR)$(MANPREFIX)/$(MANDIR)/man1 - - release: - [ -f i3status-${VERSION} ] || rm -rf i3status-${VERSION} diff --git a/sysutils/i3status/patches/patch-Makefile.in b/sysutils/i3status/patches/patch-Makefile.in new file mode 100644 index 00000000000..ce4410a64c3 --- /dev/null +++ b/sysutils/i3status/patches/patch-Makefile.in @@ -0,0 +1,15 @@ +$NetBSD: patch-Makefile.in,v 1.1 2019/07/22 23:04:31 wiz Exp $ + +This line gets expanded to +am--fnord am--fnord-all $(TEST_LOGS) $(TEST_LOGS: + +--- Makefile.in.orig 2019-06-30 17:54:48.000000000 +0000 ++++ Makefile.in +@@ -1346,7 +1346,6 @@ distclean-tags: + + # Leading 'am--fnord' is there to ensure the list of targets does not + # expand to empty, as could happen e.g. with make check TESTS=''. +-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) + am--force-recheck: + @: + diff --git a/sysutils/i3status/patches/patch-configure b/sysutils/i3status/patches/patch-configure new file mode 100644 index 00000000000..7f56f4eb91e --- /dev/null +++ b/sysutils/i3status/patches/patch-configure @@ -0,0 +1,157 @@ +$NetBSD: patch-configure,v 1.1 2019/07/22 23:04:31 wiz Exp $ + +Based on https://github.com/i3/i3status/commit/54e798e3a6dcf5747c3e943b376ae441ee0534a4 + +--- configure.orig 2019-06-30 17:54:48.000000000 +0000 ++++ configure +@@ -7178,6 +7166,7 @@ $as_echo "yes" >&6; } + + fi + ++pulse=true + case $host_os in + linux*) + +@@ -7362,6 +7351,74 @@ else + $as_echo "yes" >&6; } + + fi ++ ;; ++ openbsd*) ++ pulse=false ++ ;; ++ dragonfly*) ++ pulse=false ++ ;; ++ netbsd*) ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing prop_string_create" >&5 ++$as_echo_n "checking for library containing prop_string_create... " >&6; } ++if ${ac_cv_search_prop_string_create+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ac_func_search_save_LIBS=$LIBS ++cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char prop_string_create (); ++int ++main () ++{ ++return prop_string_create (); ++ ; ++ return 0; ++} ++_ACEOF ++for ac_lib in '' prop; do ++ if test -z "$ac_lib"; then ++ ac_res="none required" ++ else ++ ac_res=-l$ac_lib ++ LIBS="-l$ac_lib $ac_func_search_save_LIBS" ++ fi ++ if ac_fn_c_try_link "$LINENO"; then : ++ ac_cv_search_prop_string_create=$ac_res ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext ++ if ${ac_cv_search_prop_string_create+:} false; then : ++ break ++fi ++done ++if ${ac_cv_search_prop_string_create+:} false; then : ++ ++else ++ ac_cv_search_prop_string_create=no ++fi ++rm conftest.$ac_ext ++LIBS=$ac_func_search_save_LIBS ++fi ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_prop_string_create" >&5 ++$as_echo "$ac_cv_search_prop_string_create" >&6; } ++ac_res=$ac_cv_search_prop_string_create ++if test "$ac_res" != no; then : ++ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ++ ++fi ++ ++ ;; ++esac ++ ++if test x"$pulse" = x"true"; then : + + pkg_failed=no + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5 +@@ -7453,67 +7510,7 @@ else + $as_echo "yes" >&6; } + + fi +- ;; +- netbsd*) +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing prop_string_create" >&5 +-$as_echo_n "checking for library containing prop_string_create... " >&6; } +-if ${ac_cv_search_prop_string_create+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_func_search_save_LIBS=$LIBS +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char prop_string_create (); +-int +-main () +-{ +-return prop_string_create (); +- ; +- return 0; +-} +-_ACEOF +-for ac_lib in '' prop; do +- if test -z "$ac_lib"; then +- ac_res="none required" +- else +- ac_res=-l$ac_lib +- LIBS="-l$ac_lib $ac_func_search_save_LIBS" +- fi +- if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_search_prop_string_create=$ac_res +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext +- if ${ac_cv_search_prop_string_create+:} false; then : +- break +-fi +-done +-if ${ac_cv_search_prop_string_create+:} false; then : +- +-else +- ac_cv_search_prop_string_create=no +-fi +-rm conftest.$ac_ext +-LIBS=$ac_func_search_save_LIBS + fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_prop_string_create" >&5 +-$as_echo "$ac_cv_search_prop_string_create" >&6; } +-ac_res=$ac_cv_search_prop_string_create +-if test "$ac_res" != no; then : +- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" +- +-fi +- +- ;; +-esac +- + + # Checks for programs. + for ac_prog in gawk mawk nawk awk diff --git a/sysutils/i3status/patches/patch-src_print__wireless__info.c b/sysutils/i3status/patches/patch-src_print__wireless__info.c index 5560ac5488f..b18cc8cc71e 100644 --- a/sysutils/i3status/patches/patch-src_print__wireless__info.c +++ b/sysutils/i3status/patches/patch-src_print__wireless__info.c @@ -1,10 +1,10 @@ -$NetBSD: patch-src_print__wireless__info.c,v 1.2 2019/03/14 11:55:29 wiz Exp $ +$NetBSD: patch-src_print__wireless__info.c,v 1.3 2019/07/22 23:04:31 wiz Exp $ -Add includes for AF_INET & AF_INET6, and for free(). +Add includes for AF_INET & AF_INET6. ---- src/print_wireless_info.c.orig 2018-05-11 09:10:46.000000000 +0000 +--- src/print_wireless_info.c.orig 2019-01-23 08:03:56.000000000 +0000 +++ src/print_wireless_info.c -@@ -60,10 +60,13 @@ +@@ -61,6 +61,7 @@ #ifdef __NetBSD__ #include <sys/types.h> @@ -12,9 +12,3 @@ Add includes for AF_INET & AF_INET6, and for free(). #include <net80211/ieee80211.h> #define IW_ESSID_MAX_SIZE IEEE80211_NWID_LEN #endif - -+#include <stdlib.h> -+ - #include "i3status.h" - - #define WIRELESS_INFO_FLAG_HAS_ESSID (1 << 0) |