diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2010-01-04 12:34:07 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2010-01-04 12:34:07 +0800 |
commit | 557f36df9f50aa19e1123055adfa223463266ccc (patch) | |
tree | 62c7ccc318a59a52d436f189e108088490191601 /ftp/proftpd | |
parent | d61fbef21cebec6c79e0b8f1ecf97957437fd27a (diff) | |
download | freebsd-ports-gnome-557f36df9f50aa19e1123055adfa223463266ccc.tar.gz freebsd-ports-gnome-557f36df9f50aa19e1123055adfa223463266ccc.tar.zst freebsd-ports-gnome-557f36df9f50aa19e1123055adfa223463266ccc.zip |
- Pull the pidfile path from a central location (the config file)
instead of hard coding it again in the rc.d script
PR: ports/141945
Submitted by: Danil <desruptorrogue@gmail.com>
Diffstat (limited to 'ftp/proftpd')
-rw-r--r-- | ftp/proftpd/Makefile | 3 | ||||
-rw-r--r-- | ftp/proftpd/files/proftpd.in (renamed from ftp/proftpd/files/proftpd.sh.in) | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ftp/proftpd/Makefile b/ftp/proftpd/Makefile index 6d10cbe0b38a..b7ae43adb5a2 100644 --- a/ftp/proftpd/Makefile +++ b/ftp/proftpd/Makefile @@ -7,6 +7,7 @@ PORTNAME= proftpd PORTVERSION= 1.3.2b +PORTREVISION= 1 CATEGORIES?= ftp MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \ ftp://ftp.fastorama.com/mirrors/ftp.proftpd.org/distrib/source/ \ @@ -56,7 +57,7 @@ GNU_CONFIGURE= yes CONFLICTS= proftpd-devel-1.[0-9].* -USE_RC_SUBR= proftpd.sh +USE_RC_SUBR= proftpd CONFIGURE_ARGS= --localstatedir=/var/run \ --with-pkgconfig=libdata/pkgconfig \ diff --git a/ftp/proftpd/files/proftpd.sh.in b/ftp/proftpd/files/proftpd.in index 362a2d37f6a0..44b5e0e8a0df 100644 --- a/ftp/proftpd/files/proftpd.sh.in +++ b/ftp/proftpd/files/proftpd.in @@ -23,7 +23,7 @@ name=proftpd rcvar=`set_rcvar` command=%%PREFIX%%/sbin/proftpd -pidfile=/var/run/proftpd.pid +pidfile=$(grep PidFile /usr/local/etc/proftpd.conf | awk '{print($2)}') required_files=%%PREFIX%%/etc/proftpd.conf stop_postcmd=stop_postcmd |