aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2010-08-30 16:27:22 +0800
committermakc <makc@FreeBSD.org>2010-08-30 16:27:22 +0800
commitaf2a399ee77e67d91c3bdc56fd18bce8d0369be1 (patch)
tree0d33beb52be2f96cc188b96ed663a4fdb7789112 /ftp
parenta1cd84c4c32b03d293a4e37a4c7c8a2ed9400ba8 (diff)
downloadfreebsd-ports-gnome-af2a399ee77e67d91c3bdc56fd18bce8d0369be1.tar.gz
freebsd-ports-gnome-af2a399ee77e67d91c3bdc56fd18bce8d0369be1.tar.zst
freebsd-ports-gnome-af2a399ee77e67d91c3bdc56fd18bce8d0369be1.zip
Use system pgrep instead of pidof
Fix pure-ftpd naming
Diffstat (limited to 'ftp')
-rw-r--r--ftp/plasma-applet-ftpmonitor/Makefile1
-rw-r--r--ftp/plasma-applet-ftpmonitor/files/patch-src__ftpmonitorloop.cpp11
-rw-r--r--ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__pureftpdmonitor.h11
3 files changed, 22 insertions, 1 deletions
diff --git a/ftp/plasma-applet-ftpmonitor/Makefile b/ftp/plasma-applet-ftpmonitor/Makefile
index 067333b8b756..74495d65bd52 100644
--- a/ftp/plasma-applet-ftpmonitor/Makefile
+++ b/ftp/plasma-applet-ftpmonitor/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ftpmonitor
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= ftp kde
MASTER_SITES= GOOGLE_CODE
PKGNAMEPREFIX= plasma-applet-
diff --git a/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpmonitorloop.cpp b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpmonitorloop.cpp
new file mode 100644
index 000000000000..281eed53b394
--- /dev/null
+++ b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpmonitorloop.cpp
@@ -0,0 +1,11 @@
+--- ./src/ftpmonitorloop.cpp.orig 2010-06-12 10:18:35.000000000 +0400
++++ ./src/ftpmonitorloop.cpp 2010-08-30 12:10:58.553618412 +0400
+@@ -84,7 +84,7 @@
+ bool FTPMonitorLoop::ftpdServerIsRunning(QString ftpdServerName)
+ {
+ QProcess checkFtpd;
+- checkFtpd.start( "pidof " + ftpdServerName );
++ checkFtpd.start( "pgrep " + ftpdServerName );
+
+ if (!checkFtpd.waitForStarted())
+ return true;
diff --git a/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__pureftpdmonitor.h b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__pureftpdmonitor.h
index 31271b619c41..60638ec422c5 100644
--- a/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__pureftpdmonitor.h
+++ b/ftp/plasma-applet-ftpmonitor/files/patch-src__ftpserver__pureftpdmonitor.h
@@ -1,5 +1,5 @@
--- ./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
++++ ./src/ftpserver/pureftpdmonitor.h 2010-08-28 02:58:47.738230460 +0400
@@ -50,7 +50,7 @@
void createExecCommand(bool useSudo,QString whoPath)
{
@@ -9,3 +9,12 @@
else
mFtpWhoCommand.bin = whoPath + ftpWhoBinaryName();
+@@ -101,7 +101,7 @@
+ */
+ QString ftpdServerName()
+ {
+- return QString("pureftpd");
++ return QString("pure-ftpd");
+ }
+
+ QString static ftpWhoBinaryName()