From owner-svn-ports-head@freebsd.org Sat Sep 26 13:18:06 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DBB603FE9A6; Sat, 26 Sep 2020 13:18:06 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bz8V65WRkz4b3n; Sat, 26 Sep 2020 13:18:06 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A0D4D24A1F; Sat, 26 Sep 2020 13:18:06 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08QDI619014889; Sat, 26 Sep 2020 13:18:06 GMT (envelope-from se@FreeBSD.org) Received: (from se@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08QDI5p8014885; Sat, 26 Sep 2020 13:18:05 GMT (envelope-from se@FreeBSD.org) Message-Id: <202009261318.08QDI5p8014885@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: se set sender to se@FreeBSD.org using -f From: =?UTF-8?Q?Stefan_E=c3=9fer?= Date: Sat, 26 Sep 2020 13:18:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r550183 - in head/security/l0pht-watch: . files X-SVN-Group: ports-head X-SVN-Commit-Author: se X-SVN-Commit-Paths: in head/security/l0pht-watch: . files X-SVN-Commit-Revision: 550183 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2020 13:18:06 -0000 Author: se Date: Sat Sep 26 13:18:05 2020 New Revision: 550183 URL: https://svnweb.freebsd.org/changeset/ports/550183 Log: Fix build with -fno-common Modified: head/security/l0pht-watch/Makefile head/security/l0pht-watch/files/patch-Makefile head/security/l0pht-watch/files/patch-check_tmp.c head/security/l0pht-watch/files/patch-check_tmp.h head/security/l0pht-watch/files/patch-list_utils.c Modified: head/security/l0pht-watch/Makefile ============================================================================== --- head/security/l0pht-watch/Makefile Sat Sep 26 13:14:33 2020 (r550182) +++ head/security/l0pht-watch/Makefile Sat Sep 26 13:18:05 2020 (r550183) @@ -3,6 +3,7 @@ PORTNAME= l0pht-watch PORTVERSION= 1.1 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= LOCAL/vs DISTNAME= ${PORTNAME} Modified: head/security/l0pht-watch/files/patch-Makefile ============================================================================== --- head/security/l0pht-watch/files/patch-Makefile Sat Sep 26 13:14:33 2020 (r550182) +++ head/security/l0pht-watch/files/patch-Makefile Sat Sep 26 13:18:05 2020 (r550183) @@ -1,5 +1,5 @@ ---- Makefile.orig Thu Sep 23 10:18:18 1999 -+++ Makefile Tue Apr 25 00:30:11 2000 +--- Makefile.orig 1999-09-23 17:18:18 UTC ++++ Makefile @@ -9,12 +9,13 @@ # debugging # DFLAGS = -DTEST -DDEBUG @@ -16,7 +16,7 @@ LD = $(CC) -s # linker; defaults to stripped executables o = o # object extension CKTEMP_OBJS=check_tmp.o daemon.o list_utils.o usage.o -@@ -60,7 +61,8 @@ +@@ -60,7 +61,8 @@ solaris25: OpenBSD: make -e $(ALL) $(MFLAGS) \ Modified: head/security/l0pht-watch/files/patch-check_tmp.c ============================================================================== --- head/security/l0pht-watch/files/patch-check_tmp.c Sat Sep 26 13:14:33 2020 (r550182) +++ head/security/l0pht-watch/files/patch-check_tmp.c Sat Sep 26 13:18:05 2020 (r550183) @@ -1,21 +1,39 @@ ---- check_tmp.c.orig Fri Sep 24 15:33:35 1999 -+++ check_tmp.c Tue Jul 18 16:18:59 2000 -@@ -37,7 +37,13 @@ +--- check_tmp.c.orig 1999-09-24 20:33:35 UTC ++++ check_tmp.c +@@ -2,6 +2,8 @@ + directories. Ostensibly to start hammering on how bad people are on + tmp droppings following links, etc. etc. .mudge 8.20.98 */ + ++#include ++ + #include "check_tmp.h" + + void usage(char *progname); +@@ -14,6 +16,7 @@ int checkdir(char *); + void walklist(struct listStruct *); + #endif + int become_daemon(void); ++int syslogflag; + + int main(int argc, char **argv){ + +@@ -37,8 +40,14 @@ int main(int argc, char **argv){ char error_buffer[256]; #endif #endif - -+ + +#if (__FreeBSD_version >= 500011) || (__FreeBSD_version >= 410000 && __FreeBSD_version < 500000) + struct kevent ev; + int fd; + struct timespec ts = { 0, 0 }; + int kq = -1; +#endif - ++ struct listStruct *list = NULL; -@@ -178,6 +184,21 @@ + syslogflag=0; /* initialize */ +@@ -178,6 +187,21 @@ int main(int argc, char **argv){ exit(1); } @@ -37,7 +55,7 @@ /* steup the first element of the list */ while ((dp = readdir(dirp)) != NULL){ if (!list) /* first time */ -@@ -266,6 +287,10 @@ +@@ -266,6 +290,10 @@ int main(int argc, char **argv){ rewinddir(dirp); while (1){ @@ -48,7 +66,7 @@ while ((dp = readdir(dirp)) != NULL){ if (!(checknode(list, watchdir, dp->d_name))){ if (replacewatchflag){ -@@ -352,11 +377,22 @@ +@@ -352,11 +380,22 @@ int main(int argc, char **argv){ /* closedir(dirp); */ } } Modified: head/security/l0pht-watch/files/patch-check_tmp.h ============================================================================== --- head/security/l0pht-watch/files/patch-check_tmp.h Sat Sep 26 13:14:33 2020 (r550182) +++ head/security/l0pht-watch/files/patch-check_tmp.h Sat Sep 26 13:18:05 2020 (r550183) @@ -1,5 +1,5 @@ ---- check_tmp.h.orig Thu Dec 24 10:40:13 1998 -+++ check_tmp.h Sun Aug 13 23:54:21 2000 +--- check_tmp.h.orig 1998-12-24 15:40:13 UTC ++++ check_tmp.h @@ -1,16 +1,23 @@ #ifndef __CHECK_TMP_H #define __CHECK_TMP_H @@ -29,3 +29,12 @@ #if defined (REGEXPR_3G) #include +@@ -34,7 +41,7 @@ struct listStruct { + struct listStruct *next; + }; + +-int syslogflag; /* grody after thought */ ++extern int syslogflag; /* grody after thought */ + + /* things to shut lint up */ + char *strrchr(const char *s, int c); Modified: head/security/l0pht-watch/files/patch-list_utils.c ============================================================================== --- head/security/l0pht-watch/files/patch-list_utils.c Sat Sep 26 13:14:33 2020 (r550182) +++ head/security/l0pht-watch/files/patch-list_utils.c Sat Sep 26 13:18:05 2020 (r550183) @@ -1,6 +1,12 @@ ---- list_utils.c.orig Thu Dec 24 00:00:44 1998 -+++ list_utils.c Sun Aug 13 23:55:23 2000 -@@ -102,9 +102,11 @@ +--- list_utils.c.orig 1998-12-24 05:00:44 UTC ++++ list_utils.c +@@ -1,3 +1,5 @@ ++#include ++ + #include "check_tmp.h" + + static void printnode(struct listStruct *, int); +@@ -102,9 +104,11 @@ printnode(struct listStruct *list, int action){ char filemodes[11]; char outputStr[(MAXNAMLEN * 2) + 256]; char linkbuf[MAXNAMLEN + 1]; @@ -12,7 +18,7 @@ switch(action){ case ADDITION: -@@ -143,11 +145,16 @@ +@@ -143,11 +147,16 @@ printnode(struct listStruct *list, int action){ getfilemodes(&list->statbuf, filemodes); @@ -31,7 +37,7 @@ if (S_ISLNK(list->statbuf.st_mode) ){ ret = readlink(list->filename, linkbuf, sizeof(linkbuf)); -@@ -168,7 +175,7 @@ +@@ -168,7 +177,7 @@ printnode(struct listStruct *list, int action){