1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

sysutils/apachetop: Update to 0.23.2

Changelog: https://github.com/tessus/apachetop/blob/master/ChangeLog

PR:		276300
Reviewed by:	Lukasz Wasikowski <lukasz@wasikowski.net> (maintainer)
This commit is contained in:
Hung-Yi Chen 2024-01-14 09:04:41 +01:00 committed by Daniel Engberg
parent d7a3206d8a
commit 03dfdf4987
4 changed files with 8 additions and 82 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= apachetop
DISTVERSION= 0.19.7
DISTVERSION= 0.23.2
CATEGORIES= sysutils
MASTER_SITES= https://github.com/tessus/${PORTNAME}/releases/download/${DISTVERSION}/
@ -18,7 +18,7 @@ CONFIGURE_ENV+= NCURSES_CFLAGS="-I${NCURSESINC}" NCURSES_LIBS="-lncursesw"
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
OPTIONS_DEFINE= ADNS FAM PCRE
OPTIONS_DEFINE= ADNS FAM PCRE2
ADNS_DESC= Asynchronous-capable DNS support
ADNS_LIB_DEPENDS= libadns.so:dns/adns
@ -27,7 +27,8 @@ ADNS_CONFIGURE_WITH= adns=${LOCALBASE}
FAM_LIB_DEPENDS= libfam.so:devel/fam
FAM_CONFIGURE_WITH= fam=${LOCALBASE}
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PCRE_CONFIGURE_WITH= pcre=${LOCALBASE}
PCRE2_DESC= Use Perl Compatible Regular Expressions (v2)
PCRE2_LIB_DEPENDS= libpcre2-8.so:devel/pcre2
PCRE2_CONFIGURE_WITH= pcre2=${LOCALBASE}
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1660844272
SHA256 (apachetop-0.19.7.tar.gz) = 7f0ad1cd11cd1f86052bbfd63f27ecb6cb74012a17321354af70abf05998c4eb
SIZE (apachetop-0.19.7.tar.gz) = 132665
TIMESTAMP = 1705166125
SHA256 (apachetop-0.23.2.tar.gz) = f94a34180808c3edb24c1779f72363246dd4143a89f579ef2ac168a45b04443f
SIZE (apachetop-0.23.2.tar.gz) = 169381

View File

@ -1,37 +0,0 @@
--- src/inlines.cc.orig 2018-08-28 11:21:23 UTC
+++ src/inlines.cc
@@ -4,10 +4,10 @@
#define ONE_EIGHTH 4
#define HIGH_BITS (~((unsigned int)(~0) >> ONE_EIGHTH))
-inline unsigned int StringHash(register const char *str)
+inline unsigned int StringHash( const char *str)
{
- register unsigned int val;
- register unsigned int i;
+ unsigned int val;
+ unsigned int i;
for (val = 0; *str; str++)
{
@@ -19,9 +19,9 @@ inline unsigned int StringHash(register const char *st
return val;
}
-inline unsigned int QuickHash(register const char *str)
+inline unsigned int QuickHash( const char *str)
{
- register unsigned int val, tmp;
+ unsigned int val, tmp;
for(val = 0 ; *str ; str++)
{
@@ -32,7 +32,7 @@ inline unsigned int QuickHash(register const char *str
return val;
}
-inline unsigned long TTHash(register const char *str)
+inline unsigned long TTHash( const char *str)
{
unsigned long hash = 5381;
int c;

View File

@ -1,38 +0,0 @@
--- src/ohtbl.cc.orig 2018-08-28 11:24:15 UTC
+++ src/ohtbl.cc
@@ -13,7 +13,7 @@ static int primes[] = {101, 241, 499, 1009, 2003, 3001
int OAHash::getNextPrime(int size)
{
- register int *prime;
+ int *prime;
for (prime = &primes[0] ; *prime ; prime++)
if (*prime > size)
return *prime;
@@ -51,7 +51,7 @@ void OAHash::destroy(void)
void *OAHash::insert(char *key, void *data)
{
- register unsigned int p, i;
+ unsigned int p, i;
void *d;
// Do not exceed the number of positions in the table.
@@ -81,7 +81,7 @@ void *OAHash::insert(char *key, void *data)
int OAHash::remove(char *key)
{
- register unsigned int p, i;
+ unsigned int p, i;
for (i = 0; i < positions; ++i)
{
@@ -108,7 +108,7 @@ int OAHash::remove(char *key)
void *OAHash::lookup(char *key)
{
- register unsigned int p, i;
+ unsigned int p, i;
for (i = 0; i < positions; ++i)
{