aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/plasma-applet-ftpmonitor
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2010-06-16 04:03:33 +0800
committermakc <makc@FreeBSD.org>2010-06-16 04:03:33 +0800
commit8db5b31e928db056b3d2e25c8a06b3b5423d294b (patch)
treedf621709381dc5ccaff116bfece14b036e46a171 /ftp/plasma-applet-ftpmonitor
parentab5dbbd3a0770530dbef18aca31391b1c0388ab6 (diff)
downloadfreebsd-ports-gnome-8db5b31e928db056b3d2e25c8a06b3b5423d294b.tar.gz
freebsd-ports-gnome-8db5b31e928db056b3d2e25c8a06b3b5423d294b.tar.zst
freebsd-ports-gnome-8db5b31e928db056b3d2e25c8a06b3b5423d294b.zip
Add new port ftp/plasma-applet-ftpmonitor:
Ftpmonitor is a simple plasmoid for KDE 4, which monitors incoming connections to ftp daemons. It acts as a frontend to pure-ftpwho, ncftpd_spy and ftpwho for pure-ftpd, ncftpd and proftpd ftp daemons. For vsftpd it looks for output of ps ax. WWW: http://code.google.com/p/ftpmonitor/
Diffstat (limited to 'ftp/plasma-applet-ftpmonitor')
-rw-r--r--ftp/plasma-applet-ftpmonitor/Makefile28
-rw-r--r--ftp/plasma-applet-ftpmonitor/distinfo3
-rw-r--r--ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__ncftpdmonitor.h11
-rw-r--r--ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__proftpdmonitor.h11
-rw-r--r--ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__pureftpdmonitor.h11
-rw-r--r--ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__vsftpdmonitor.h11
-rw-r--r--ftp/plasma-applet-ftpmonitor/pkg-descr6
-rw-r--r--ftp/plasma-applet-ftpmonitor/pkg-plist10
8 files changed, 91 insertions, 0 deletions
diff --git a/ftp/plasma-applet-ftpmonitor/Makefile b/ftp/plasma-applet-ftpmonitor/Makefile
new file mode 100644
index 000000000000..067333b8b756
--- /dev/null
+++ b/ftp/plasma-applet-ftpmonitor/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: plasma-applet-ftpmonitor
+# Date created: 2010-06-15
+# Whom: Max Brazhnikov <makc@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ftpmonitor
+PORTVERSION= 1.1
+CATEGORIES= ftp kde
+MASTER_SITES= GOOGLE_CODE
+PKGNAMEPREFIX= plasma-applet-
+
+MAINTAINER= makc@FreeBSD.org
+COMMENT= KDE4 Plasma applet, which monitors connections to ftp daemons
+
+USE_BZIP2= yes
+USE_CMAKE= yes
+USE_KDE4= kdelibs kdeprefix automoc4
+USE_QT_VER= 4
+QT_COMPONENTS= qmake_build moc_build uic_build rcc_build
+MAKE_JOS_SAFE= yes
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
+ ${WRKSRC}/src/ftpserver/*.h
+
+.include <bsd.port.mk>
diff --git a/ftp/plasma-applet-ftpmonitor/distinfo b/ftp/plasma-applet-ftpmonitor/distinfo
new file mode 100644
index 000000000000..1950a7ea93ec
--- /dev/null
+++ b/ftp/plasma-applet-ftpmonitor/distinfo
@@ -0,0 +1,3 @@
+MD5 (ftpmonitor-1.1.tar.bz2) = 4d26e9502b5d1ccd21ee25afb5094430
+SHA256 (ftpmonitor-1.1.tar.bz2) = 007f4e05a30c4f96eeeb2ffa240b1d97fa459b345762da55878c009a94236d30
+SIZE (ftpmonitor-1.1.tar.bz2) = 33448
diff --git a/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__ncftpdmonitor.h b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__ncftpdmonitor.h
new file mode 100644
index 000000000000..f5ea13119f2a
--- /dev/null
+++ b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__ncftpdmonitor.h
@@ -0,0 +1,11 @@
+--- ./src/ftpserver/ncftpdmonitor.h.orig 2010-06-12 01:33:45.000000000 +0400
++++ ./src/ftpserver/ncftpdmonitor.h 2010-06-15 22:44:14.585409143 +0400
+@@ -55,7 +55,7 @@
+ void createExecCommand(bool useSudo,QString whoPath)
+ {
+ if (whoPath=="")
+- mFtpWhoCommand.bin = "/usr/local/sbin/" + ftpWhoBinaryName();
++ mFtpWhoCommand.bin = "/usr/local/bin/" + ftpWhoBinaryName();
+ else
+ mFtpWhoCommand.bin = whoPath + ftpWhoBinaryName();
+
diff --git a/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__proftpdmonitor.h b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__proftpdmonitor.h
new file mode 100644
index 000000000000..f2d26357a7e8
--- /dev/null
+++ b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__proftpdmonitor.h
@@ -0,0 +1,11 @@
+--- ./src/ftpserver/proftpdmonitor.h.orig 2010-06-12 01:33:45.000000000 +0400
++++ ./src/ftpserver/proftpdmonitor.h 2010-06-15 22:42:56.463724571 +0400
+@@ -55,7 +55,7 @@
+ {
+
+ if (whoPath=="")
+- mFtpWhoCommand.bin = "/usr/sbin/" + ftpWhoBinaryName();
++ mFtpWhoCommand.bin = "/usr/local/bin/" + ftpWhoBinaryName();
+ else
+ mFtpWhoCommand.bin = whoPath + ftpWhoBinaryName();
+
diff --git a/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__pureftpdmonitor.h b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__pureftpdmonitor.h
new file mode 100644
index 000000000000..31271b619c41
--- /dev/null
+++ b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__pureftpdmonitor.h
@@ -0,0 +1,11 @@
+--- ./src/ftpserver/pureftpdmonitor.h.orig 2010-06-12 01:33:45.000000000 +0400
++++ ./src/ftpserver/pureftpdmonitor.h 2010-06-15 22:44:35.632390428 +0400
+@@ -50,7 +50,7 @@
+ void createExecCommand(bool useSudo,QString whoPath)
+ {
+ if (whoPath=="")
+- mFtpWhoCommand.bin = "/usr/sbin/" + ftpWhoBinaryName();
++ mFtpWhoCommand.bin = "/usr/local/sbin/" + ftpWhoBinaryName();
+ else
+ mFtpWhoCommand.bin = whoPath + ftpWhoBinaryName();
+
diff --git a/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__vsftpdmonitor.h b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__vsftpdmonitor.h
new file mode 100644
index 000000000000..bee504d8a904
--- /dev/null
+++ b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__vsftpdmonitor.h
@@ -0,0 +1,11 @@
+--- ./src/ftpserver/vsftpdmonitor.h.orig 2010-06-12 01:33:45.000000000 +0400
++++ ./src/ftpserver/vsftpdmonitor.h 2010-06-15 22:33:09.875079873 +0400
+@@ -53,7 +53,7 @@
+ // else
+ // mFtpWhoCommand.bin = whoPath + "ps";
+
+- mFtpWhoCommand.args << "-fe";
++ mFtpWhoCommand.args << "-ax -ouid,pid,ppid,cpu,start,tty,time,command";
+
+ /* if (useSudo==true)
+ {
diff --git a/ftp/plasma-applet-ftpmonitor/pkg-descr b/ftp/plasma-applet-ftpmonitor/pkg-descr
new file mode 100644
index 000000000000..c4e6f330912d
--- /dev/null
+++ b/ftp/plasma-applet-ftpmonitor/pkg-descr
@@ -0,0 +1,6 @@
+Ftpmonitor is a simple plasmoid for KDE 4, which monitors incoming
+connections to ftp daemons. It acts as a frontend to pure-ftpwho,
+ncftpd_spy and ftpwho for pure-ftpd, ncftpd and proftpd ftp daemons.
+For vsftpd it looks for output of ps ax.
+
+WWW: http://code.google.com/p/ftpmonitor/
diff --git a/ftp/plasma-applet-ftpmonitor/pkg-plist b/ftp/plasma-applet-ftpmonitor/pkg-plist
new file mode 100644
index 000000000000..033d4db9e1e5
--- /dev/null
+++ b/ftp/plasma-applet-ftpmonitor/pkg-plist
@@ -0,0 +1,10 @@
+lib/kde4/plasma_applet_ftpmonitor.so
+share/apps/ftpmonitor/ftpmonitor.notifyrc
+share/apps/plasma/plasmoids/ftpmonitor/ftpmonitor-connected.png
+share/apps/plasma/plasmoids/ftpmonitor/ftpmonitor-disconnected.png
+share/apps/plasma/plasmoids/ftpmonitor/ftpmonitor-error.png
+share/icons/hicolor/48x48/apps/ftpmonitor.png
+share/kde4/services/plasma-applet-ftpmonitor.desktop
+@dirrm share/apps/plasma/plasmoids/ftpmonitor
+@dirrm share/apps/plasma/plasmoids
+@dirrm share/apps/ftpmonitor