[gentoo-commits] repo/gentoo:master commit in: net-analyzer/portmon/

2020-11-26 Thread Aaron Bauman
commit: ec91a95350077aba8fee22991add86d0e8797bfc
Author: Aaron Bauman  gentoo  org>
AuthorDate: Fri Nov 27 00:57:30 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Fri Nov 27 00:57:30 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec91a953

net-analyzer/portmon: drop old

Signed-off-by: Aaron Bauman  gentoo.org>

 net-analyzer/portmon/portmon-2.0.ebuild | 29 -
 1 file changed, 29 deletions(-)

diff --git a/net-analyzer/portmon/portmon-2.0.ebuild 
b/net-analyzer/portmon/portmon-2.0.ebuild
deleted file mode 100644
index b8d639d55d7..000
--- a/net-analyzer/portmon/portmon-2.0.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-DESCRIPTION="Portmon is a network service monitoring daemon"
-HOMEPAGE="http://aboleo.net/software/portmon/;
-SRC_URI="http://aboleo.net/software/portmon/downloads/${P}.tar.gz;
-
-KEYWORDS="~amd64 ~ppc x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-src_configure() {
-   econf --sysconfdir=/etc/portmon
-}
-
-src_install() {
-   into /usr
-   dosbin src/portmon
-
-   doman extras/portmon.8
-
-   insinto /etc/portmon
-   doins extras/portmon.hosts.sample
-   dodoc AUTHORS BUGS README
-
-   newinitd "${FILESDIR}"/portmon.init portmon
-}



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/portmon/

2020-11-26 Thread Thomas Deutschmann
commit: 94e6dc76ff4a9ce9d41dddae9253725dc7cc0a52
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Thu Nov 26 23:52:54 2020 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Thu Nov 26 23:57:00 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94e6dc76

net-analyzer/portmon: x86 stable (bug #757033)

Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann  gentoo.org>

 net-analyzer/portmon/portmon-2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/portmon/portmon-2.0-r1.ebuild 
b/net-analyzer/portmon/portmon-2.0-r1.ebuild
index 824a242bbd0..5c02c83701b 100644
--- a/net-analyzer/portmon/portmon-2.0-r1.ebuild
+++ b/net-analyzer/portmon/portmon-2.0-r1.ebuild
@@ -7,7 +7,7 @@ DESCRIPTION="Portmon is a network service monitoring daemon"
 HOMEPAGE="http://aboleo.net/software/portmon/;
 SRC_URI="http://aboleo.net/software/portmon/downloads/${P}.tar.gz;
 
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc x86"
 SLOT="0"
 LICENSE="GPL-2"
 



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/portmon/, net-analyzer/portmon/files/

2020-01-31 Thread Jeroen Roovers
commit: d4931ad3ae7ed96249a4fef52dfb82b22d675577
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Fri Jan 31 14:57:30 2020 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Fri Jan 31 14:57:50 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4931ad3

net-analyzer/portmon: Fix CFLAGS=-fno-common

Package-Manager: Portage-2.3.86, Repoman-2.3.20
Closes: https://bugs.gentoo.org/show_bug.cgi?id=707208
Signed-off-by: Jeroen Roovers  gentoo.org>

 .../portmon/files/portmon-2.0-fno-common.patch | 58 ++
 net-analyzer/portmon/portmon-2.0-r1.ebuild | 33 
 2 files changed, 91 insertions(+)

diff --git a/net-analyzer/portmon/files/portmon-2.0-fno-common.patch 
b/net-analyzer/portmon/files/portmon-2.0-fno-common.patch
new file mode 100644
index 000..bfe6a914635
--- /dev/null
+++ b/net-analyzer/portmon/files/portmon-2.0-fno-common.patch
@@ -0,0 +1,58 @@
+--- a/src/portmon.c
 b/src/portmon.c
+@@ -35,6 +35,15 @@
+ #include 
+ #endif
+ 
++int report_flag;
++int daemonize_flag;
++
++struct host_struct *hosts;
++char *err_msg;
++char logfile[STRLARGE];
++int timeout;
++int verbose;
++
+ void version(void)
+ {
+  printf("This is %s, version %s\n", PACKAGE, VERSION);
+--- a/src/portmon.h
 b/src/portmon.h
+@@ -31,8 +31,8 @@
+ #define STRLARGE 512
+ 
+ // flags
+-int report_flag;
+-int daemonize_flag;
++extern int report_flag;
++extern int daemonize_flag;
+ 
+ struct port
+ {
+@@ -43,7 +43,7 @@
+ };
+ 
+ // create an array of hosts
+-struct host_struct
++extern struct host_struct
+ {
+   char name[STRMED];
+   struct port ports[STRSMALL];
+@@ -52,13 +52,13 @@
+  *hosts;
+ 
+ // place to hold error messages
+-char *err_msg;
++extern char *err_msg;
+ // place we log crap
+-char logfile[STRLARGE];
++extern char logfile[STRLARGE];
+ // timeout (seconds)
+-int timeout;
++extern int timeout;
+ // verbose mode
+-int verbose;
++extern int verbose;
+ 
+ // Functions in various files
+ 

diff --git a/net-analyzer/portmon/portmon-2.0-r1.ebuild 
b/net-analyzer/portmon/portmon-2.0-r1.ebuild
new file mode 100644
index 000..824a242bbd0
--- /dev/null
+++ b/net-analyzer/portmon/portmon-2.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Portmon is a network service monitoring daemon"
+HOMEPAGE="http://aboleo.net/software/portmon/;
+SRC_URI="http://aboleo.net/software/portmon/downloads/${P}.tar.gz;
+
+KEYWORDS="~amd64 ~ppc ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-fno-common.patch
+)
+
+src_configure() {
+   econf --sysconfdir=/etc/portmon
+}
+
+src_install() {
+   into /usr
+   dosbin src/portmon
+
+   doman extras/portmon.8
+
+   insinto /etc/portmon
+   doins extras/portmon.hosts.sample
+   dodoc AUTHORS BUGS README
+
+   newinitd "${FILESDIR}"/portmon.init portmon
+}